public class ValidationInterceptor extends java.lang.Object implements ValidateInterceptor
constraints which are
configured in a ConstraintGroupModel. This group is added to the session context.| Constructor and Description |
|---|
ValidationInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onValidate(java.lang.Object model,
InterceptorContext ctx)
If it happens that during validation there are violation of level ERROR save will throw
ValidationViolationException other case |
void |
setThresholdChecker(SeverityThresholdAwareChecker thresholdChecker) |
void |
setValidationService(ValidationService validationService) |
public void onValidate(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
ValidationViolationException other caseonValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.public void setThresholdChecker(SeverityThresholdAwareChecker thresholdChecker)
public void setValidationService(ValidationService validationService)
Copyright © 2018 SAP SE. All Rights Reserved.