Class DefaultRuleBasedPromotionsContextValidator
java.lang.Object
de.hybris.platform.promotionengineservices.validators.impl.DefaultRuleBasedPromotionsContextValidator
- All Implemented Interfaces:
RuleBasedPromotionsContextValidator
public class DefaultRuleBasedPromotionsContextValidator
extends Object
implements RuleBasedPromotionsContextValidator
Default(Drools specific) implementation for the RuleBasedPromotionsContextValidator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisApplicable(RuleBasedPromotionModel ruleBasedPromotion, CatalogVersionModel catalogVersion, RuleType ruleType) finds rule based promotions for the given catalog versions and rule typeprotected booleanisNotLinkedWithDroolsRule(RuleBasedPromotionModel ruleBasedPromotion) protected booleanisOutdated(RuleBasedPromotionModel ruleBasedPromotion) protected Predicate<DroolsRuleEngineContextModel>voidsetCatalogVersionToRuleEngineContextMappingDao(CatalogVersionToRuleEngineContextMappingDao catalogVersionToRuleEngineContextMappingDao)
-
Constructor Details
-
DefaultRuleBasedPromotionsContextValidator
public DefaultRuleBasedPromotionsContextValidator()
-
-
Method Details
-
isApplicable
public boolean isApplicable(RuleBasedPromotionModel ruleBasedPromotion, CatalogVersionModel catalogVersion, RuleType ruleType) Description copied from interface:RuleBasedPromotionsContextValidatorfinds rule based promotions for the given catalog versions and rule type- Specified by:
isApplicablein interfaceRuleBasedPromotionsContextValidator- Parameters:
ruleBasedPromotion- 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
-
isOutdated
-
isNotLinkedWithDroolsRule
-
isValidKieSessionPredicate
-
getCatalogVersionToRuleEngineContextMappingDao
protected CatalogVersionToRuleEngineContextMappingDao getCatalogVersionToRuleEngineContextMappingDao() -
setCatalogVersionToRuleEngineContextMappingDao
public void setCatalogVersionToRuleEngineContextMappingDao(CatalogVersionToRuleEngineContextMappingDao catalogVersionToRuleEngineContextMappingDao)
-