Interface RuleBasedPromotionsContextValidator

    • Method Detail

      • 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