Class RuleVersioningPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.interceptors.RuleVersioningPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<AbstractRuleModel>
public class RuleVersioningPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<AbstractRuleModel>
Versioning-specific prepare interceptor for AbstractRuleModel.
-
-
Constructor Summary
Constructors Constructor Description RuleVersioningPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RuleModelHistoricalContentCreatorgetHistoricalContentCreator()voidonPrepare(AbstractRuleModel model, InterceptorContext context)Called in themodelService.saveAll()method.voidsetHistoricalContentCreator(RuleModelHistoricalContentCreator historicalContentCreator)
-
-
-
Method Detail
-
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
protected RuleModelHistoricalContentCreator getHistoricalContentCreator()
-
setHistoricalContentCreator
public void setHistoricalContentCreator(RuleModelHistoricalContentCreator historicalContentCreator)
-
-