Class DroolsKIEBasePrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.droolsruleengineservices.interceptors.DroolsKIEBasePrepareInterceptor
-
- All Implemented Interfaces:
Interceptor,PrepareInterceptor<DroolsKIEBaseModel>
public class DroolsKIEBasePrepareInterceptor extends java.lang.Object implements PrepareInterceptor<DroolsKIEBaseModel>
Prepare intercepter for DroolsKIEBase. Assigns the correct module version, based on associated rules set. The module version "adjustments" are implemented both on module->base->rules and rule->base->module relation ends to make sure we always have the consistent version situation all over the chain
-
-
Constructor Summary
Constructors Constructor Description DroolsKIEBasePrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModuleVersioningServicegetModuleVersioningService()voidonPrepare(DroolsKIEBaseModel base, InterceptorContext context)Called in themodelService.saveAll()method.voidsetModuleVersioningService(ModuleVersioningService moduleVersioningService)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(DroolsKIEBaseModel base, InterceptorContext context) throws InterceptorException
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor<DroolsKIEBaseModel>- Parameters:
base- the model which values has to be preparedcontext- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
getModuleVersioningService
protected ModuleVersioningService getModuleVersioningService()
-
setModuleVersioningService
public void setModuleVersioningService(ModuleVersioningService moduleVersioningService)
-
-