Class TopbarUtil

java.lang.Object
com.jalios.jcms.uicomponent.TopbarUtil

public final class TopbarUtil extends Object
  • Field Details

    • TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP

      public static final String TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP
      See Also:
    • TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE

      public static final long TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE
      See Also:
  • Method Details

    • getMemberInitialWorkspaceSet

      public static SortedSet<Workspace> getMemberInitialWorkspaceSet(Member mbr, 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 SortedSet<Workspace> getMemberSearchedWorkspaceSet(Member mbr, String userLang, 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