public class BrowserAdapter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CURRENT_USER_WORKSPACES_PRINCIPAL_ATTRIBUTE
Current user workspaces principal attribute name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BrowserAdapter(CMSService cmsService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areWorkspacesDisplayedForAdministrator()
Check if workspaces are displayed for administrator.
|
List<org.osivia.portal.core.cms.CMSItem> |
getAllUserWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext)
Get all user workspaces.
|
CMSService |
getCmsService()
Getter for cmsService.
|
List<org.osivia.portal.core.cms.CMSItem> |
getCurrentUserWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext)
Get current user workspaces.
|
static BrowserAdapter |
getInstance(CMSService cmsService)
Get singleton instance.
|
List<org.osivia.portal.core.cms.CMSItem> |
getUserWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext,
String userName)
Get user workspaces.
|
String |
getUserWorkspacesPath()
Get user workspaces path.
|
String |
getUserWorkspacesQuery(String userName)
Get user workspaces query.
|
String |
getUserWorkspacesType()
Get user workspaces document type.
|
List<org.osivia.portal.core.cms.CMSItem> |
getWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext,
boolean administrator)
Get workspaces.
|
String |
getWorkspacesQuery()
Get workspaces query.
|
String |
getWorkspacesSchemas()
Get workspaces schemas.
|
protected static final String CURRENT_USER_WORKSPACES_PRINCIPAL_ATTRIBUTE
protected BrowserAdapter(CMSService cmsService)
cmsService - CMS servicepublic static BrowserAdapter getInstance(CMSService cmsService)
cmsService - CMS servicepublic List<org.osivia.portal.core.cms.CMSItem> getWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext, boolean administrator) throws org.osivia.portal.core.cms.CMSException
cmsContext - CMS contextadministrator - administrator indicatororg.osivia.portal.core.cms.CMSExceptionpublic List<org.osivia.portal.core.cms.CMSItem> getCurrentUserWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext) throws org.osivia.portal.core.cms.CMSException
cmsContext - CMS contextorg.osivia.portal.core.cms.CMSExceptionpublic List<org.osivia.portal.core.cms.CMSItem> getAllUserWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext) throws org.osivia.portal.core.cms.CMSException
cmsContext - CMS contextorg.osivia.portal.core.cms.CMSExceptionpublic List<org.osivia.portal.core.cms.CMSItem> getUserWorkspaces(org.osivia.portal.core.cms.CMSServiceCtx cmsContext, String userName) throws org.osivia.portal.core.cms.CMSException
cmsContext - CMS contextuserName - user name, may be null for getting all user workspacesorg.osivia.portal.core.cms.CMSExceptionprotected boolean areWorkspacesDisplayedForAdministrator()
public String getUserWorkspacesPath()
public String getUserWorkspacesType()
public String getWorkspacesQuery()
public String getUserWorkspacesQuery(String userName)
userName - user name, may be empty for getting all user workspacespublic String getWorkspacesSchemas()
public CMSService getCmsService()
Copyright © 2019. All rights reserved.