Class StringToFilterCriteriaGenericConverter
java.lang.Object
de.digitalcollections.cudami.server.controller.converter.StringToFilterCriteriaGenericConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.GenericConverter
@Component
public class StringToFilterCriteriaGenericConverter
extends Object
implements org.springframework.core.convert.converter.GenericConverter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) static <T> de.digitalcollections.model.list.filtering.FilterCriterion<T>createFilterCriterion(Class<T> targetClass, String expression, boolean isNativeExpression, de.digitalcollections.model.list.filtering.FilterOperation filterOperation, String operationValue, org.springframework.core.convert.ConversionService conversionService) Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair>
-
Constructor Details
-
StringToFilterCriteriaGenericConverter
public StringToFilterCriteriaGenericConverter()
-
-
Method Details
-
getConvertibleTypes
public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()- Specified by:
getConvertibleTypesin interfaceorg.springframework.core.convert.converter.GenericConverter
-
convert
public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
convertin interfaceorg.springframework.core.convert.converter.GenericConverter
-
createFilterCriterion
public static <T> de.digitalcollections.model.list.filtering.FilterCriterion<T> createFilterCriterion(Class<T> targetClass, String expression, boolean isNativeExpression, de.digitalcollections.model.list.filtering.FilterOperation filterOperation, String operationValue, org.springframework.core.convert.ConversionService conversionService) throws IllegalArgumentException - Throws:
IllegalArgumentException
-