public class YaasInterceptor extends java.lang.Object implements RemoveInterceptor, ValidateInterceptor
| Constructor and Description |
|---|
YaasInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
notifyClient(java.lang.Object model) |
void |
onRemove(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.removeAll() method. |
void |
onValidate(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setCharonFactory(CharonFactory charonFactory) |
void |
setModelService(ModelService modelService) |
public void onRemove(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
RemoveInterceptormodelService.removeAll() method.onRemove in interface RemoveInterceptormodel - the model which should be removedctx - the InterceptorContextInterceptorException - if the remove reports an errorpublic void onValidate(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.protected void notifyClient(java.lang.Object model)
public void setCharonFactory(CharonFactory charonFactory)
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.