Package com.adobe.acs.commons.sorter
Interface NodeSorter
public interface NodeSorter
-
Method Summary
Modifier and TypeMethodDescriptionComparator<javax.jcr.Node>createComparator(javax.servlet.http.HttpServletRequest request) Create a comparator to sort nodes.default StringgetLabel()Optional label to show in the UI drop-down to select a sorter.getName()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 theSortNodesOperation.RP_SORTER_NAMErequest parameter -
getLabel
Optional label to show in the UI drop-down to select a sorter. -
createComparator
Create a comparator to sort nodes. Implementations can read additional parameters from request, e.g. whether search should be case-sensitive, ascending/descending, etc.
-