Class SearchQueryConverter

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

public class SearchQueryConverter extends Object
Utility class for transforming a list of SearchFilters. Each SearchFilter with an operator set to 'query' is converted into a SearchFilter with 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 with 'query' as the operator into a standard DSpace SearchFilter
      Parameters:
      searchFilters - list of SearchFilters to be transformed
      Returns:
      list of transformed SearchFilters