Class ProductConfigRulesPrepareInterceptor
java.lang.Object
de.hybris.platform.sap.productconfig.rules.interceptor.ProductConfigRulesPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractRuleEngineRuleModel>
public class ProductConfigRulesPrepareInterceptor
extends Object
implements PrepareInterceptor<AbstractRuleEngineRuleModel>
CPQ 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 RuleDaoprotected voidmapMessageForCstic(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule) protected voidmapSeverity(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule) voidonPrepare(AbstractRuleEngineRuleModel model, InterceptorContext context) Called in themodelService.saveAll()method.voidsetRuleDao(RuleDao ruleDao)
-
Constructor Details
-
ProductConfigRulesPrepareInterceptor
public ProductConfigRulesPrepareInterceptor()
-
-
Method Details
-
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
-
mapSeverity
protected void mapSeverity(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule) -
mapMessageForCstic
protected void mapMessageForCstic(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule) -
getRuleDao
-
setRuleDao
- Parameters:
ruleDao-
-