Class ValidationInterceptor
- java.lang.Object
-
- de.hybris.platform.validation.interceptors.ValidationInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class ValidationInterceptor extends java.lang.Object implements ValidateInterceptor
This ValidationInterceptor validates the given model with theconstraintswhich are configured in aConstraintGroupModel. This group is added to the session context.
-
-
Constructor Summary
Constructors Constructor Description ValidationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(java.lang.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)
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionIf 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
public void setThresholdChecker(SeverityThresholdAwareChecker thresholdChecker)
-
setValidationService
public void setValidationService(ValidationService validationService)
-
-