Interface NodeSorter


public interface NodeSorter
  • Method Summary

    Modifier and Type
    Method
    Description
    Comparator<javax.jcr.Node>
    createComparator(javax.servlet.http.HttpServletRequest request)
    Create a comparator to sort nodes.
    default String
    Optional label to show in the UI drop-down to select a sorter.
    The name of a sorter, e.g.
  • Method Details

    • getName

      String getName()
      The name of a sorter, e.g. 'byTitle' or 'byMyCustomProperty' It will be used to find the actual sorter from the SortNodesOperation.RP_SORTER_NAME request parameter
    • getLabel

      default String getLabel()
      Optional label to show in the UI drop-down to select a sorter.
    • createComparator

      Comparator<javax.jcr.Node> createComparator(javax.servlet.http.HttpServletRequest request)
      Create a comparator to sort nodes. Implementations can read additional parameters from request, e.g. whether search should be case-sensitive, ascending/descending, etc.