Class SplitByWarehouse
java.lang.Object
de.hybris.platform.ordersplitting.strategy.impl.SplitByWarehouse
- All Implemented Interfaces:
SplittingStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSplitting(OrderEntryGroup group, ConsignmentModel createdOne) After splitting.protected WarehouseModelchooseBestWarehouse(OrderEntryGroup orderEntries) Choose best warehouse this function is called by getWarehouseList after we have set of possible warehouses.protected List<WarehouseModel>getPossibleWarehouses(AbstractOrderEntryModel orderEntry) protected WarehouseModelgetWarehouse(OrderEntryGroup orderEntries) protected WarehouseServiceperform(List<OrderEntryGroup> orderEntryGroup) Perform the strategy.voidsetWarehouseService(WarehouseService warehouseService) protected OrderEntryGroupsortOrderEntryBeforeWarehouseSplitting(OrderEntryGroup listOrderEntry) Sort order entry before warehouse splitting.protected List<OrderEntryGroup>splitForWarehouses(OrderEntryGroup orderEntryList)
-
Constructor Details
-
SplitByWarehouse
public SplitByWarehouse()
-
-
Method Details
-
getWarehouse
-
splitForWarehouses
-
getPossibleWarehouses
-
chooseBestWarehouse
Choose best warehouse this function is called by getWarehouseList after we have set of possible warehouses.- Parameters:
orderEntries- the order entries- Returns:
- the warehouse model
-
sortOrderEntryBeforeWarehouseSplitting
Sort order entry before warehouse splitting.- Parameters:
listOrderEntry- the list order entry- Returns:
- the list< order entry model>
-
perform
Description copied from interface:SplittingStrategyPerform the strategy.- Specified by:
performin interfaceSplittingStrategy- Parameters:
orderEntryGroup- the order entry list- Returns:
- the list< list< order entry model>>
-
afterSplitting
Description copied from interface:SplittingStrategyAfter splitting.- Specified by:
afterSplittingin interfaceSplittingStrategy- Parameters:
group- the groupcreatedOne- the created one
-
setWarehouseService
-
getWarehouseService
-