Package org.nuxeo.ecm.core.api.tree
Class DefaultDocumentTreeSorter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.tree.DefaultDocumentTreeSorter
-
- All Implemented Interfaces:
Serializable
,Comparator<DocumentModel>
,Sorter
,DocumentTreeSorter
public class DefaultDocumentTreeSorter extends Object implements DocumentTreeSorter
Default implementation for document tree sorter.Filters on sort property, case insensitively.
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
sortPropertyPath
-
Constructor Summary
Constructors Constructor Description DefaultDocumentTreeSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(DocumentModel doc1, DocumentModel doc2)
String
getSortPropertyPath()
void
setSortPropertyPath(String sortPropertyPath)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
sortPropertyPath
protected String sortPropertyPath
-
-
Constructor Detail
-
DefaultDocumentTreeSorter
public DefaultDocumentTreeSorter()
-
-
Method Detail
-
getSortPropertyPath
public String getSortPropertyPath()
- Specified by:
getSortPropertyPath
in interfaceDocumentTreeSorter
-
setSortPropertyPath
public void setSortPropertyPath(String sortPropertyPath)
- Specified by:
setSortPropertyPath
in interfaceDocumentTreeSorter
-
compare
public int compare(DocumentModel doc1, DocumentModel doc2)
- Specified by:
compare
in interfaceComparator<DocumentModel>
-
-