Interface RuleBasedPromotionsContextValidator

All Known Implementing Classes:
DefaultRuleBasedPromotionsContextValidator

public interface RuleBasedPromotionsContextValidator
Validator checks if a promotion is applicable in the catalogVersion context
  • 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 subject
      catalogVersion - the catalog version to look up rule based promotions for
      ruleType - filters to return only mappings which rules module is of the given rule type
      Returns:
      decision - true if applicable otherwise false