Class DefaultShippingActionStrategy

All Implemented Interfaces:
RuleActionStrategy, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class DefaultShippingActionStrategy extends AbstractRuleActionStrategy<RuleBasedOrderChangeDeliveryModeActionModel>
Encapsulates logic of Rule Action processing for setting Delivery options as a Promotion Action.
  • Constructor Details

    • DefaultShippingActionStrategy

      public DefaultShippingActionStrategy()
  • Method Details

    • apply

      If the parameter action is of type ShipmentRAO Delivery options set to corresponding fields of Order model.
      Parameters:
      action - the action to apply
      Returns:
      empty list since no any PromotionResultModel can correspond to Shipment Promotion Action.
    • undo

      public void undo(ItemModel item)
      Description copied from interface: RuleActionStrategy
      Revokes the Promotion Action that was applied.
      Parameters:
      item - the action to be undone
    • getDeliveryModeForCode

      protected DeliveryModeModel getDeliveryModeForCode(String code)
    • getDeliveryModeDao

      protected DeliveryModeDao getDeliveryModeDao()
    • setDeliveryModeDao

      public void setDeliveryModeDao(DeliveryModeDao deliveryModeDao)