Class DefaultWarehousingWarehouseService
- java.lang.Object
-
- de.hybris.platform.ordersplitting.impl.DefaultWarehouseService
-
- de.hybris.platform.warehousing.warehouse.service.impl.DefaultWarehousingWarehouseService
-
- All Implemented Interfaces:
WarehouseService,WarehousingWarehouseService
public class DefaultWarehousingWarehouseService extends DefaultWarehouseService implements WarehousingWarehouseService
OrderManagement implementation ofWarehouseService.
Also, it provides the default implementation forWarehousingWarehouseService
-
-
Constructor Summary
Constructors Constructor Description DefaultWarehousingWarehouseService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<WarehouseModel>getWarehousesByBaseStoreDeliveryCountry(BaseStoreModel baseStore, CountryModel country)Find all warehouses where the associated base store can deliver to the specified country.protected WarehousingWarehouseSelectionStrategygetWarehousingWarehouseSelectionStrategy()booleanisWarehouseInPoS(WarehouseModel warehouse, PointOfServiceModel pointOfService)Check if givenWarehouseModelbelong to givenPointOfServiceModelvoidsetWarehousingWarehouseSelectionStrategy(WarehousingWarehouseSelectionStrategy warehousingWarehouseSelectionStrategy)-
Methods inherited from class de.hybris.platform.ordersplitting.impl.DefaultWarehouseService
getDefWarehouse, getWarehouseForCode, getWarehouses, getWarehousesWithProductsInStock, setWarehouseDao
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.ordersplitting.WarehouseService
getDefWarehouse, getWarehouseForCode, getWarehouses, getWarehousesWithProductsInStock
-
-
-
-
Method Detail
-
getWarehousesByBaseStoreDeliveryCountry
public java.util.Collection<WarehouseModel> getWarehousesByBaseStoreDeliveryCountry(BaseStoreModel baseStore, CountryModel country) throws java.lang.IllegalArgumentException
Description copied from interface:WarehousingWarehouseServiceFind all warehouses where the associated base store can deliver to the specified country.- Specified by:
getWarehousesByBaseStoreDeliveryCountryin interfaceWarehousingWarehouseService- Parameters:
baseStore- - cannot be nullcountry- - cannot be null- Returns:
- a collection of sourcing locations; never null
- Throws:
java.lang.IllegalArgumentException
-
isWarehouseInPoS
public boolean isWarehouseInPoS(WarehouseModel warehouse, PointOfServiceModel pointOfService)
Description copied from interface:WarehousingWarehouseServiceCheck if givenWarehouseModelbelong to givenPointOfServiceModel- Specified by:
isWarehouseInPoSin interfaceWarehousingWarehouseService- Parameters:
warehouse- -givenWarehouseModelto be validated - cannot be nullpointOfService- givenPointOfServiceModel- cannot be null- Returns:
- true if
WarehouseModelbelongs to givenPointOfServiceModel
-
getWarehousingWarehouseSelectionStrategy
protected WarehousingWarehouseSelectionStrategy getWarehousingWarehouseSelectionStrategy()
-
setWarehousingWarehouseSelectionStrategy
public void setWarehousingWarehouseSelectionStrategy(WarehousingWarehouseSelectionStrategy warehousingWarehouseSelectionStrategy)
-
-