Class ValidationInterceptor
java.lang.Object
de.hybris.platform.validation.interceptors.ValidationInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
This ValidationInterceptor validates the given model with the
constraints which are
configured in a ConstraintGroupModel. This group is added to the session context.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) If it happens that during validation there are violation of level ERROR save will throwValidationViolationExceptionother casevoidsetThresholdChecker(SeverityThresholdAwareChecker thresholdChecker) voidsetValidationService(ValidationService validationService)
-
Constructor Details
-
ValidationInterceptor
public ValidationInterceptor()
-
-
Method Details
-
onValidate
If it happens that during validation there are violation of level ERROR save will throwValidationViolationExceptionother case- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
setThresholdChecker
-
setValidationService
-