public class DefaultCatConditionResolutionStrategy extends Object implements ConditionResolutionStrategy
ConditionResolutionStrategy for y_qualifying_conditions condition. Values from parameter
"categories" are stored with the rule as CatForPromotionSourceRuleModel. Values from parameter
"excluded_categories" are stored as ExcludedCatForRuleModel. Values from parameter "excluded_products" are
stored as ExcludedProductForRuleModel.| Constructor and Description |
|---|
DefaultCatConditionResolutionStrategy() |
public DefaultCatConditionResolutionStrategy()
public void getAndStoreParameterValues(RuleConditionData condition, PromotionSourceRuleModel rule, RuleBasedPromotionModel ruleBasedPromotion)
ConditionResolutionStrategycondition and stores it together with the given
promotionSourceRulegetAndStoreParameterValues in interface ConditionResolutionStrategycondition - RuleConditionData to get the values from.rule - PromotionSourceRuleModel to store the retrieved value for.ruleBasedPromotion - RuleBasedPromotionModel related to the given source ruleprotected void processCategoriesOperatorParameter(PromotionSourceRuleModel rule, RuleBasedPromotionModel ruleBasedPromotion, List<String> categoryCodes, CollectionOperator categoriesOperator)
protected void createExcludedProductForRule(PromotionSourceRuleModel rule, List<String> excludedProductCodes)
protected void createExcludedCatForRule(PromotionSourceRuleModel rule, List<String> excludedCategoryCodes)
public void cleanStoredParameterValues(PromotionSourceRuleModel rule)
ConditionResolutionStrategycleanStoredParameterValues in interface ConditionResolutionStrategyrule - PromotionSourceRuleModel to clean the parameter values for.protected Integer getNextConditionId(PromotionSourceRuleModel rule)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected PromotionSourceRuleDao getPromotionSourceRuleDao()
public void setPromotionSourceRuleDao(PromotionSourceRuleDao promotionSourceRuleDao)
Copyright © 2017 SAP SE. All Rights Reserved.