Class RuleVersioningPrepareInterceptor
java.lang.Object
de.hybris.platform.ruleengineservices.rule.interceptors.RuleVersioningPrepareInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractRuleModel>
public class RuleVersioningPrepareInterceptor
extends Object
implements PrepareInterceptor<AbstractRuleModel>
Versioning-specific prepare interceptor for AbstractRuleModel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RuleModelHistoricalContentCreatorvoidonPrepare(AbstractRuleModel model, InterceptorContext context) Called in themodelService.saveAll()method.voidsetHistoricalContentCreator(RuleModelHistoricalContentCreator historicalContentCreator)
-
Constructor Details
-
RuleVersioningPrepareInterceptor
public RuleVersioningPrepareInterceptor()
-
-
Method Details
-
onPrepare
public void onPrepare(AbstractRuleModel 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<AbstractRuleModel>- Parameters:
model- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getHistoricalContentCreator
-
setHistoricalContentCreator
-