Class DefaultTravelSplittingStrategy

java.lang.Object
de.hybris.platform.travelfulfilmentprocess.strategy.impl.DefaultTravelSplittingStrategy
All Implemented Interfaces:
de.hybris.platform.ordersplitting.strategy.SplittingStrategy

public class DefaultTravelSplittingStrategy extends Object implements de.hybris.platform.ordersplitting.strategy.SplittingStrategy
Concrete implementation of SplittingStrategy. This class will be the only splitting strategy called by DefaultOrderSplittingService and will return the final list of OrderEntryGroup to be used to create consignments. This strategy basically behaves as a dispatcher, calling a set of strategies handling specific order entry types, passing the whole entry set to each of them. Hence there should not be any intersection between any two lists returned by the nested strategies.
  • Constructor Details

    • DefaultTravelSplittingStrategy

      public DefaultTravelSplittingStrategy()
  • Method Details

    • perform

      public List<de.hybris.platform.ordersplitting.strategy.impl.OrderEntryGroup> perform(List<de.hybris.platform.ordersplitting.strategy.impl.OrderEntryGroup> orderEntryGroup)
      Method calling the nested strategies
      Specified by:
      perform in interface de.hybris.platform.ordersplitting.strategy.SplittingStrategy
    • afterSplitting

      public void afterSplitting(de.hybris.platform.ordersplitting.strategy.impl.OrderEntryGroup group, ConsignmentModel createdOne)
      Method to set required fields against the created consignment model, after splitting. To be consistent the method calls the equivalent method for each nested strategy.
      Specified by:
      afterSplitting in interface de.hybris.platform.ordersplitting.strategy.SplittingStrategy
    • getStrategiesByTypeList

      protected List<de.hybris.platform.ordersplitting.strategy.SplittingStrategy> getStrategiesByTypeList()
      Gets strategies by type list.
      Returns:
      the strategiesByTypeList
    • setStrategiesByTypeList

      public void setStrategiesByTypeList(List<de.hybris.platform.ordersplitting.strategy.SplittingStrategy> strategiesByTypeList)
      Sets strategies by type list.
      Parameters:
      strategiesByTypeList - the strategiesByTypeList