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 Constructor Description DefaultAddCouponActionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PromotionResultModel>apply(AbstractRuleActionRAO action)Applies the action described by the givenAbstractRuleActionRAO.voidundo(ItemModel item)Revokes the Promotion Action that was applied.-
Methods inherited from class de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy
createPromotionAction, getActionUtils, getCalculationService, getExtendedOrderDao, getForceImmediateRecalculation, getMetadataHandlers, getModelService, getPromotionAction, getPromotionActionService, getPromotionResultUtils, getRuleActionMetadataHandlers, getStrategyId, handleActionMetadata, handleUndoActionMetadata, recalculateIfNeeded, setActionUtils, setBeanName, setCalculationService, setExtendedOrderDao, setForceImmediateRecalculation, setModelService, setPromotionAction, setPromotionActionService, setPromotionResultUtils, setRuleActionMetadataHandlers, undoInternal
-
-
-
-
Method Detail
-
apply
public java.util.List<PromotionResultModel> apply(AbstractRuleActionRAO action)
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
public void undo(ItemModel item)
Description copied from interface:RuleActionStrategyRevokes the Promotion Action that was applied.- Parameters:
item- the action to be undone
-
-