Class DefaultOrderSplittingService
- java.lang.Object
-
- de.hybris.platform.ordersplitting.impl.DefaultOrderSplittingService
-
- All Implemented Interfaces:
OrderSplittingService
public class DefaultOrderSplittingService extends java.lang.Object implements OrderSplittingService
Default Implementation ofOrderSplittingService
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderSplittingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelServicegetModelService()java.util.List<SplittingStrategy>getStrategiesList()protected java.lang.StringgetUniqueNumber(java.lang.String code, int digits, java.lang.String startValue)voidsetConsignmentService(ConsignmentService consignmentService)voidsetModelService(ModelService modelService)voidsetStrategiesList(java.util.List<SplittingStrategy> strategiesList)java.util.List<ConsignmentModel>splitOrderForConsignment(AbstractOrderModel order, java.util.List<AbstractOrderEntryModel> orderEntryList)Split order entries for consignments.java.util.List<ConsignmentModel>splitOrderForConsignmentNotPersist(AbstractOrderModel order, java.util.List<AbstractOrderEntryModel> orderEntryList)Split order entries for consignments w/o persisting changes
-
-
-
Method Detail
-
getStrategiesList
public java.util.List<SplittingStrategy> getStrategiesList()
- Returns:
- the strategiesList
-
setStrategiesList
public void setStrategiesList(java.util.List<SplittingStrategy> strategiesList)
- Parameters:
strategiesList- the strategiesList to set
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService- the modelService to set
-
getModelService
public ModelService getModelService()
- Returns:
- the modelService
-
splitOrderForConsignment
public java.util.List<ConsignmentModel> splitOrderForConsignment(AbstractOrderModel order, java.util.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 java.util.List<ConsignmentModel> splitOrderForConsignmentNotPersist(AbstractOrderModel order, java.util.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
public void setConsignmentService(ConsignmentService consignmentService)
-
getUniqueNumber
protected java.lang.String getUniqueNumber(java.lang.String code, int digits, java.lang.String startValue)
-
-