Class DefaultCouponConditionResolutionStrategy
java.lang.Object
de.hybris.platform.couponservices.strategies.impl.DefaultCouponConditionResolutionStrategy
- All Implemented Interfaces:
ConditionResolutionStrategy
public class DefaultCouponConditionResolutionStrategy
extends Object
implements ConditionResolutionStrategy
Creates relationship between customer coupon and promotion source rule for finding promotion by customer coupon code
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCleans 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 CouponDaoprotected ModelServicevoidsetCouponDao(CouponDao couponDao) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultCouponConditionResolutionStrategy
public DefaultCouponConditionResolutionStrategy()
-
-
Method Details
-
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
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
-
setModelService
-
getCouponDao
-
setCouponDao
-