Class DefaultShippingActionStrategy
java.lang.Object
de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy<RuleBasedOrderChangeDeliveryModeActionModel>
de.hybris.platform.promotionengineservices.action.impl.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AbstractRuleActionRAO action) If the parameter action is of typeShipmentRAODelivery options set to corresponding fields of Order model.protected DeliveryModeDaoprotected DeliveryModeModelgetDeliveryModeForCode(String code) voidsetDeliveryModeDao(DeliveryModeDao deliveryModeDao) voidRevokes the Promotion Action that was applied.Methods inherited from class de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy
createPromotionAction, getActionUtils, getCalculationService, getDefaultRuleMetadataKeys, getExtendedOrderDao, getForceImmediateRecalculation, getMetadataHandlers, getModelService, getPromotionAction, getPromotionActionService, getPromotionResultUtils, getRuleActionMetadataHandlers, getStrategyId, handleActionMetadata, handleUndoActionMetadata, recalculateIfNeeded, setActionUtils, setBeanName, setCalculationService, setDefaultRuleMetadataKeys, setExtendedOrderDao, setForceImmediateRecalculation, setModelService, setPromotionAction, setPromotionActionService, setPromotionResultUtils, setRuleActionMetadataHandlers, undoInternal
-
Constructor Details
-
DefaultShippingActionStrategy
public DefaultShippingActionStrategy()
-
-
Method Details
-
apply
If the parameter action is of typeShipmentRAODelivery 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
Description copied from interface:RuleActionStrategyRevokes the Promotion Action that was applied.- Parameters:
item- the action to be undone
-
getDeliveryModeForCode
-
getDeliveryModeDao
-
setDeliveryModeDao
-