Class SearchResponseSorter
- java.lang.Object
-
- org.openehealth.ipf.commons.ihe.hpd.controls.sorting.SearchResponseSorter
-
public class SearchResponseSorter extends Object
- Since:
- 4.3
- Author:
- Dmytro Rud
-
-
Constructor Summary
Constructors Constructor Description SearchResponseSorter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Comparator<String>>getCOMPARATORS()Map from algorithm names ("matching rule IDs" in LDAP terminology) to string comparators.static voidsort(SearchResponse searchResponse, SortControl2 control)First, sort values of the specified attribute in each search result entry.
-
-
-
Method Detail
-
sort
public static void sort(SearchResponse searchResponse, SortControl2 control) throws IOException
First, sort values of the specified attribute in each search result entry. Then, sort search result entries based on the first value of the specified attribute.- Parameters:
searchResponse- search response whose contents will be sorted in-placecontrol- sorting control- Throws:
IOException
-
getCOMPARATORS
public static Map<String,Comparator<String>> getCOMPARATORS()
Map from algorithm names ("matching rule IDs" in LDAP terminology) to string comparators. Applications can extend this map.
-
-