Interface ConditionResolutionStrategy
-
- All Known Implementing Classes:
DefaultCatConditionResolutionStrategy,DefaultCouponConditionResolutionStrategy,DefaultProductConditionResolutionStrategy
public interface ConditionResolutionStrategyStrategy for resolving values of rule conditions parameters and storing them for the rule. Later they can be used for example to evaluate potential promotions on product detail page.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanStoredParameterValues(RuleCompilerContext context)Cleans previously stored condition parameter values for given context.voidgetAndStoreParameterValues(RuleConditionData condition, PromotionSourceRuleModel rule, RuleBasedPromotionModel ruleBasedPromotion)Gets the value from parameters ofconditionand stores it together with the givenpromotionSourceRule
-
-
-
Method Detail
-
getAndStoreParameterValues
void getAndStoreParameterValues(RuleConditionData condition, PromotionSourceRuleModel rule, RuleBasedPromotionModel ruleBasedPromotion)
Gets the value from parameters ofconditionand stores it together with the givenpromotionSourceRule- Parameters:
condition-RuleConditionDatato get the values from.rule-PromotionSourceRuleModelto store the retrieved value for.ruleBasedPromotion-RuleBasedPromotionModelrelated to the given source rule
-
cleanStoredParameterValues
void cleanStoredParameterValues(RuleCompilerContext context)
Cleans previously stored condition parameter values for given context.- Parameters:
context-RuleCompilerContextto clean the parameter values for.
-
-