Class Workspace.FavoriteComparator<T extends Workspace>

  • 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
    • Field Detail

    • Constructor Detail

      • FavoriteComparator

        public FavoriteComparator​(Member mbr,
                                  java.lang.String lang)
        Parameters:
        mbr - the member to use for comparison
        lang - the lang to use for comparison