public class DataSearchValidationServiceImpl implements DataSearchValidationService
Default implementation of interface DataSearchValidationService
.
interface DataSearchValidationService
public static com.weedow.spring.data.search.validation.DataSearchValidationServiceImpl.Companion Companion
public DataSearchValidationServiceImpl(@NotNull DataSearchErrorsFactory dataSearchErrorsFactory)
Default implementation of interface DataSearchValidationService
.
interface DataSearchValidationService
public <T> void validate(@NotNull java.util.Collection<? extends com.weedow.spring.data.search.expression.FieldExpression> fieldExpressions, @NotNull SearchDescriptor<T> searchDescriptor)
Validates the given interface FieldExpression
.
fieldExpressions
- field expressions to validatesearchDescriptor
- interface SearchDescriptor
of an Entity related to the fieldsValidationException
- when there are any validation errorsinterface FieldExpression