org.exoplatform.ecms.xcmis.sp
Class DocumentOrderResultSorter

java.lang.Object
  extended by org.exoplatform.ecms.xcmis.sp.DocumentOrderResultSorter
All Implemented Interfaces:
java.util.Comparator<org.xcmis.search.result.ScoredRow>

public class DocumentOrderResultSorter
extends java.lang.Object
implements java.util.Comparator<org.xcmis.search.result.ScoredRow>


Constructor Summary
DocumentOrderResultSorter(java.lang.String selectorName, org.xcmis.spi.Storage storage)
          The Constructor.
 
Method Summary
 int compare(org.xcmis.search.result.ScoredRow o1, org.xcmis.search.result.ScoredRow o2)
          
 java.lang.String getPath(java.lang.String identifer)
          Return comparable location of the object.
 
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
 

Constructor Detail

DocumentOrderResultSorter

public DocumentOrderResultSorter(java.lang.String selectorName,
                                 org.xcmis.spi.Storage storage)
The Constructor.

Parameters:
selectorName - String selector name
storage - the storage
Method Detail

compare

public int compare(org.xcmis.search.result.ScoredRow o1,
                   org.xcmis.search.result.ScoredRow o2)

Specified by:
compare in interface java.util.Comparator<org.xcmis.search.result.ScoredRow>

getPath

public java.lang.String getPath(java.lang.String identifer)
Return comparable location of the object.

Parameters:
identifer - String
Returns:
path String


Copyright © 2012 eXo Platform SAS. All Rights Reserved.