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(HttpServletRequest req,
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.DwsException
DwsMetadata getDWSMetaData(String documentURL, String id, boolean minimal) throws Exception
documentURL
- 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
)Exception
DwsData getDwsData(String documentURL, String lastUpdate) throws SiteDoesNotExistException
documentURL
- 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
)SiteDoesNotExistException
DwsBean 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(HttpServletRequest req, HttpServletResponse resp) throws org.apache.commons.httpclient.HttpException, IOException
req
- HTTP requestresp
- HTTP responseIOException
org.apache.commons.httpclient.HttpException
LinkBean updateDwsData(LinkBean linkBean, CAMLMethod method, String dws)
linkBean
- (LinkBean
)method
- CAMLMethoddws
- document workspace site nameCopyright © 2005–2017 Alfresco Software. All rights reserved.