public class TriggerValidateInterceptor extends java.lang.Object implements ValidateInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected TriggerService |
triggerService |
| Constructor and Description |
|---|
TriggerValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Date |
getCurrentTime() |
void |
onValidate(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setTriggerService(TriggerService triggerService) |
protected TriggerService triggerService
public void setTriggerService(TriggerService triggerService)
public 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 java.util.Date getCurrentTime()
Copyright © 2018 SAP SE. All Rights Reserved.