Class TriggerPrepareInterceptor
- java.lang.Object
-
- de.hybris.platform.servicelayer.cronjob.impl.TriggerPrepareInterceptor
-
- All Implemented Interfaces:
Interceptor
,PrepareInterceptor<TriggerModel>
public class TriggerPrepareInterceptor extends java.lang.Object implements PrepareInterceptor<TriggerModel>
Prepare interceptor forTriggerModel
. Takes care of creating properTriggerTaskModel
if necessary. INACTIVE for now! Try to enable it if Trigger creation is ready to be persisted without jalo.
-
-
Constructor Summary
Constructors Constructor Description TriggerPrepareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onPrepare(TriggerModel model, InterceptorContext ctx)
Called in themodelService.saveAll()
method.void
setModelService(ModelService modelService)
-
-
-
Method Detail
-
onPrepare
public void onPrepare(TriggerModel model, InterceptorContext ctx) throws InterceptorException
Description copied from interface:PrepareInterceptor
Called in themodelService.saveAll()
method. Prepares the values of the given model.- Specified by:
onPrepare
in interfacePrepareInterceptor<TriggerModel>
- Parameters:
model
- the model which values has to be preparedctx
- theInterceptorContext
- Throws:
InterceptorException
- if an error occured during the preparation
-
setModelService
public void setModelService(ModelService modelService)
-
-