Class SearchResponseSorter
java.lang.Object
org.openehealth.ipf.commons.ihe.hpd.controls.sorting.SearchResponseSorter
- Since:
- 4.3
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,
Comparator<String>> Map from algorithm names ("matching rule IDs" in LDAP terminology) to string comparators.static void
sort
(SearchResponse searchResponse, SortControl2 control) First, sort values of the specified attribute in each search result entry.
-
Constructor Details
-
SearchResponseSorter
public SearchResponseSorter()
-
-
Method Details
-
sort
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
Map from algorithm names ("matching rule IDs" in LDAP terminology) to string comparators. Applications can extend this map.
-