public final class SandboxFactory extends WCMUtil
| Modifier and Type | Class and Description |
|---|---|
class |
SandboxFactory.UserRoleWrapper |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
PERMISSIONS |
DIR_ROOT, LOCK_KEY_STORE_NAME, PATTERN_ILLEGAL_SEQUENCE, ROLE_CONTENT_CONTRIBUTOR, ROLE_CONTENT_MANAGER, ROLE_CONTENT_PUBLISHER, ROLE_CONTENT_REVIEWER, SPACE_ICON_WEBSITE, STORE_PREVIEW, STORE_SEPARATOR, STORE_WORKFLOW, WORKFLOW_SUBMITDIRECT_NAMEAVM_PATH_SEPARATOR, AVM_PATH_SEPARATOR_CHAR, AVM_STORE_SEPARATOR, AVM_STORE_SEPARATOR_CHAR, INITIAL_SNAPSHOT| Modifier and Type | Method and Description |
|---|---|
void |
addStagingAreaUser(String storeId,
String authority,
String role) |
SandboxInfo |
createReadOnlyWorkflowSandbox(String storeId)
Create a read-only workflow sandbox for the named store.
|
SandboxInfo |
createStagingSandbox(String storeId,
org.alfresco.service.cmr.repository.NodeRef webProjectNodeRef,
String branchStoreId)
Create the staging sandbox for the named store.
|
SandboxInfo |
createUserSandbox(String storeId,
String username,
String role)
Create a user sandbox for the named store.
|
String |
createUserWorkflowSandbox(String stagingStore,
String userStore)
Creates a workflow sandbox for the given user store.
|
SandboxInfo |
createWorkflowSandbox(String storeId)
Create a workflow sandbox for the named store.
|
void |
deleteSandbox(SandboxInfo sbInfo,
boolean isSubmitDirectWorkflowSandbox,
boolean removeLocks) |
void |
deleteSandbox(String sbStoreId) |
void |
deleteSandbox(String sbStoreId,
boolean isSubmitDirectWorkflowSandbox) |
List<SandboxInfo> |
listAllSandboxes(String wpStoreId) |
List<SandboxInfo> |
listAllSandboxes(String wpStoreId,
boolean includeWorkflowSandboxes,
boolean includeLocalhostDeployed) |
void |
removeGroupsForStore(String storeRoot) |
void |
removeSandboxManagers(String storeId,
List<String> managersToRemove)
Update the permissions for the list of sandbox managers applied to a user sandbox.
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setAvmLockingService(AVMLockingService avmLockingService) |
void |
setAvmService(AVMService avmService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setStagingPermissionMasks(String storeId) |
void |
setVirtServerRegistry(VirtServerRegistry virtServerRegistry) |
void |
updateSandboxManagers(String storeId,
List<String> managers)
Update the permissions for the list of sandbox managers applied to a user sandbox.
|
void |
updateSandboxRoles(String wpStoreId,
List<SandboxFactory.UserRoleWrapper> usersToUpdate,
Set<String> permissionsList) |
buildSandboxRootPath, buildStagingPreviewStoreName, buildStagingStoreName, buildStoreRootPath, buildStoreWebappPath, buildUserMainStoreName, buildUserPreviewStoreName, buildWorkflowMainStoreName, buildWorkflowPreviewStoreName, escapeStoreNameComponent, getCommonWebApp, getCorrespondingMainStoreName, getCorrespondingPath, getCorrespondingPathInMainStore, getCorrespondingPathInPreviewStore, getCorrespondingPreviewStoreName, getSandboxPath, getSandboxRelativePath, getSandboxStoreId, getStoreRelativePath, getUserName, getWebapp, getWebappPath, getWebappRelativePath, getWebProject, getWebProjectNodeFromWebProjectStore, getWebProjectStoreId, getWebProjectStoreIdFromPath, getWorkflowId, isLocalhostDeployedStore, isPreviewStore, isStagingStore, isUserStore, isWorkflowStore, listWebUserRefs, listWebUsers, lookupStoreDNS, removeAllVServerWebapps, removeVServerWebapp, updateVServerWebappaddLeadingSlash, buildAVMPath, extendAVMPath, getStoreName, normalizePath, splitBase, splitPathpublic static final String[] PERMISSIONS
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setAvmService(AVMService avmService)
public void setVirtServerRegistry(VirtServerRegistry virtServerRegistry)
public void setAuthorityService(AuthorityService authorityService)
public void setAvmLockingService(AVMLockingService avmLockingService)
public SandboxInfo createStagingSandbox(String storeId, org.alfresco.service.cmr.repository.NodeRef webProjectNodeRef, String branchStoreId)
storeId - The store name to create the sandbox for.webProjectNodeRef - The noderef for the webproject.branchStoreId - The ID of the store to branch this staging store from.public void setStagingPermissionMasks(String storeId)
public SandboxInfo createUserSandbox(String storeId, String username, String role)
storeId - The store id to create the sandbox forusername - Username of the user to create the sandbox forrole - Role permission for the userpublic SandboxInfo createWorkflowSandbox(String storeId)
storeId - The id of the store to create a sandbox forpublic SandboxInfo createReadOnlyWorkflowSandbox(String storeId)
storeId - The id of the store to create a sandbox forpublic String createUserWorkflowSandbox(String stagingStore, String userStore)
stagingStore - The name of the staging store the user sandbox is layered overuserStore - The name of the user store to create the workflow forpublic List<SandboxInfo> listAllSandboxes(String wpStoreId)
public List<SandboxInfo> listAllSandboxes(String wpStoreId, boolean includeWorkflowSandboxes, boolean includeLocalhostDeployed)
public void deleteSandbox(String sbStoreId)
public void deleteSandbox(String sbStoreId, boolean isSubmitDirectWorkflowSandbox)
public void deleteSandbox(SandboxInfo sbInfo, boolean isSubmitDirectWorkflowSandbox, boolean removeLocks)
public void updateSandboxManagers(String storeId, List<String> managers)
Ensures that all managers in the list have full WRITE access to the specified user stores.
storeId - The store id of the sandbox to updatemanagers - The list of authorities who have ContentManager role in the web projectpublic void removeSandboxManagers(String storeId, List<String> managersToRemove)
Ensures that all managers in the list have full WRITE access to the specified user stores.
storeId - The store id of the sandbox to updatemanagers - The list of authorities who have ContentManager role in the web projectpublic void updateSandboxRoles(String wpStoreId, List<SandboxFactory.UserRoleWrapper> usersToUpdate, Set<String> permissionsList)
public void removeGroupsForStore(String storeRoot)
Copyright © 2005–2014 Alfresco Software. All rights reserved.