org.alfresco.wcm.webproject
Class WebProjectServiceImpl

java.lang.Object
  extended by org.alfresco.repo.avm.util.AVMUtil
      extended by org.alfresco.wcm.util.WCMUtil
          extended by org.alfresco.wcm.webproject.WebProjectServiceImpl
All Implemented Interfaces:
WebProjectService

public class WebProjectServiceImpl
extends WCMUtil
implements WebProjectService

Web Project Service Implementation


Field Summary
static org.alfresco.service.cmr.repository.StoreRef WEBPROJECT_STORE
          The DM store where web projects are kept
 
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
 
Constructor Summary
WebProjectServiceImpl()
           
 
Method Summary
 void createWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String webAppName, java.lang.String webAppDescription)
          Create webapp for the given web project.
 void createWebApp(java.lang.String wpStoreId, java.lang.String webAppName, java.lang.String webAppDescription)
          Create webapp for the given web project.
 WebProjectInfo createWebProject(java.lang.String dnsName, java.lang.String name, java.lang.String title, java.lang.String description)
          Create a new web project (with a default ROOT webapp)
 WebProjectInfo createWebProject(java.lang.String dnsName, java.lang.String name, java.lang.String title, java.lang.String description, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
          Create a new web project (with a default ROOT webapp)
 WebProjectInfo createWebProject(java.lang.String dnsName, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String defaultWebApp, boolean useAsTemplate, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
          Create a new web project (with given default web app)
 WebProjectInfo createWebProject(WebProjectInfo wpInfo)
          Create a new web project (with given web project info)
 void deleteWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String webAppName)
          Delete webapp from the given web project
 void deleteWebApp(java.lang.String wpStoreId, java.lang.String webAppName)
          Delete webapp from the given web project
 void deleteWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          Delete the web project
 void deleteWebProject(java.lang.String wpStoreId)
          Delete the web project
 java.lang.String getPreviewProvider(java.lang.String wpStoreId)
          Get preview provider name configured for given web project (if not configured then return default preview provider)
 WebProjectInfo getWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          Gets web project info based on the DM nodeRef of a web project
 WebProjectInfo getWebProject(java.lang.String wpStoreId)
          Gets web project info based on the store id of a web project
 org.alfresco.service.cmr.repository.NodeRef getWebProjectNodeFromPath(java.lang.String absoluteAVMPath)
          Returns the Web Project for the given AVM path
 org.alfresco.service.cmr.repository.NodeRef getWebProjectNodeFromStore(java.lang.String wpStoreId)
          Returns the Web Project for the given AVM store name (sandbox store id)
 org.alfresco.service.cmr.repository.NodeRef getWebProjectsRoot()
          Get the node reference that is the web projects root
 int getWebUserCount(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          Get the number of web users invited to this web project
 java.lang.String getWebUserRole(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String userName)
          Gets the role of the specified user
 java.lang.String getWebUserRole(java.lang.String wpStoreId, java.lang.String userName)
          Gets the role of the specified user
 boolean hasWebProjectsRoot()
          Determines whether the "Web Projects" container node is present.
 void inviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String userAuth, java.lang.String role, boolean autoCreateAuthorSandbox)
          Invite user to web project
 void inviteWebUser(java.lang.String wpStoreId, java.lang.String userAuth, java.lang.String role)
          Invite user to web project
 void inviteWebUser(java.lang.String wpStoreId, java.lang.String userAuth, java.lang.String role, boolean autoCreateAuthorSandbox)
          Invite user to web project
 void inviteWebUsersGroups(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.util.Map userGroupRoles, boolean autoCreateAuthorSandbox)
          Invite users/groups to web project
 void inviteWebUsersGroups(java.lang.String wpStoreId, java.util.Map userGroupRoles)
          Invite users/groups to web project
 void inviteWebUsersGroups(java.lang.String wpStoreId, java.util.Map userGroupRoles, boolean autoCreateAuthorSandbox)
          Invite users/groups to web project
 boolean isContentManager(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          Returns true if the current user is a manager of this web project
 boolean isContentManager(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String userName)
          Returns true if the user is a manager of this web project
 boolean isContentManager(java.lang.String storeName)
          Returns true if the current user is a manager of this web project
 boolean isContentManager(java.lang.String wpStoreId, java.lang.String userName)
          Returns true if the user is a manager of this web project
 boolean isWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          Return true if web project node ref is a web project
 boolean isWebProject(java.lang.String wpStoreId)
          Return true if web project node ref is a web project
 boolean isWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          Indicates whether current user is a web user of the web project or not
 boolean isWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String userName)
          Indicates whether given user is a web user of the web project or not
 boolean isWebUser(java.lang.String wpStoreId)
          Indicates whether current user is a web user of the web project or not
 boolean isWebUser(java.lang.String wpStoreId, java.lang.String username)
          Indicates whether given user is a web user of the web project or not
 java.util.List listWebApps(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          List webapps for the web project
 java.util.List listWebApps(java.lang.String wpStoreId)
          List webapps for the web project
 java.util.List listWebProjects()
          List the available web projects for the current user
 java.util.List listWebProjects(java.lang.String userName)
          List the web projects for the given user (based on the available web projects for the current user)
 java.util.Map listWebUsers(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
          List the web users of the web project
 java.util.Map listWebUsers(java.lang.String wpStoreId)
          List the web users of the web project
 void setAuthorityService(AuthorityService authorityService)
           
 void setAvmLockingService(AVMLockingService avmLockingService)
           
 void setAvmService(AVMService avmService)
           
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setPersonService(PersonService personService)
           
 void setPreviewURIServiceRegistry(PreviewURIServiceRegistry previewURIProviderRegistry)
           
 void setSandboxFactory(SandboxFactory sandboxFactory)
           
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
           
 void setTransactionService(TransactionService transactionService)
           
 void setVirtServerRegistry(org.alfresco.mbeans.VirtServerRegistry virtServerRegistry)
           
 void uninviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, java.lang.String userAuth, boolean autoDeleteAuthorSandbox)
          Uninvite user from a web project
 void uninviteWebUser(java.lang.String wpStoreId, java.lang.String userAuth)
          Uninvite user from a web project
 void uninviteWebUser(java.lang.String wpStoreId, java.lang.String userAuth, boolean autoDeleteAuthorSandbox)
          Uninvite user from a web project
 void updateWebProject(WebProjectInfo wpInfo)
          Update the web project info
 
Methods inherited from class org.alfresco.wcm.util.WCMUtil
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
 
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

WEBPROJECT_STORE

public static final org.alfresco.service.cmr.repository.StoreRef WEBPROJECT_STORE
The DM store where web projects are kept

Constructor Detail

WebProjectServiceImpl

public WebProjectServiceImpl()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setNamespaceService

public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)

setSearchService

public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)

