|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.avm.util.AVMUtil
org.alfresco.wcm.util.WCMUtil
org.alfresco.wcm.sandbox.SandboxFactory
public final class SandboxFactory
Helper factory to create WCM sandbox structures
Nested Class Summary | |
---|---|
class |
SandboxFactory.UserRoleWrapper
|
Field Summary | |
---|---|
static java.lang.String[] |
PERMISSIONS
|
Fields inherited from class org.alfresco.wcm.util.WCMUtil |
---|
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 |
Fields inherited from class org.alfresco.repo.avm.util.AVMUtil |
---|
AVM_PATH_SEPARATOR, AVM_PATH_SEPARATOR_CHAR, AVM_STORE_SEPARATOR, AVM_STORE_SEPARATOR_CHAR, INITIAL_SNAPSHOT |
Method Summary | |
---|---|
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.util.List managers,
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)
|
Methods inherited from class org.alfresco.repo.avm.util.AVMUtil |
---|
addLeadingSlash, buildAVMPath, extendAVMPath, getStoreName, normalizePath, splitBase, splitPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] PERMISSIONS
Method Detail |
---|
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.util.List managers, java.lang.String username, java.lang.String role)
storeId
- The store id to create the sandbox formanagers
- The list of authorities who have ContentManager role in the websiteusername
- Username of the user to create the sandbox forrole
- Role permission for the user
public SandboxInfo createWorkflowSandbox(java.lang.String storeId)
storeId
- The id of the store to create a sandbox for
public SandboxInfo createReadOnlyWorkflowSandbox(java.lang.String storeId)
storeId
- The id of the store to create a sandbox for
public 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 for
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |