public class CecModelInterceptor extends java.lang.Object implements RemoveInterceptor, ValidateInterceptor
| Constructor and Description |
|---|
CecModelInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
ModelService |
getModelService() |
SapCharonFactory |
getSapCharonFactory() |
void |
onRemove(java.lang.Object model,
InterceptorContext arg1)
Called in the
modelService.removeAll() method. |
void |
onValidate(java.lang.Object model,
InterceptorContext arg1)
Called in the
modelService.saveAll() method. |
void |
setModelService(ModelService modelService) |
void |
setSapCharonFactory(SapCharonFactory sapCharonFactory) |
public void onValidate(java.lang.Object model,
InterceptorContext arg1)
throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedarg1 - the InterceptorContextInterceptorException - if any values of the model are not valid.public void onRemove(java.lang.Object model,
InterceptorContext arg1)
throws InterceptorException
RemoveInterceptormodelService.removeAll() method.onRemove in interface RemoveInterceptormodel - the model which should be removedarg1 - the InterceptorContextInterceptorException - if the remove reports an errorpublic SapCharonFactory getSapCharonFactory()
public void setSapCharonFactory(SapCharonFactory sapCharonFactory)
public ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.