setAvmService

public void setAvmService(AVMService avmService)

setAuthorityService

public void setAuthorityService(AuthorityService authorityService)

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)

setPersonService

public void setPersonService(PersonService personService)

setSandboxFactory

public void setSandboxFactory(SandboxFactory sandboxFactory)

setVirtServerRegistry

public void setVirtServerRegistry(org.alfresco.mbeans.VirtServerRegistry virtServerRegistry)

setPreviewURIServiceRegistry

public void setPreviewURIServiceRegistry(PreviewURIServiceRegistry previewURIProviderRegistry)

setTransactionService

public void setTransactionService(TransactionService transactionService)

setAvmLockingService

public void setAvmLockingService(AVMLockingService avmLockingService)

createWebProject

public WebProjectInfo createWebProject(java.lang.String dnsName,
                                       java.lang.String name,
                                       java.lang.String title,
                                       java.lang.String description)
Description copied from interface: WebProjectService
Create a new web project (with a default ROOT webapp)

Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()

Specified by:
createWebProject in interface WebProjectService
Parameters:
dnsName - DNS name (required, must be unique)
name - name (required, must be unique)
title - title
description - description
Returns:
WebProjectInfo the created web project info

createWebProject

public WebProjectInfo createWebProject(java.lang.String dnsName,
                                       java.lang.String name,
                                       java.lang.String title,
                                       java.lang.String description,
                                       org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Description copied from interface: WebProjectService
Create a new web project (with a default ROOT webapp)

Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()

Specified by:
createWebProject in interface WebProjectService
Parameters:
dnsName - DNS name (required, must be unique)
name - name (required, must be unique)
title - title
description - description
sourceNodeRef - web project node ref to branch from (can be null)
Returns:
WebProjectInfo the created web project info

createWebProject

public WebProjectInfo createWebProject(java.lang.String dnsName,
                                       java.lang.String name,
                                       java.lang.String title,
                                       java.lang.String description,
                                       java.lang.String defaultWebApp,
                                       boolean useAsTemplate,
                                       org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Description copied from interface: WebProjectService
Create a new web project (with given default web app)

Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()

Specified by:
createWebProject in interface WebProjectService
Parameters:
dnsName - DNS name (required, must be unique)
name - name (required, must be unique)
title - title
description - description
defaultWebApp - default webapp (if null, will default to ROOT webapp)
useAsTemplate - true if this web project can be used as a template to branch from
sourceNodeRef - web project node ref to branch from (can be null)
Returns:
WebProjectInfo the created web project info

createWebProject

public WebProjectInfo createWebProject(WebProjectInfo wpInfo)
Description copied from interface: WebProjectService
Create a new web project (with given web project info)

Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()

Specified by:
createWebProject in interface WebProjectService
Parameters:
wpInfo - web project info Note:
Returns:
WebProjectInfo the created web project info

createWebApp

public void createWebApp(java.lang.String wpStoreId,
                         java.lang.String webAppName,
                         java.lang.String webAppDescription)
Description copied from interface: WebProjectService
Create webapp for the given web project.

Current user must be a content manager for the web project

Specified by:
createWebApp in interface WebProjectService
Parameters:
wpStoreId - web project store id
webAppName - webapp name (must be unique within a web project)
webAppDescription - webapp description

createWebApp

public void createWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                         java.lang.String webAppName,
                         java.lang.String webAppDescription)
Description copied from interface: WebProjectService
Create webapp for the given web project.

Current user must be a content manager for the web project

Specified by:
createWebApp in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
webAppName - webapp name (must be unique within a web project)
webAppDescription - webapp description

listWebApps

public java.util.List listWebApps(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
List webapps for the web project

Specified by:
listWebApps in interface WebProjectService
Parameters:
wpStoreId - web project store id
Returns:
List list of webapp names

listWebApps

public java.util.List listWebApps(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
List webapps for the web project

Specified by:
listWebApps in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
List list of webapp names

deleteWebApp

public void deleteWebApp(java.lang.String wpStoreId,
                         java.lang.String webAppName)
Description copied from interface: WebProjectService
Delete webapp from the given web project

Current user must be a content manager for the web project

Note: this will cascade delete all assets within a webapp

Specified by:
deleteWebApp in interface WebProjectService
Parameters:
wpStoreId - web project store id
webAppName - webapp name

deleteWebApp

public void deleteWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                         java.lang.String webAppName)
Description copied from interface: WebProjectService
Delete webapp from the given web project

Current user must be a content manager for the web project

Note: this will cascade delete all assets within a webapp

Specified by:
deleteWebApp in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
webAppName - webapp name

hasWebProjectsRoot

public boolean hasWebProjectsRoot()
Description copied from interface: WebProjectService
Determines whether the "Web Projects" container node is present.

Specified by:
hasWebProjectsRoot in interface WebProjectService
Returns:
true if the "Web Projects" container node is present

getWebProjectsRoot

public org.alfresco.service.cmr.repository.NodeRef getWebProjectsRoot()
Get the node reference that is the web projects root

Specified by:
getWebProjectsRoot in interface WebProjectService
Returns:
NodeRef node reference

listWebProjects

public java.util.List listWebProjects()
Description copied from interface: WebProjectService
List the available web projects for the current user

Specified by:
listWebProjects in interface WebProjectService
Returns:
List list of web project info

listWebProjects

public java.util.List listWebProjects(java.lang.String userName)
Description copied from interface: WebProjectService
List the web projects for the given user (based on the available web projects for the current user)

Specified by:
listWebProjects in interface WebProjectService
Parameters:
userName - user name
Returns:
List list of web project info

isWebProject

public boolean isWebProject(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
Return true if web project node ref is a web project

Specified by:
isWebProject in interface WebProjectService
Returns:
boolean true, if web project

isWebProject

public boolean isWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
Return true if web project node ref is a web project

Specified by:
isWebProject in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
boolean true, if web project

getWebProject

public WebProjectInfo getWebProject(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
Gets web project info based on the store id of a web project

Returns null if the web project can not be found

Specified by:
getWebProject in interface WebProjectService
Parameters:
wpStoreId - web project store id
Returns:
WebProjectInfo web project info

getPreviewProvider

public java.lang.String getPreviewProvider(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
Get preview provider name configured for given web project (if not configured then return default preview provider)

Specified by:
getPreviewProvider in interface WebProjectService
Parameters:
wpStoreId - web project store id
Returns:
previewProviderName preview URI service provide name

getWebProject

public WebProjectInfo getWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
Gets web project info based on the DM nodeRef of a web project

Returns null if the web project can not be found

Specified by:
getWebProject in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
WebProjectInfo web project info

updateWebProject

public void updateWebProject(WebProjectInfo wpInfo)
Description copied from interface: WebProjectService
Update the web project info

Note: the nodeRef and storeId (dnsName) of a web project cannot be updated once the web project has been created

Specified by:
updateWebProject in interface WebProjectService
Parameters:
wpInfo - web project info

deleteWebProject

public void deleteWebProject(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
Delete the web project

If the web project does not exist, will log a warning and succeed

Current user must be a content manager for the web project

Specified by:
deleteWebProject in interface WebProjectService

deleteWebProject

public void deleteWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
Delete the web project

If the web project does not exist, will log a warning and succeed

Current user must be a content manager for the web project

Note: this will cascade delete all sandboxes associated with a web project

Specified by:
deleteWebProject in interface WebProjectService

isContentManager

public boolean isContentManager(java.lang.String storeName)
Description copied from interface: WebProjectService
Returns true if the current user is a manager of this web project

Note: This includes admin users but does not include the System user

Specified by:
isContentManager in interface WebProjectService
Parameters:
storeName - web project store id
Returns:
boolean true if the user is a manager (role = WCMUtil.ROLE_CONTENT_MANAGER), false otherwise

isContentManager

public boolean isContentManager(java.lang.String wpStoreId,
                                java.lang.String userName)
Description copied from interface: WebProjectService
Returns true if the user is a manager of this web project

Note: This includes admin users but does not include the System user

Specified by:
isContentManager in interface WebProjectService
userName - user name
Returns:
boolean true if the user is a manager, false otherwise

isContentManager

public boolean isContentManager(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
Returns true if the current user is a manager of this web project

Specified by:
isContentManager in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
boolean true if the user is a manager (role = WCMUtil.ROLE_CONTENT_MANAGER), false otherwise

isContentManager

public boolean isContentManager(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                                java.lang.String userName)
Description copied from interface: WebProjectService
Returns true if the user is a manager of this web project

Note: This includes admin users but does not include the System user

Specified by:
isContentManager in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
userName - user name
Returns:
boolean true if the user is a manager (role = WCMUtil.ROLE_CONTENT_MANAGER), false otherwise

isWebUser

public boolean isWebUser(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
Indicates whether current user is a web user of the web project or not

Specified by:
isWebUser in interface WebProjectService
Returns:
boolean true if the current user is a web user of the web project, false otherwise

isWebUser

public boolean isWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
Indicates whether current user is a web user of the web project or not

Specified by:
isWebUser in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
boolean true if the current user is a web user of the web project, false otherwise

isWebUser

public boolean isWebUser(java.lang.String wpStoreId,
                         java.lang.String username)
Description copied from interface: WebProjectService
Indicates whether given user is a web user of the web project or not

Specified by:
isWebUser in interface WebProjectService
username - user name
Returns:
boolean true if the user is a web user of the web project, false otherwise

isWebUser

public boolean isWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                         java.lang.String userName)
Description copied from interface: WebProjectService
Indicates whether given user is a web user of the web project or not

Specified by:
isWebUser in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
userName - user name
Returns:
boolean true if the user is a web user of the web project, false otherwise

getWebUserCount

public int getWebUserCount(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
Get the number of web users invited to this web project

Specified by:
getWebUserCount in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
int number of invited web users

listWebUsers

public java.util.Map listWebUsers(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
List the web users of the web project

Current user must be a content manager for the web project

Specified by:
listWebUsers in interface WebProjectService
Parameters:
wpStoreId - web project store id
Returns:
Map map of pairs

listWebUsers

public java.util.Map listWebUsers(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Description copied from interface: WebProjectService
List the web users of the web project

Current user must be a content manager for the web project

Specified by:
listWebUsers in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
Returns:
Map map of pairs

getWebUserRole

public java.lang.String getWebUserRole(java.lang.String wpStoreId,
                                       java.lang.String userName)
Description copied from interface: WebProjectService
Gets the role of the specified user

Specified by:
getWebUserRole in interface WebProjectService
Parameters:
wpStoreId - web project store id
userName - user name
Returns:
String web project role for this user, null if no assigned role

getWebUserRole

public java.lang.String getWebUserRole(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                                       java.lang.String userName)
Description copied from interface: WebProjectService
Gets the role of the specified user

Specified by:
getWebUserRole in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
userName - user name
Returns:
String web project role for this user, null if no assigned role

getWebProjectNodeFromPath

public org.alfresco.service.cmr.repository.NodeRef getWebProjectNodeFromPath(java.lang.String absoluteAVMPath)
Description copied from interface: WebProjectService
Returns the Web Project for the given AVM path

Specified by:
getWebProjectNodeFromPath in interface WebProjectService
Parameters:
absoluteAVMPath - the AVM path from which to determine the Web Project
Returns:
NodeRef the web project node ref for the path or null if it could not be determined

getWebProjectNodeFromStore

public org.alfresco.service.cmr.repository.NodeRef getWebProjectNodeFromStore(java.lang.String wpStoreId)
Description copied from interface: WebProjectService
Returns the Web Project for the given AVM store name (sandbox store id)

Specified by:
getWebProjectNodeFromStore in interface WebProjectService
Parameters:
wpStoreId - the AVM store name (sandbox store id) from which to determine the Web Project
Returns:
NodeRef the web project node ref for the path or null if it could not be determined

inviteWebUsersGroups

public void inviteWebUsersGroups(java.lang.String wpStoreId,
                                 java.util.Map userGroupRoles)
Description copied from interface: WebProjectService
Invite users/groups to web project

Note: authority name can be user or group, although a group is flattened into a set of users

Note: author sandbox will NOT be auto created for each invited user

Specified by:
inviteWebUsersGroups in interface WebProjectService
Parameters:
wpStoreId - web project store id
userGroupRoles - map of pairs

inviteWebUsersGroups

public void inviteWebUsersGroups(java.lang.String wpStoreId,
                                 java.util.Map userGroupRoles,
                                 boolean autoCreateAuthorSandbox)
Description copied from interface: WebProjectService
Invite users/groups to web project

Note: authority name can be user or group, although a group is flattened into a set of users

Specified by:
inviteWebUsersGroups in interface WebProjectService
Parameters:
wpStoreId - web project store id
userGroupRoles - map of pairs
autoCreateAuthorSandbox - if true then auto create an author sandbox for each invited user

inviteWebUsersGroups

public void inviteWebUsersGroups(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                                 java.util.Map userGroupRoles,
                                 boolean autoCreateAuthorSandbox)
Description copied from interface: WebProjectService
Invite users/groups to web project

Note: authority name can be user or group, although a group is flattened into a set of users

Specified by:
inviteWebUsersGroups in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
userGroupRoles - map of pairs
autoCreateAuthorSandbox - if true then auto create the author sandbox for each invited user

inviteWebUser

public void inviteWebUser(java.lang.String wpStoreId,
                          java.lang.String userAuth,
                          java.lang.String role)
Description copied from interface: WebProjectService
Invite user to web project

Note: author sandbox will NOT be auto created for each invited user

Specified by:
inviteWebUser in interface WebProjectService
Parameters:
wpStoreId - web project store id
userAuth - user name (not a group)
role - web project role

inviteWebUser

public void inviteWebUser(java.lang.String wpStoreId,
                          java.lang.String userAuth,
                          java.lang.String role,
                          boolean autoCreateAuthorSandbox)
Description copied from interface: WebProjectService
Invite user to web project

Specified by:
inviteWebUser in interface WebProjectService
Parameters:
wpStoreId - web project store id
userAuth - user name (not a group)
role - web project role
autoCreateAuthorSandbox - if true then auto create the author sandbox for each invited user

inviteWebUser

public void inviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                          java.lang.String userAuth,
                          java.lang.String role,
                          boolean autoCreateAuthorSandbox)
Description copied from interface: WebProjectService
Invite user to web project

Specified by:
inviteWebUser in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
userAuth - user name (not a group)
role - web project role
autoCreateAuthorSandbox - if true then auto create the author sandbox for each invited user

uninviteWebUser

public void uninviteWebUser(java.lang.String wpStoreId,
                            java.lang.String userAuth)
Description copied from interface: WebProjectService
Uninvite user from a web project

Note: author sandbox will NOT be auto deleted

Specified by:
uninviteWebUser in interface WebProjectService
Parameters:
wpStoreId - web project store id
userAuth - user name

uninviteWebUser

public void uninviteWebUser(java.lang.String wpStoreId,
                            java.lang.String userAuth,
                            boolean autoDeleteAuthorSandbox)
Description copied from interface: WebProjectService
Uninvite user from a web project

Note: if author sandbox is auto deleted then this will cascade delete without warning (even if there are changed items)

Specified by:
uninviteWebUser in interface WebProjectService
Parameters:
wpStoreId - web project store id
userAuth - user name
autoDeleteAuthorSandbox - if true then auto delete the author sandbox

uninviteWebUser

public void uninviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
                            java.lang.String userAuth,
                            boolean autoDeleteAuthorSandbox)
Description copied from interface: WebProjectService
Uninvite user from a web project

Note: if author sandbox is auto deleted then this will cascade delete without warning (even if there are changed items)

Specified by:
uninviteWebUser in interface WebProjectService
Parameters:
wpNodeRef - web project node ref
userAuth - user name
autoDeleteAuthorSandbox - if true then auto delete the author sandbox


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.