Class DefaultWarehouseService
java.lang.Object
de.hybris.platform.ordersplitting.impl.DefaultWarehouseService
- All Implemented Interfaces:
WarehouseService
- Direct Known Subclasses:
DefaultWarehousingWarehouseService
Default Implementation of
WarehouseService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets warehouse that is marked as default.getWarehouseForCode(String code) Return the warehouse with for the codegetWarehouses(Collection<? extends AbstractOrderEntryModel> orderEntries) Return list of warehouses that can be used to create order from order entries.Return list of warehouses that can be used to create order from order entry.voidsetWarehouseDao(WarehouseDao warehouseDao)
-
Constructor Details
-
DefaultWarehouseService
public DefaultWarehouseService()
-
-
Method Details
-
getWarehouses
public List<WarehouseModel> getWarehouses(Collection<? extends AbstractOrderEntryModel> orderEntries) Description copied from interface:WarehouseServiceReturn list of warehouses that can be used to create order from order entries.- Specified by:
getWarehousesin interfaceWarehouseService- Parameters:
orderEntries- queried list- Returns:
- list of warehouses
-
getWarehousesWithProductsInStock
Description copied from interface:WarehouseServiceReturn list of warehouses that can be used to create order from order entry.- Specified by:
getWarehousesWithProductsInStockin interfaceWarehouseService- Parameters:
orderEntry- queried order entry- Returns:
- list of warehouses
-
getDefWarehouse
Description copied from interface:WarehouseServiceGets warehouse that is marked as default.- Specified by:
getDefWarehousein interfaceWarehouseService- Returns:
- default warehouse
-
getWarehouseForCode
Description copied from interface:WarehouseServiceReturn the warehouse with for the code- Specified by:
getWarehouseForCodein interfaceWarehouseService- Parameters:
code- code of warehouse to search.- Returns:
- instance of
WarehouseModel,RuntimeExceptionis thrown otherwise
-
setWarehouseDao
-