public class DefaultRuleBasedPromotionsContextValidator extends java.lang.Object implements RuleBasedPromotionsContextValidator
| Constructor and Description |
|---|
DefaultRuleBasedPromotionsContextValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected CatalogVersionToRuleEngineContextMappingDao |
getCatalogVersionToRuleEngineContextMappingDao() |
boolean |
isApplicable(RuleBasedPromotionModel ruleBasedPromotion,
CatalogVersionModel catalogVersion,
RuleType ruleType)
finds rule based promotions for the given catalog versions and rule type
|
protected boolean |
isNotLinkedWithDroolsRule(RuleBasedPromotionModel ruleBasedPromotion) |
protected boolean |
isOutdated(RuleBasedPromotionModel ruleBasedPromotion) |
protected java.util.function.Predicate<DroolsRuleEngineContextModel> |
isValidKieSessionPredicate() |
void |
setCatalogVersionToRuleEngineContextMappingDao(CatalogVersionToRuleEngineContextMappingDao catalogVersionToRuleEngineContextMappingDao) |
public DefaultRuleBasedPromotionsContextValidator()
public boolean isApplicable(RuleBasedPromotionModel ruleBasedPromotion, CatalogVersionModel catalogVersion, RuleType ruleType)
RuleBasedPromotionsContextValidatorisApplicable in interface RuleBasedPromotionsContextValidatorruleBasedPromotion - 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 typeprotected boolean isOutdated(RuleBasedPromotionModel ruleBasedPromotion)
protected boolean isNotLinkedWithDroolsRule(RuleBasedPromotionModel ruleBasedPromotion)
protected java.util.function.Predicate<DroolsRuleEngineContextModel> isValidKieSessionPredicate()
protected CatalogVersionToRuleEngineContextMappingDao getCatalogVersionToRuleEngineContextMappingDao()
public void setCatalogVersionToRuleEngineContextMappingDao(CatalogVersionToRuleEngineContextMappingDao catalogVersionToRuleEngineContextMappingDao)
Copyright © 2018 SAP SE. All Rights Reserved.