public class DefaultCouponConditionResolutionStrategy extends java.lang.Object implements ConditionResolutionStrategy
| Constructor and Description |
|---|
DefaultCouponConditionResolutionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanStoredParameterValues(RuleCompilerContext context)
Cleans previously stored condition parameter values for given context.
|
void |
getAndStoreParameterValues(RuleConditionData condition,
PromotionSourceRuleModel rule,
RuleBasedPromotionModel promotion)
Gets the value from parameters of
condition and stores it together with the given
promotionSourceRule |
protected CustomerCouponDao |
getCustomerCouponDao() |
protected ModelService |
getModelService() |
void |
setCustomerCouponDao(CustomerCouponDao customerCouponDao) |
void |
setModelService(ModelService modelService) |
public DefaultCouponConditionResolutionStrategy()
public void getAndStoreParameterValues(RuleConditionData condition, PromotionSourceRuleModel rule, RuleBasedPromotionModel promotion)
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.promotion - RuleBasedPromotionModel related to the given source rulepublic void cleanStoredParameterValues(RuleCompilerContext context)
ConditionResolutionStrategycleanStoredParameterValues in interface ConditionResolutionStrategycontext - RuleCompilerContext to clean the parameter values for.protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected CustomerCouponDao getCustomerCouponDao()
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
Copyright © 2018 SAP SE. All Rights Reserved.