Class DefaultValidatableService
java.lang.Object
de.hybris.platform.cmsfacades.common.validator.impl.DefaultValidatableService
- All Implemented Interfaces:
ValidatableService
Default Implementation of the
ValidatableService.
This implementation executes the validatable supplier and then checks if there are errors registered.
If there are errors present in current ValidationErrors, then it throws a validation exception with the list of Errors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TExecutes the validatable supplier to collect any validation error after executionprotected ValidationErrorsProviderprotected booleanisEmptyCollection(Collection<?> c) Verifies whether the collection is empty or not.voidsetValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)
-
Constructor Details
-
DefaultValidatableService
public DefaultValidatableService()
-
-
Method Details
-
execute
Description copied from interface:ValidatableServiceExecutes the validatable supplier to collect any validation error after execution- Specified by:
executein interfaceValidatableService- Parameters:
validatable- the validatable supplier.- Returns:
- the expected result after successful validation
-
isEmptyCollection
Verifies whether the collection is empty or not. -
getValidationErrorsProvider
-
setValidationErrorsProvider
-