Class SearchQueryConverter
java.lang.Object
org.dspace.app.rest.converter.query.SearchQueryConverter
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 -
Method Summary
Modifier and TypeMethodDescriptionconvert(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 SearchFilterconvertQuerySearchFilterIntoStandardSearchFilter(SearchFilter searchFilter) This method takes care of the converter of a specific SearchFilter given to it
-
Constructor Details
-
SearchQueryConverter
public SearchQueryConverter()
-
-
Method Details
-
convert
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
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
-