public class ProductConfigRulesPrepareInterceptor extends Object implements PrepareInterceptor<AbstractRuleEngineRuleModel>
| Constructor and Description |
|---|
ProductConfigRulesPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected RuleCompilerContextFactory<DefaultRuleCompilerContext> |
getRuleCompilerContextFactory() |
protected void |
mapSeverity(AbstractRuleEngineRuleModel runtimeRule,
ProductConfigSourceRuleModel sourceRule) |
void |
onPrepare(AbstractRuleEngineRuleModel model,
InterceptorContext context)
Called in the
modelService.saveAll() method. |
void |
setRuleCompilerContextFactory(RuleCompilerContextFactory<DefaultRuleCompilerContext> ruleCompilerContextFactory) |
public ProductConfigRulesPrepareInterceptor()
public void onPrepare(AbstractRuleEngineRuleModel model, InterceptorContext context) throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptor<AbstractRuleEngineRuleModel>model - the model which values has to be preparedcontext - the InterceptorContextInterceptorException - if an error occured during the preparationprotected void mapSeverity(AbstractRuleEngineRuleModel runtimeRule, ProductConfigSourceRuleModel sourceRule)
protected RuleCompilerContextFactory<DefaultRuleCompilerContext> getRuleCompilerContextFactory()
public void setRuleCompilerContextFactory(RuleCompilerContextFactory<DefaultRuleCompilerContext> ruleCompilerContextFactory)
Copyright © 2017 SAP SE. All Rights Reserved.