Interface ConditionResolutionStrategy
- All Known Implementing Classes:
DefaultCatConditionResolutionStrategy,DefaultCouponConditionResolutionStrategy,DefaultProductConditionResolutionStrategy
public interface ConditionResolutionStrategy
Strategy 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
Modifier and TypeMethodDescriptionvoidCleans 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 Details
-
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
Cleans previously stored condition parameter values for given context.- Parameters:
context-RuleCompilerContextto clean the parameter values for.
-