Package com.jalios.jcms.workspace
Class Workspace.FavoriteComparator<T extends Workspace>
- java.lang.Object
-
- com.jalios.jstore.BasicStorable.CdateComparator<T>
-
- com.jalios.jcms.comparator.BasicComparator<T>
-
- com.jalios.jcms.workspace.Workspace.NameComparator<T>
-
- com.jalios.jcms.workspace.Workspace.FavoriteComparator<T>
-
- Type Parameters:
T
- workspace type
- All Implemented Interfaces:
java.util.Comparator<T>
- Enclosing class:
- Workspace
public static class Workspace.FavoriteComparator<T extends Workspace> extends Workspace.NameComparator<T>
Compares workspaces based on member engagement.The order criteria are :
- the closed state of the workspace
- the workspace is a Member's favorite workspace
- the member belongs to the workspace
- the member is administrator of the workspace
- then, defaults on workspace's title comparison
- Since:
- jcms-9.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.comparator.BasicComparator
BasicComparator.StringComparisonMethod
-
-
Field Summary
Fields Modifier and Type Field Description protected Member
mbr
-
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, comparisonMethod, contextMap, jcmsContext, language, locale
-
-
Constructor Summary
Constructors Constructor Description FavoriteComparator(Member mbr, java.lang.String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T ws1, T ws2)
-
Methods inherited from class com.jalios.jcms.comparator.BasicComparator
compareString
-
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
-
-