Class DefaultAddCouponActionStrategy
java.lang.Object
de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy<RuleBasedAddCouponActionModel>
de.hybris.platform.couponservices.action.impl.DefaultAddCouponActionStrategy
- All Implemented Interfaces:
RuleActionStrategy,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class DefaultAddCouponActionStrategy
extends AbstractRuleActionStrategy<RuleBasedAddCouponActionModel>
Encapsulates logic of adding coupon as rule action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AbstractRuleActionRAO action) Applies the action described by the givenAbstractRuleActionRAO.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
-
DefaultAddCouponActionStrategy
public DefaultAddCouponActionStrategy()
-
-
Method Details
-
apply
Description copied from interface:RuleActionStrategyApplies the action described by the givenAbstractRuleActionRAO.- Parameters:
action- the action to apply- Returns:
- list of
ItemModelthat are affected by the application of this action.
-
undo
Description copied from interface:RuleActionStrategyRevokes the Promotion Action that was applied.- Parameters:
item- the action to be undone
-