Interface RuleBasedPromotionsContextValidator
- All Known Implementing Classes:
DefaultRuleBasedPromotionsContextValidator
public interface RuleBasedPromotionsContextValidator
Validator checks if a promotion is applicable in the catalogVersion context
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisApplicable(RuleBasedPromotionModel ruleBasedPromotionModel, CatalogVersionModel catalogVersion, RuleType ruleType) finds rule based promotions for the given catalog versions and rule type
-
Method Details
-
isApplicable
boolean isApplicable(RuleBasedPromotionModel ruleBasedPromotionModel, CatalogVersionModel catalogVersion, RuleType ruleType) finds rule based promotions for the given catalog versions and rule type- Parameters:
ruleBasedPromotionModel- the promotion that is a validation subjectcatalogVersion- the catalog version to look up rule based promotions forruleType- filters to return only mappings which rules module is of the given rule type- Returns:
- decision - true if applicable otherwise false
-