Package com.jalios.jcms.uicomponent
Class TopbarUtil
java.lang.Object
com.jalios.jcms.uicomponent.TopbarUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSelect model workspaces the user can work on.static classSelect workspace with a Portal. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetMemberInitialWorkspaceSet(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 modelgetMemberSearchedWorkspaceSet(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 portalstatic longReturns the timeout in minutes of the Publish menu cache.
-
Field Details
-
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
-
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- theMemberuserLang- the user languagewithPortal- if set to true, only workspaces with a portal will be added to the setshowModel- if set to true, models the member can work on will be displayed. If false, models will be removed from set- Returns:
- a
SetofWorkspace - 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
-