public class JaloInitDefaultsInterceptor extends java.lang.Object implements InitDefaultsInterceptor, PrepareInterceptor
| Constructor and Description |
|---|
JaloInitDefaultsInterceptor() |
| 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 |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setSessionService(SessionService sessionService) |
void |
setTypeService(TypeService typeService) |
public void setCommonI18NService(CommonI18NService commonI18NService)
public void setTypeService(TypeService typeService)
public void setSessionService(SessionService sessionService)
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.Copyright © 2018 SAP SE. All Rights Reserved.