public class HistoryEntryInterceptor extends Object implements InitDefaultsInterceptor, PrepareInterceptor
| Constructor and Description |
|---|
HistoryEntryInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onInitDefaults(Object model,
InterceptorContext ctx)
Called by
ModelService.initDefaults(Object) after instantiate a new model. |
void |
onPrepare(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
public void onInitDefaults(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(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 preparationCopyright © 2017 SAP SE. All Rights Reserved.