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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(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>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringToFilterCriteriaGenericConverter

      public StringToFilterCriteriaGenericConverter()
  • Method Details

    • getConvertibleTypes

      public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
      Specified by:
      getConvertibleTypes in interface org.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:
      convert in interface org.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