Class CsTicketPrepareInterceptor
java.lang.Object
de.hybris.platform.ticket.interceptors.CsTicketPrepareInterceptor
- All Implemented Interfaces:
InitDefaultsInterceptor,Interceptor,PrepareInterceptor
public class CsTicketPrepareInterceptor
extends Object
implements PrepareInterceptor, InitDefaultsInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringvoidonInitDefaults(Object model, InterceptorContext ctx) Called byModelService.initDefaults(Object)after instantiate a new model.voidonPrepare(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetInitialTicketState(CsTicketState initialTicketState) voidsetKeyGenerator(KeyGenerator keyGenerator)
-
Constructor Details
-
CsTicketPrepareInterceptor
public CsTicketPrepareInterceptor()
-
-
Method Details
-
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.
-
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
-
createTicketId
-
setInitialTicketState
-
setKeyGenerator
-