Class DefaultOrderSplittingService
java.lang.Object
de.hybris.platform.ordersplitting.impl.DefaultOrderSplittingService
- All Implemented Interfaces:
OrderSplittingService
Default Implementation of
OrderSplittingService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetUniqueNumber(String code, int digits, String startValue) voidsetConsignmentService(ConsignmentService consignmentService) voidsetModelService(ModelService modelService) voidsetStrategiesList(List<SplittingStrategy> strategiesList) splitOrderForConsignment(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntryList) Split order entries for consignments.splitOrderForConsignmentNotPersist(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntryList) Split order entries for consignments w/o persisting changes
-
Constructor Details
-
DefaultOrderSplittingService
public DefaultOrderSplittingService()
-
-
Method Details
-
getStrategiesList
- Returns:
- the strategiesList
-
setStrategiesList
- Parameters:
strategiesList- the strategiesList to set
-
setModelService
- Parameters:
modelService- the modelService to set
-
getModelService
- Returns:
- the modelService
-
splitOrderForConsignment
public List<ConsignmentModel> splitOrderForConsignment(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntryList) throws ConsignmentCreationException Description copied from interface:OrderSplittingServiceSplit order entries for consignments.- Specified by:
splitOrderForConsignmentin interfaceOrderSplittingService- Parameters:
order- order to splitorderEntryList- the order entry list- Returns:
- the list of consignments
- Throws:
ConsignmentCreationException- if the consignment was not created correctly
-
splitOrderForConsignmentNotPersist
public List<ConsignmentModel> splitOrderForConsignmentNotPersist(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntryList) throws ConsignmentCreationException Description copied from interface:OrderSplittingServiceSplit order entries for consignments w/o persisting changes- Specified by:
splitOrderForConsignmentNotPersistin interfaceOrderSplittingService- Parameters:
order- order to splitorderEntryList- list of order entries- Returns:
- list of consignments
- Throws:
ConsignmentCreationException- if the consignment was not created correctly
-
setConsignmentService
-
getUniqueNumber
-