Package com.jalios.jcms.uicomponent
Class TopbarUtil
- java.lang.Object
-
- com.jalios.jcms.uicomponent.TopbarUtil
-
public final class TopbarUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopbarUtil.CanWorkOnModelWorkspaceSelector
Select model workspaces the user can work on.static class
TopbarUtil.HasPortalWorkspaceSelector
Select workspace with a Portal.
-
Field Summary
Fields Modifier and Type Field Description static long
TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE
static java.lang.String
TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 modelstatic 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 portalstatic long
getPublishMenuCacheTimeout()
Returns the timeout in minutes of the Publish menu cache.
-
-
-
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
-
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
- theMember
userLang
- 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
Set
ofWorkspace
- 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
-
-