Class SplitByWarehouse
java.lang.Object
de.hybris.platform.yacceleratorfulfilmentprocess.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 CommerceAvailabilityCalculationStrategyprotected List<WarehouseModel>getPossibleWarehouses(AbstractOrderEntryModel orderEntry) protected StockServiceperform(List<OrderEntryGroup> orderEntryGroup) Perform the strategy.protected List<WarehouseModel>prepareWarehouses(OrderEntryGroup todoEntryList, OrderEntryGroup workingOrderEntryList, OrderEntryGroup emptyOrderEntryList, List<WarehouseModel> tmpWarehouseResult, OrderEntryGroup tmpOrderEntryResult) voidsetCommerceAvailabilityCalculationStrategy(CommerceAvailabilityCalculationStrategy commerceAvailabilityCalculationStrategy) voidsetStockService(StockService stockService) protected OrderEntryGroupsortOrderEntryBeforeWarehouseSplitting(OrderEntryGroup listOrderEntry) Sort order entry before warehouse splitting.protected List<OrderEntryGroup>splitForWarehouses(OrderEntryGroup orderEntryList)
-
Constructor Details
-
SplitByWarehouse
public SplitByWarehouse()
-
-
Method Details
-
splitForWarehouses
-
prepareWarehouses
protected List<WarehouseModel> prepareWarehouses(OrderEntryGroup todoEntryList, OrderEntryGroup workingOrderEntryList, OrderEntryGroup emptyOrderEntryList, List<WarehouseModel> tmpWarehouseResult, OrderEntryGroup tmpOrderEntryResult) -
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
-
getCommerceAvailabilityCalculationStrategy
- Returns:
- the commerceAvailabilityCalculationStrategy
-
setCommerceAvailabilityCalculationStrategy
public void setCommerceAvailabilityCalculationStrategy(CommerceAvailabilityCalculationStrategy commerceAvailabilityCalculationStrategy) - Parameters:
commerceAvailabilityCalculationStrategy- the commerceAvailabilityCalculationStrategy to set
-
getStockService
- Returns:
- the stockService
-
setStockService
- Parameters:
stockService- the stockService to set
-