Class TopbarUtil


  • public final class TopbarUtil
    extends java.lang.Object
    • Field Detail

      • TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP

        public static final java.lang.String TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP
        See Also:
        Constant Field Values
      • TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE

        public static final long TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE
        See Also:
        Constant Field Values
    • Method Detail

      • getMemberInitialWorkspaceSet

        public static java.util.SortedSet<Workspace> getMemberInitialWorkspaceSet​(Member mbr,
                                                                                  java.lang.String userLang,
                                                                                  boolean withPortal,
                                                                                  boolean showModel)
        Returns the set of workspace the member :
        • Belongs to
        • Has a portal (if withPortal is set to true)
        • Is not a model
        Parameters:
        mbr - the Member
        userLang - the user language
        withPortal - if set to true, only workspaces with a portal will be added to the set
        showModel - if set to true, the models will be displayed
        Returns:
        a Set of Workspace
        Since:
        jcms-9.0.0
      • getMemberSearchedWorkspaceSet

        public static java.util.SortedSet<Workspace> getMemberSearchedWorkspaceSet​(Member mbr,
                                                                                   java.lang.String userLang,
                                                                                   java.lang.String query,
                                                                                   boolean withPortal,
                                                                                   boolean showModel)
        Returns the set of workspace which :
        • Matches the query
        • Is a model the member can work on
        • Has a portal (If withPortal is set to true)
        • And the member can read the portal
        Parameters:
        mbr - the Member
        userLang - the user language
        withPortal - if set to true, only workspaces with a portal will be added to the set
        showModel - if set to true, models the member can work on will be displayed. If false, models will be removed from set
        Returns:
        a Set of Workspace
        Since:
        jcms-9.0.0
      • getPublishMenuCacheTimeout

        public static long getPublishMenuCacheTimeout()
        Returns the timeout in minutes of the Publish menu cache.
        Returns:
        timeout value in minutes