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 Summary
Constructors Constructor Description SearchQueryConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 SearchFilterSearchFilterconvertQuerySearchFilterIntoStandardSearchFilter(SearchFilter searchFilter)This method takes care of the converter of a specific SearchFilter given to it
-
-
-
Method Detail
-
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
-
-