Class SearchQueryConverter

java.lang.Object
org.dspace.app.rest.converter.query.SearchQueryConverter

public class SearchQueryConverter extends Object
This method will traverse a list of SearchFilters and transform any SearchFilters with an operator this is equal to 'Query' into a SearchFilter that has a standard DSpace operator like 'contains'
  • Constructor Details

    • SearchQueryConverter

      public SearchQueryConverter()
  • Method Details

    • convert

      public List<SearchFilter> convert(List<SearchFilter> searchFilters)
      This method traverses the list of SearchFilters and transforms all of those that contain 'Query' as the operator into a standard DSpace SearchFilter
      Parameters:
      searchFilters - The list of SearchFilters to be used
      Returns:
      A list of transformed SearchFilters
    • convertQuerySearchFilterIntoStandardSearchFilter

      public SearchFilter convertQuerySearchFilterIntoStandardSearchFilter(SearchFilter searchFilter)
      This method takes care of the converter of a specific SearchFilter given to it
      Parameters:
      searchFilter - The SearchFilter to be transformed
      Returns:
      The transformed SearchFilter