public final class TopbarUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TopbarUtil.CanWorkOnModelWorkspaceSelector
Select model workspaces the user can work on.
|
static class |
TopbarUtil.HasPortalWorkspaceSelector
Select workspace with a Portal.
|
Modifier and Type | Field and Description |
---|---|
static long |
TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE |
static java.lang.String |
TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP |
Modifier and Type | Method and 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 model
|
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
|
static long |
getPublishMenuCacheTimeout()
Returns the timeout in minutes of the Publish menu cache.
|
public static final java.lang.String TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_PROP
public static final long TOPBAR_PUBLISHMENU_CACHE_TIMEOUT_DEFAULT_VALUE
public static java.util.SortedSet<Workspace> getMemberInitialWorkspaceSet(Member mbr, java.lang.String userLang, boolean withPortal, boolean showModel)
public static java.util.SortedSet<Workspace> getMemberSearchedWorkspaceSet(Member mbr, java.lang.String userLang, java.lang.String query, boolean withPortal, boolean showModel)
mbr
- the Member
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 setSet
of Workspace
public static long getPublishMenuCacheTimeout()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.