public final class SandboxFactory extends WCMUtil
Modifier and Type | Class and Description |
---|---|
class |
SandboxFactory.UserRoleWrapper |
Modifier and Type | Field and Description |
---|---|
static java.lang.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_NAME
AVM_PATH_SEPARATOR, AVM_PATH_SEPARATOR_CHAR, AVM_STORE_SEPARATOR, AVM_STORE_SEPARATOR_CHAR, INITIAL_SNAPSHOT
Modifier and Type | Method and Description |
---|---|
void |
addStagingAreaUser(java.lang.String storeId,
java.lang.String authority,
java.lang.String role) |
SandboxInfo |
createReadOnlyWorkflowSandbox(java.lang.String storeId)
Create a read-only workflow sandbox for the named store.
|
SandboxInfo |
createStagingSandbox(java.lang.String storeId,
org.alfresco.service.cmr.repository.NodeRef webProjectNodeRef,
java.lang.String branchStoreId)
Create the staging sandbox for the named store.
|
SandboxInfo |
createUserSandbox(java.lang.String storeId,
java.lang.String username,
java.lang.String role)
Create a user sandbox for the named store.
|
java.lang.String |
createUserWorkflowSandbox(java.lang.String stagingStore,
java.lang.String userStore)
Creates a workflow sandbox for the given user store.
|
SandboxInfo |
createWorkflowSandbox(java.lang.String storeId)
Create a workflow sandbox for the named store.
|
void |
deleteSandbox(SandboxInfo sbInfo,
boolean isSubmitDirectWorkflowSandbox,
boolean removeLocks) |
void |
deleteSandbox(java.lang.String sbStoreId) |
void |
deleteSandbox(java.lang.String sbStoreId,
boolean isSubmitDirectWorkflowSandbox) |
java.util.List |
listAllSandboxes(java.lang.String wpStoreId) |
java.util.List |
listAllSandboxes(java.lang.String wpStoreId,
boolean includeWorkflowSandboxes,
boolean includeLocalhostDeployed) |
void |
removeGroupsForStore(java.lang.String storeRoot) |
void |
removeSandboxManagers(java.lang.String storeId,
java.util.List 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(java.lang.String storeId) |
void |
setVirtServerRegistry(org.alfresco.mbeans.VirtServerRegistry virtServerRegistry) |
void |
updateSandboxManagers(java.lang.String storeId,
java.util.List managers)
Update the permissions for the list of sandbox managers applied to a user sandbox.
|
void |
updateSandboxRoles(java.lang.String wpStoreId,
java.util.List usersToUpdate,
java.util.Set 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, updateVServerWebapp
addLeadingSlash, buildAVMPath, extendAVMPath, getStoreName, normalizePath, splitBase, splitPath
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(org.alfresco.mbeans.VirtServerRegistry virtServerRegistry)
public void setAuthorityService(AuthorityService authorityService)
public void setAvmLockingService(AVMLockingService avmLockingService)
public SandboxInfo createStagingSandbox(java.lang.String storeId, org.alfresco.service.cmr.repository.NodeRef webProjectNodeRef, java.lang.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(java.lang.String storeId)
public void addStagingAreaUser(java.lang.String storeId, java.lang.String authority, java.lang.String role)
public SandboxInfo createUserSandbox(java.lang.String storeId, java.lang.String username, java.lang.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(java.lang.String storeId)
storeId
- The id of the store to create a sandbox forpublic SandboxInfo createReadOnlyWorkflowSandbox(java.lang.String storeId)
storeId
- The id of the store to create a sandbox forpublic java.lang.String createUserWorkflowSandbox(java.lang.String stagingStore, java.lang.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 java.util.List listAllSandboxes(java.lang.String wpStoreId)
public java.util.List listAllSandboxes(java.lang.String wpStoreId, boolean includeWorkflowSandboxes, boolean includeLocalhostDeployed)
public void deleteSandbox(java.lang.String sbStoreId)
public void deleteSandbox(java.lang.String sbStoreId, boolean isSubmitDirectWorkflowSandbox)
public void deleteSandbox(SandboxInfo sbInfo, boolean isSubmitDirectWorkflowSandbox, boolean removeLocks)
public void updateSandboxManagers(java.lang.String storeId, java.util.List 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(java.lang.String storeId, java.util.List 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(java.lang.String wpStoreId, java.util.List usersToUpdate, java.util.Set permissionsList)
public void removeGroupsForStore(java.lang.String storeRoot)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.