Interface RuleActionStrategy<T extends ItemModel>
- All Known Implementing Classes:
AbstractRuleActionStrategy,DefaultAddCouponActionStrategy,DefaultAddProductToCartActionStrategy,DefaultNoOpRuleActionStrategy,DefaultOrderAdjustTotalActionStrategy,DefaultOrderEntryAdjustActionStrategy,DefaultPotentialPromotionMessageActionStrategy,DefaultShippingActionStrategy
public interface RuleActionStrategy<T extends ItemModel>
Defines a strategy that encapsulates the logic of a rule action.
-
Method Summary
Modifier and TypeMethodDescriptionapply(AbstractRuleActionRAO action) Applies the action described by the givenAbstractRuleActionRAO.Returns this strategy's unique IdvoidRevokes the Promotion Action that was applied.
-
Method Details
-
apply
Applies the action described by the givenAbstractRuleActionRAO.- Parameters:
action- the action to apply- Returns:
- list of
ItemModelthat are affected by the application of this action.
-
getStrategyId
String getStrategyId()Returns this strategy's unique Id- Returns:
- the strategy's Id
-
undo
Revokes the Promotion Action that was applied.- Parameters:
action- the action to be undone
-