public interface DwsServiceHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateDwsUrl(String url)
Indicates whether the document workspace specified by the given url can be created.
|
DwsBean |
createDws(String parentDwsUrl,
String name,
List<UserBean> users,
String title,
List<DocumentBean> documents,
String host,
String context,
SessionUser user)
Creates a document workspace site
|
void |
createFolder(String url)
Creates a subfolder in a document library of the current document workspace site
|
void |
deleteDws(String dwsUrl,
SessionUser user)
Deletes the current document workspace site and its contents
|
void |
deleteFolder(String url)
Deletes a subfolder from a document library of the current document workspace site
|
DwsData |
getDwsData(String documentURL,
String lastUpdate)
Returns information about a document workspace site and the lists it contains
|
DwsMetadata |
getDWSMetaData(String documentURL,
String id,
boolean minimal)
Returns information about a document workspace site and the lists it contains
|
void |
handleRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Redirect request to the appropriate page
|
void |
removeDwsUser(String dwsUrl,
String id)
Removes the specified user from the list of users for the current document workspace site
|
void |
renameDws(String oldDwsUrl,
String title)
Changes the title of the current document workspace site
|
LinkBean |
updateDwsData(LinkBean linkBean,
CAMLMethod method,
String dws)
Update document workspace site data such as links
|
boolean canCreateDwsUrl(String url) throws DwsException
url - Specifies the document workspace to be created.DwsExceptionDwsMetadata getDWSMetaData(String documentURL, String id, boolean minimal) throws Exception
document - the site-based URL of a document in a document library in the document workspace siteid - an optional document globally unique identifier (GUID)minimal - determines whether the output includes information about the schemas, lists, documents, links, and tasks lists of a document workspace siteDwsMetadata)ExceptionDwsData getDwsData(String documentURL, String lastUpdate) throws org.alfresco.repo.site.SiteDoesNotExistException
document - the site-based URL of a document in a document library in the document workspace sitelastUpdate - returned in the results of a previous call to the GetDwsData or GetDwsMetadata methodDwsData)org.alfresco.repo.site.SiteDoesNotExistExceptionDwsBean createDws(String parentDwsUrl, String name, List<UserBean> users, String title, List<DocumentBean> documents, String host, String context, SessionUser user)
parentDwsUrl - url of the parent dwsname - the optional URL of the new document workspace site. If an empty string is passed, the URL of the new SharePoint site is based on the titleusers - an optional list of users to add to the new SharePoint sitetitle - the title of the new document workspace sitedocuments - an optional list of documents. Used by Microsoft Office Outlook 2003 when adding shared attachments to a new document workspace sitehost - application hostcontext - application contextuser - current userDwsBean)void createFolder(String url)
url - the proposed site-based URL of the folder to createvoid deleteFolder(String url)
url - The site-based URL of the folder to deletevoid deleteDws(String dwsUrl, SessionUser user)
dwsUrl - url of dws to deleteuser - current uservoid renameDws(String oldDwsUrl, String title)
oldDwsUrl - url of dws to renametitle - the new title for the document workspace sitevoid removeDwsUser(String dwsUrl, String id)
dwsUrl - URL of document workspace siteid - the ID of the user to be removed from the list of usersvoid handleRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws org.apache.commons.httpclient.HttpException,
IOException
req - HTTP requestresp - HTTP responseIOExceptionorg.apache.commons.httpclient.HttpExceptionLinkBean updateDwsData(LinkBean linkBean, CAMLMethod method, String dws)
linkBean - (LinkBean)method - dws - document workspace site nameCopyright © 2005–2014 Alfresco Software. All rights reserved.