Class ProductConfigRulesCPSPrepareInterceptor
java.lang.Object
de.hybris.platform.sap.productconfig.rules.cps.interceptor.ProductConfigRulesCPSPrepareInterceptor
- All Implemented Interfaces:
de.hybris.platform.servicelayer.interceptor.Interceptor,de.hybris.platform.servicelayer.interceptor.PrepareInterceptor<AbstractRuleEngineRuleModel>
public class ProductConfigRulesCPSPrepareInterceptor
extends Object
implements de.hybris.platform.servicelayer.interceptor.PrepareInterceptor<AbstractRuleEngineRuleModel>
CPS adds own attributes to the rules source model related to message handling. Those attributes are mapped from the
DTO into the model using this interceptor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.ruleengineservices.rule.dao.RuleDaoprotected voidmapEndDate(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule) voidonPrepare(AbstractRuleEngineRuleModel model, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) voidsetRuleDao(de.hybris.platform.ruleengineservices.rule.dao.RuleDao ruleDao)
-
Constructor Details
-
ProductConfigRulesCPSPrepareInterceptor
public ProductConfigRulesCPSPrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(AbstractRuleEngineRuleModel model, de.hybris.platform.servicelayer.interceptor.InterceptorContext context) throws de.hybris.platform.servicelayer.interceptor.InterceptorException - Specified by:
onPreparein interfacede.hybris.platform.servicelayer.interceptor.PrepareInterceptor<AbstractRuleEngineRuleModel>- Throws:
de.hybris.platform.servicelayer.interceptor.InterceptorException
-
mapEndDate
protected void mapEndDate(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule) -
getRuleDao
protected de.hybris.platform.ruleengineservices.rule.dao.RuleDao getRuleDao() -
setRuleDao
public void setRuleDao(de.hybris.platform.ruleengineservices.rule.dao.RuleDao ruleDao) - Parameters:
ruleDao-
-