Class Workspace.FavoriteComparator<T extends Workspace>

Type Parameters:
T - workspace type
All Implemented Interfaces:
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