Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api.tree
Class DefaultDocumentTreeSorter

java.lang.Object
  extended by org.nuxeo.ecm.core.api.tree.DefaultDocumentTreeSorter
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<DocumentModel>, Sorter, DocumentTreeSorter

public class DefaultDocumentTreeSorter
extends java.lang.Object
implements DocumentTreeSorter

Default implementation for document tree sorter.

Filters on sort property, case insensitively.

Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
DefaultDocumentTreeSorter()
           
 
Method Summary
 int compare(DocumentModel doc1, DocumentModel doc2)
           
 java.lang.String getSortPropertyPath()
           
 void setSortPropertyPath(java.lang.String sortPropertyPath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DefaultDocumentTreeSorter

public DefaultDocumentTreeSorter()
Method Detail

getSortPropertyPath

public java.lang.String getSortPropertyPath()
Specified by:
getSortPropertyPath in interface DocumentTreeSorter

setSortPropertyPath

public void setSortPropertyPath(java.lang.String sortPropertyPath)
Specified by:
setSortPropertyPath in interface DocumentTreeSorter

compare

public int compare(DocumentModel doc1,
                   DocumentModel doc2)
Specified by:
compare in interface java.util.Comparator<DocumentModel>

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.