Class WorkflowItemAttachmentDefaultCodeInterceptor
java.lang.Object
de.hybris.platform.workflow.interceptors.WorkflowItemAttachmentDefaultCodeInterceptor
- All Implemented Interfaces:
Interceptor,PrepareInterceptor
public class WorkflowItemAttachmentDefaultCodeInterceptor
extends Object
implements PrepareInterceptor
This interceptor sets code for WorkflowItemAttachment if no one was set
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetKeyGenerator(KeyGenerator keyGenerator)
-
Constructor Details
-
WorkflowItemAttachmentDefaultCodeInterceptor
public WorkflowItemAttachmentDefaultCodeInterceptor()
-
-
Method Details
-
onPrepare
Description copied from interface:PrepareInterceptorCalled in themodelService.saveAll()method. Prepares the values of the given model.- Specified by:
onPreparein interfacePrepareInterceptor- Parameters:
model- the model which values has to be preparedctx- theInterceptorContext- Throws:
InterceptorException- if an error occured during the preparation
-
setKeyGenerator
- Parameters:
keyGenerator- the keyGenerator to set
-