public interface WebProjectService
This service API is designed to support the public facing Web Project APIs.
| Modifier and Type | Method and Description |
|---|---|
void |
createWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String name,
String description)
Create webapp for the given web project.
|
void |
createWebApp(String wpStoreId,
String name,
String description)
Create webapp for the given web project.
|
WebProjectInfo |
createWebProject(String dnsName,
String name,
String title,
String description)
Create a new web project (with a default ROOT webapp)
|
WebProjectInfo |
createWebProject(String dnsName,
String name,
String title,
String description,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Deprecated.
see createWebProject(String dnsName, WebProjectInfo wpInfo)
|
WebProjectInfo |
createWebProject(String dnsName,
String name,
String title,
String description,
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,
String name)
Delete webapp from the given web project
|
void |
deleteWebApp(String wpStoreId,
String name)
Delete webapp from the given web project
|
void |
deleteWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Delete the web project
|
void |
deleteWebProject(String wpStoreId)
Delete the web project
|
String |
getPreviewProvider(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(String wpStoreId)
Gets web project info based on the store id of a web project
|
org.alfresco.service.cmr.repository.NodeRef |
getWebProjectNodeFromPath(String absoluteAVMPath)
Returns the Web Project for the given AVM path
|
org.alfresco.service.cmr.repository.NodeRef |
getWebProjectNodeFromStore(String storeName)
Returns the Web Project for the given AVM store name (sandbox store id)
|
org.alfresco.service.cmr.repository.NodeRef |
getWebProjectsRoot()
Returns the Web Projects container
|
int |
getWebUserCount(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Get the number of web users invited to this web project
|
String |
getWebUserRole(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String userName)
Gets the role of the specified user
|
String |
getWebUserRole(String wpStoreId,
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,
String userName,
String userRole,
boolean autoCreateAuthorSandbox)
Invite user to web project
|
void |
inviteWebUser(String wpStoreId,
String userName,
String userRole)
Invite user to web project
|
void |
inviteWebUser(String wpStoreId,
String userName,
String userRole,
boolean autoCreateAuthorSandbox)
Invite user to web project
|
void |
inviteWebUsersGroups(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
Map<String,String> userGroupRoles,
boolean autoCreateAuthorSandbox)
Invite users/groups to web project
|
void |
inviteWebUsersGroups(String wpStoreId,
Map<String,String> userGroupRoles)
Invite users/groups to web project
|
void |
inviteWebUsersGroups(String wpStoreId,
Map<String,String> 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,
String userName)
Returns true if the user is a manager of this web project
|
boolean |
isContentManager(String wpStoreId)
Returns true if the current user is a manager of this web project
|
boolean |
isContentManager(String wpStoreId,
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(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,
String userName)
Indicates whether given user is a web user of the web project or not
|
boolean |
isWebUser(String wpStoreId)
Indicates whether current user is a web user of the web project or not
|
boolean |
isWebUser(String wpStoreId,
String userName)
Indicates whether given user is a web user of the web project or not
|
List<String> |
listWebApps(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
List webapps for the web project
|
List<String> |
listWebApps(String wpStoreId)
List webapps for the web project
|
List<WebProjectInfo> |
listWebProjects()
List the available web projects for the current user
|
List<WebProjectInfo> |
listWebProjects(String userName)
List the web projects for the given user (based on the available web projects for the current user)
|
Map<String,String> |
listWebUsers(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
List the web users of the web project
|
Map<String,String> |
listWebUsers(String wpStoreId)
List the web users of the web project
|
void |
uninviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String userName,
boolean autoDeleteAuthorSandbox)
Uninvite user from a web project
|
void |
uninviteWebUser(String wpStoreId,
String userName)
Uninvite user from a web project
|
void |
uninviteWebUser(String wpStoreId,
String userName,
boolean autoDeleteAuthorSandbox)
Uninvite user from a web project
|
void |
updateWebProject(WebProjectInfo wpInfo)
Update the web project info
|
@NotAuditable WebProjectInfo createWebProject(String dnsName, String name, String title, String description)
Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()
dnsName - DNS name (required, must be unique)name - name (required, must be unique)title - titledescription - description@NotAuditable WebProjectInfo createWebProject(String dnsName, String name, String title, String description, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()
dnsName - DNS name (required, must be unique)name - name (required, must be unique)title - titledescription - descriptionsourceNodeRef - web project node ref to branch from (can be null)@NotAuditable WebProjectInfo createWebProject(String dnsName, String name, String title, String description, String defaultWebApp, boolean useAsTemplate, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()
dnsName - DNS name (required, must be unique)name - name (required, must be unique)title - titledescription - descriptiondefaultWebApp - default webapp (if null, will default to ROOT webapp)useAsTemplate - true if this web project can be used as a template to branch fromsourceNodeRef - web project node ref to branch from (can be null)@NotAuditable WebProjectInfo createWebProject(WebProjectInfo wpInfo)
Note: the DNS name will be used to generate the web project store id, which can be subsequently retrieved via WebProjectInfo.getStoreId()
wpInfo - web project info
Note:dnsName - DNS name (required, must be unique)name - name (required, must be unique)title - titledescription - descriptiondefaultWebApp - default webapp (if null, will default to ROOT webapp)useAsTemplate - true if this web project can be used as a template to branch fromsourceNodeRef - web project node ref to branch from (can be null)previewProvider - preview URI service provider name (must correspond to registered name, if null will be set to default provider)@NotAuditable boolean hasWebProjectsRoot()
@NotAuditable org.alfresco.service.cmr.repository.NodeRef getWebProjectsRoot()
@NotAuditable org.alfresco.service.cmr.repository.NodeRef getWebProjectNodeFromPath(String absoluteAVMPath)
absoluteAVMPath - the AVM path from which to determine the Web Project@NotAuditable org.alfresco.service.cmr.repository.NodeRef getWebProjectNodeFromStore(String storeName)
storeName - the AVM store name (sandbox store id) from which to determine the Web Project@NotAuditable List<WebProjectInfo> listWebProjects()
@NotAuditable List<WebProjectInfo> listWebProjects(String userName)
userName - user name@NotAuditable boolean isWebProject(String wpStoreId)
wpNodeRef - web project store id@NotAuditable boolean isWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
wpNodeRef - web project node ref@NotAuditable WebProjectInfo getWebProject(String wpStoreId)
Returns null if the web project can not be found
wpStoreId - web project store id@NotAuditable WebProjectInfo getWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Returns null if the web project can not be found
wpNodeRef - web project node ref@NotAuditable String getPreviewProvider(String wpStoreId)
wpStoreId - web project store id@NotAuditable void updateWebProject(WebProjectInfo wpInfo)
Note: the nodeRef and storeId (dnsName) of a web project cannot be updated once the web project has been created
wpInfo - web project info@NotAuditable void deleteWebProject(String wpStoreId)
If the web project does not exist, will log a warning and succeed
Current user must be a content manager for the web project
name - web project store id@NotAuditable void deleteWebProject(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
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
name - web project node ref@NotAuditable void createWebApp(String wpStoreId, String name, String description)
Current user must be a content manager for the web project
wpStoreId - web project store idname - webapp name (must be unique within a web project)description - webapp description@NotAuditable
void createWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String name,
String description)
Current user must be a content manager for the web project
wpNodeRef - web project node refname - webapp name (must be unique within a web project)description - webapp description@NotAuditable List<String> listWebApps(String wpStoreId)
wpStoreId - web project store id@NotAuditable List<String> listWebApps(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
wpNodeRef - web project node ref@NotAuditable void deleteWebApp(String wpStoreId, String name)
Current user must be a content manager for the web project
Note: this will cascade delete all assets within a webapp
wpStoreId - web project store idname - webapp name@NotAuditable
void deleteWebApp(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String name)
Current user must be a content manager for the web project
Note: this will cascade delete all assets within a webapp
wpNodeRef - web project node refname - webapp name@NotAuditable boolean isContentManager(String wpStoreId)
Note: This includes admin users but does not include the System user
wpStoreId - web project store id@NotAuditable boolean isContentManager(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
wpNodeRef - web project node ref@NotAuditable boolean isContentManager(String wpStoreId, String username)
Note: This includes admin users but does not include the System user
storeName - web project store idusername - user name@NotAuditable
boolean isContentManager(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String userName)
Note: This includes admin users but does not include the System user
wpNodeRef - web project node refuserName - user name@NotAuditable Map<String,String> listWebUsers(String wpStoreId)
Current user must be a content manager for the web project
wpStoreId - web project store id@NotAuditable Map<String,String> listWebUsers(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
Current user must be a content manager for the web project
wpNodeRef - web project node ref@NotAuditable int getWebUserCount(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
wpNodeRef - web project node ref@NotAuditable String getWebUserRole(String wpStoreId, String userName)
wpStoreId - web project store iduserName - user name@NotAuditable String getWebUserRole(org.alfresco.service.cmr.repository.NodeRef wpNodeRef, String userName)
wpNodeRef - web project node refuserName - user name@NotAuditable boolean isWebUser(String wpStoreId)
store - id web project store id@NotAuditable boolean isWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef)
wpNodeRef - web project node ref@NotAuditable boolean isWebUser(String wpStoreId, String userName)
store - id web project store iduserName - user name@NotAuditable
boolean isWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String userName)
wpNodeRef - web project node refuserName - user name@NotAuditable void inviteWebUsersGroups(String wpStoreId, Map<String,String> userGroupRoles)
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
wpStoreId - web project store iduserGroupRoles - map of @NotAuditable void inviteWebUsersGroups(String wpStoreId, Map<String,String> userGroupRoles, boolean autoCreateAuthorSandbox)
Note: authority name can be user or group, although a group is flattened into a set of users
wpStoreId - web project store iduserGroupRoles - map of autoCreateAuthorSandbox - if true then auto create an author sandbox for each invited user@NotAuditable
void inviteWebUsersGroups(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
Map<String,String> userGroupRoles,
boolean autoCreateAuthorSandbox)
Note: authority name can be user or group, although a group is flattened into a set of users
wpNodeRef - web project node refuserGroupRoles - map of autoCreateAuthorSandbox - if true then auto create the author sandbox for each invited user@NotAuditable void inviteWebUser(String wpStoreId, String userName, String userRole)
Note: author sandbox will NOT be auto created for each invited user
wpStoreId - web project store iduserName - user name (not a group)userRole - web project role@NotAuditable void inviteWebUser(String wpStoreId, String userName, String userRole, boolean autoCreateAuthorSandbox)
wpStoreId - web project store iduserName - user name (not a group)userRole - web project roleautoCreateAuthorSandbox - if true then auto create the author sandbox for each invited user@NotAuditable
void inviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String userName,
String userRole,
boolean autoCreateAuthorSandbox)
wpNodeRef - web project node refuserName - user name (not a group)userRole - web project roleautoCreateAuthorSandbox - if true then auto create the author sandbox for each invited user@NotAuditable void uninviteWebUser(String wpStoreId, String userName)
Note: author sandbox will NOT be auto deleted
wpStoreId - web project store iduserName - user name@NotAuditable void uninviteWebUser(String wpStoreId, String userName, boolean autoDeleteAuthorSandbox)
Note: if author sandbox is auto deleted then this will cascade delete without warning (even if there are changed items)
wpStoreId - web project store iduserName - user nameautoDeleteAuthorSandbox - if true then auto delete the author sandbox@NotAuditable
void uninviteWebUser(org.alfresco.service.cmr.repository.NodeRef wpNodeRef,
String userName,
boolean autoDeleteAuthorSandbox)
Note: if author sandbox is auto deleted then this will cascade delete without warning (even if there are changed items)
wpNodeRef - web project node refuserName - user nameautoDeleteAuthorSandbox - if true then auto delete the author sandboxCopyright © 2005–2014 Alfresco Software. All rights reserved.