Class CsTicketEventPrepareInterceptor
java.lang.Object
de.hybris.platform.ticket.interceptors.CsTicketEventPrepareInterceptor
- All Implemented Interfaces:
InitDefaultsInterceptor,Interceptor,PrepareInterceptor
public class CsTicketEventPrepareInterceptor
extends Object
implements PrepareInterceptor, InitDefaultsInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonInitDefaults(Object model, InterceptorContext ctx) Called byModelService.initDefaults(Object)after instantiate a new model.voidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetCommentService(CommentService commentService) voidsetKeyGenerator(KeyGenerator keyGenerator) voidsetTicketSystemComponent(String ticketSystemComponent) voidsetTicketSystemDomain(String ticketSystemDomain) voidsetUserService(UserService userService)
-
Constructor Details
-
CsTicketEventPrepareInterceptor
public CsTicketEventPrepareInterceptor()
-
-
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
-
onInitDefaults
Description copied from interface:InitDefaultsInterceptorCalled byModelService.initDefaults(Object)after instantiate a new model.- Specified by:
onInitDefaultsin interfaceInitDefaultsInterceptor- Parameters:
model- the model which values should be set to the default valuesctx- theInterceptorContext- Throws:
InterceptorException- if the loading of the default value reports an error.
-
setCommentService
-
setKeyGenerator
-
setUserService
-
setTicketSystemDomain
-
setTicketSystemComponent
-