Class DefaultCouponConditionResolutionStrategy
- java.lang.Object
-
- de.hybris.platform.customercouponservices.compiler.strategies.impl.DefaultCouponConditionResolutionStrategy
-
- All Implemented Interfaces:
ConditionResolutionStrategy
public class DefaultCouponConditionResolutionStrategy extends java.lang.Object implements ConditionResolutionStrategy
Creates relationship between customer coupon and promotion source rule for finding promotion by customer coupon code
-
-
Constructor Summary
Constructors Constructor Description DefaultCouponConditionResolutionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanStoredParameterValues(RuleCompilerContext context)Cleans previously stored condition parameter values for given context.voidgetAndStoreParameterValues(RuleConditionData condition, PromotionSourceRuleModel rule, RuleBasedPromotionModel promotion)Gets the value from parameters ofconditionand stores it together with the givenpromotionSourceRuleprotected CustomerCouponDaogetCustomerCouponDao()protected ModelServicegetModelService()voidsetCustomerCouponDao(CustomerCouponDao customerCouponDao)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
getAndStoreParameterValues
public void getAndStoreParameterValues(RuleConditionData condition, PromotionSourceRuleModel rule, RuleBasedPromotionModel promotion)
Description copied from interface:ConditionResolutionStrategyGets the value from parameters ofconditionand stores it together with the givenpromotionSourceRule- Specified by:
getAndStoreParameterValuesin interfaceConditionResolutionStrategy- Parameters:
condition-RuleConditionDatato get the values from.rule-PromotionSourceRuleModelto store the retrieved value for.promotion-RuleBasedPromotionModelrelated to the given source rule
-
cleanStoredParameterValues
public void cleanStoredParameterValues(RuleCompilerContext context)
Description copied from interface:ConditionResolutionStrategyCleans previously stored condition parameter values for given context.- Specified by:
cleanStoredParameterValuesin interfaceConditionResolutionStrategy- Parameters:
context-RuleCompilerContextto clean the parameter values for.
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getCustomerCouponDao
protected CustomerCouponDao getCustomerCouponDao()
-
setCustomerCouponDao
public void setCustomerCouponDao(CustomerCouponDao customerCouponDao)
-
-