com.jalios.jcms
Class Publication.WorkspaceComparator<T extends Publication>

java.lang.Object
  extended by com.jalios.jstore.BasicStorable.CdateComparator<T>
      extended by com.jalios.jcms.comparator.BasicComparator<T>
          extended by com.jalios.jcms.Publication.WorkspaceComparator<T>
All Implemented Interfaces:
Comparator<T>
Enclosing class:
Publication

public static class Publication.WorkspaceComparator<T extends Publication>
extends BasicComparator<T>

Since:
jcms-5.0.0

Field Summary
 
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, contextMap, jcmsContext, language, locale
 
Constructor Summary
Publication.WorkspaceComparator()
          Default constructor.
Publication.WorkspaceComparator(String lang)
           
 
Method Summary
 int compare(T o1, T o2)
           
 
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
 
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

Publication.WorkspaceComparator

public Publication.WorkspaceComparator()
Default constructor.

Uses language retrieved from current context, cf BasicComparator.

Since:
jcms-7.1.0

Publication.WorkspaceComparator

public Publication.WorkspaceComparator(String lang)
Parameters:
lang - the user language
Since:
jcms-5.6.1
Method Detail

compare

public int compare(T o1,
                   T o2)
Specified by:
compare in interface Comparator<T extends Publication>
Overrides:
compare in class BasicStorable.CdateComparator<T extends Publication>


Copyright © 2001-2010 Jalios SA. All Rights Reserved.