public class UserDashboardSpaceProvider extends AbstractSpaceProvider
If the user does not have any dashboard, it tries to copy the one configured by the Administrator. If it fails, create an empty dashboard.
| Modifier and Type | Class and Description |
|---|---|
static class |
UserDashboardSpaceProvider.DefaultDashboardSpaceCopy |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DASHBOARD_SPACE_PROVIDER |
static String |
USER_DASHBOARD_SPACE_NAME |
name| Constructor and Description |
|---|
UserDashboardSpaceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Space |
createEmptyDashboard(String userWorkspacePath,
CoreSession session) |
protected Space |
doGetSpace(CoreSession session,
DocumentModel contextDocument,
String spaceName,
Map<String,String> parameters) |
protected Space |
getOrCreateSpace(CoreSession session,
Map<String,String> parameters) |
protected DocumentModel |
getUserPersonalWorkspace(CoreSession session) |
protected void |
i18nGadgets(Space space,
CoreSession session,
Map<String,String> parameters) |
boolean |
isReadOnly(CoreSession session) |
public static final String DEFAULT_DASHBOARD_SPACE_PROVIDER
public static final String USER_DASHBOARD_SPACE_NAME
protected Space doGetSpace(CoreSession session, DocumentModel contextDocument, String spaceName, Map<String,String> parameters) throws SpaceException
doGetSpace in class AbstractSpaceProviderSpaceExceptionprotected Space getOrCreateSpace(CoreSession session, Map<String,String> parameters) throws ClientException
ClientExceptionprotected DocumentModel getUserPersonalWorkspace(CoreSession session) throws ClientException
ClientExceptionprotected void i18nGadgets(Space space, CoreSession session, Map<String,String> parameters) throws ClientException
ClientExceptionprotected Space createEmptyDashboard(String userWorkspacePath, CoreSession session) throws ClientException
ClientExceptionpublic boolean isReadOnly(CoreSession session)
Copyright © 2019 Nuxeo SA. All rights reserved.