public class CsTicketPrepareInterceptor extends java.lang.Object implements PrepareInterceptor, InitDefaultsInterceptor
| Constructor and Description |
|---|
CsTicketPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createTicketId() |
void |
onInitDefaults(java.lang.Object model,
InterceptorContext ctx)
Called by
ModelService.initDefaults(Object) after instantiate a new model. |
void |
onPrepare(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setInitialTicketState(CsTicketState initialTicketState) |
void |
setKeyGenerator(KeyGenerator keyGenerator) |
public void onInitDefaults(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
InitDefaultsInterceptorModelService.initDefaults(Object) after instantiate a new model.onInitDefaults in interface InitDefaultsInterceptormodel - the model which values should be set to the default valuesctx - the InterceptorContextInterceptorException - if the loading of the default value reports an error.public void onPrepare(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
PrepareInterceptormodelService.saveAll() method. Prepares the values of the given model.onPrepare in interface PrepareInterceptormodel - the model which values has to be preparedctx - the InterceptorContextInterceptorException - if an error occured during the preparationprotected java.lang.String createTicketId()
public void setInitialTicketState(CsTicketState initialTicketState)
public void setKeyGenerator(KeyGenerator keyGenerator)
Copyright © 2018 SAP SE. All Rights Reserved.