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 Details

    • SearchResponseSorter

      public SearchResponseSorter()
  • Method Details

    • 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-place
      control - 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.