Class ProductConfigRulesCPSPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.rules.cps.interceptor.ProductConfigRulesCPSPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractRuleEngineRuleModel>
public class ProductConfigRulesCPSPrepareInterceptor extends java.lang.Object implements 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 Constructor Description ProductConfigRulesCPSPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RuleDaogetRuleDao()protected voidmapEndDate(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule)voidonPrepare(AbstractRuleEngineRuleModel model, InterceptorContext context)Called in themodelService.saveAll()method.voidsetRuleDao(RuleDao ruleDao)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(AbstractRuleEngineRuleModel model, InterceptorContext context) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<AbstractRuleEngineRuleModel>- Parameters:
model- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
mapEndDate
protected void mapEndDate(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule)
-
getRuleDao
protected RuleDao getRuleDao()
-
setRuleDao
public void setRuleDao(RuleDao ruleDao)
- Parameters:
ruleDao-
-
-