public class CsTicketEventPrepareInterceptor extends java.lang.Object implements PrepareInterceptor, InitDefaultsInterceptor
| Constructor and Description |
|---|
CsTicketEventPrepareInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
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 |
setCommentService(CommentService commentService) |
void |
setKeyGenerator(KeyGenerator keyGenerator) |
void |
setTicketSystemComponent(java.lang.String ticketSystemComponent) |
void |
setTicketSystemDomain(java.lang.String ticketSystemDomain) |
void |
setUserService(UserService userService) |
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 preparationpublic 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 setCommentService(CommentService commentService)
public void setKeyGenerator(KeyGenerator keyGenerator)
public void setUserService(UserService userService)
public void setTicketSystemDomain(java.lang.String ticketSystemDomain)
public void setTicketSystemComponent(java.lang.String ticketSystemComponent)
Copyright © 2018 SAP SE. All Rights Reserved.