public interface MethodHandler
Modifier and Type | Method and Description |
---|---|
DocMetaInfo |
checkInDocument(String serviceName,
String documentName,
String comment,
boolean keepCheckedOut,
Date timeCheckedout,
boolean validateWelcomeNames)
Check in document method
|
DocMetaInfo |
checkOutDocument(String serviceName,
String documentName,
int force,
int timeout,
boolean validateWelcomeNames)
Check out the file from a document library.
|
boolean |
createDirectory(String serviceName,
DocMetaInfo dir)
Creates a folder for the current Web site
|
String[] |
decomposeURL(String url,
String alfrescoContext)
Decompose the URL into its parts, eg /foo/bar.doc -> { "foo", "bar.doc" }
|
boolean |
existResource(HttpServletRequest request,
HttpServletResponse response)
Check on existing resource
|
DocsMetaInfo |
getDocsMetaInfo(String serviceName,
boolean listHiddenDocs,
boolean listLinkInfo,
boolean validateWelcomeNames,
List<String> urlList)
Provides the server with the standard meta-information concerning the designated file
|
Document |
getDocument(String serviceName,
String documentName,
boolean force,
String docVersion,
EnumSet<GetOption> getOptionSet,
int timeout)
Retrieves the specified document for viewing
|
DialogsMetaInfo |
getFileOpen(String siteUrl,
String location,
List<String> fileDialogFilterValue,
String rootFolder,
VtiSortField sortField,
VtiSort sortDir,
String view)
Opens a view of the document libraries within a site, of a specific document library, or of a folder within a document library
|
DocsMetaInfo |
getListDocuments(String serviceName,
boolean listHiddenDocs,
boolean listExplorerDocs,
String platform,
String initialURL,
boolean listRecurse,
boolean listLinkInfo,
boolean listFolders,
boolean listFiles,
boolean listIncludeParent,
boolean listDerived,
boolean listBorders,
boolean validateWelcomeNames,
Map<String,Object> folderList,
boolean listChildWebs)
Provides a list of the files, folders, and subsites complete with meta-information for each file contained in the initialUrl parameter of the specified Web site.
|
String |
getServertimeZone()
Get server time zone
|
String |
getUserName()
Get user name
|
DocsMetaInfo |
moveDocument(String serviceName,
String oldURL,
String newURL,
List<String> urlList,
EnumSet<RenameOption> renameOptionSet,
EnumSet<PutOption> putOptionSet,
boolean docopy,
boolean validateWelcomeNames)
Rename the selected document to the new name
|
DocMetaInfo |
putDocument(String serviceName,
Document document,
EnumSet<PutOption> putOptionSet,
String comment,
boolean keepCheckedOut,
boolean validateWelcomeNames)
Writes a file to a directory in an existing Web site
|
void |
putResource(HttpServletRequest request,
HttpServletResponse response)
Update the content of existing resource or create empty locked resource if it doesn't exist
|
DocsMetaInfo |
removeDocuments(String serviceName,
List<String> urlList,
List<Date> timeTokens,
boolean validateWelcomeNames)
Deletes the specified documents or folders from the Web site
|
DocMetaInfo |
uncheckOutDocument(String serviceName,
String documentName,
boolean force,
Date timeCheckedOut,
boolean rlsshortterm,
boolean validateWelcomeNames)
Undoes a check-out of a file.
|
String getServertimeZone()
DocsMetaInfo getListDocuments(String serviceName, boolean listHiddenDocs, boolean listExplorerDocs, String platform, String initialURL, boolean listRecurse, boolean listLinkInfo, boolean listFolders, boolean listFiles, boolean listIncludeParent, boolean listDerived, boolean listBorders, boolean validateWelcomeNames, Map<String,Object> folderList, boolean listChildWebs)
serviceName
- specifies the URL of the Web site that a method should act uponlistHiddenDocs
- true to list hidden documents in a Web site; otherwise, falselistExplorerDocs
- <i>true</i> to generate a list of the task list files (_x_todo.xml and _x_todh.xml). <i>false</i>, no task list data is sent from the originating server
platform
- identifies the operating system of the clientinitialURL
- URL of the folder from which to initially list documents or, if no folder is given, either "" or "/" to indicate the root folder of the Web sitelistRecurse
- specifies if recursively list the subfolders of the service_name Web site in the return valuelistLinkInfo
- specifies whether or not the return value of the method contains information about the links from the current pagelistFolders
- true to include the names and meta-information of the folders in the service_name Web site; otherwise, falselistFiles
- true to list the metadata of files contained in each directory represented in the return code; otherwise, falselistIncludeParent
- specifies whether or not return parent directorylistDerived
- sending this parameter generates a list of files in _derived folderslistBorders
- true to generate a list of contents of the _borders directory that contains shared border pages; otherwise, falsevalidateWelcomeNames
- folderList
- map contains folder URLs as keysr and a time stamp as values corresponding to the time the client computer last posted the list documents method to request
a full list of the documents contained in that folder.listChildWebs
- true if folder represents a web site; otherwise, falseVtiMethodException
- (VtiMethodException
)Document getDocument(String serviceName, String documentName, boolean force, String docVersion, EnumSet<GetOption> getOptionSet, int timeout)
serviceName
- specifies the URL of the Web site that a method should act upondocumentName
- the site-relative URL of the current document relative to the root directory of the Web siteforce
- parameter used with source control to undo check-out of a file that is checked out by some other userdocVersion
- version number other than the current version of a documentgetOptionSet
- specifies how documents are checked out from source control. The possible values are:
<b>none</b> Do not check out the file. <b>chkoutExclusive</b> Check out the file exclusively, which fails if the file is already checked out by another user. <b>chkoutNonExclusive</b> Check out the file non-exclusively, if the source control system in use is configured to allow non-exclusive check-outs.
timeout
- provides the number of seconds a short-term lock is reserved. Within this time, the client computer must renew its lock to retain the lockboolean createDirectory(String serviceName, DocMetaInfo dir)
serviceName
- specifies the URL of the Web site that a method should act upondir
- url of the directory to created (DocMetaInfo
)String getUserName()
DocMetaInfo checkOutDocument(String serviceName, String documentName, int force, int timeout, boolean validateWelcomeNames)
serviceName
- specifies the URL of the Web site that a method should act upondocumentName
- the site-relative URL of the current document relative to the root directory of the Web siteforce
- parameter used with source control to undo check-out of a file that is checked out by some other usertimeout
- Provides the number of seconds a short-term lock is reservedvalidateWelcomeNames
- DocMetaInfo checkInDocument(String serviceName, String documentName, String comment, boolean keepCheckedOut, Date timeCheckedout, boolean validateWelcomeNames)
serviceName
- specifies the URL of the Web site that a method should act upondocumentName
- the site-relative URL of the current document relative to the root directory of the Web sitecomment
- check-in commentskeepCheckedOut
- used when source control is in use. true to check in the specified document to source control and immediately check it back out. false
to only check the document in to source control.timeCheckedout
- the time and date at which the current object was last checked outvalidateWelcomeNames
- DocMetaInfo uncheckOutDocument(String serviceName, String documentName, boolean force, Date timeCheckedOut, boolean rlsshortterm, boolean validateWelcomeNames)
serviceName
- specifies the URL of the Web site that a method should act upondocumentName
- the site-relative URL of the current document relative to the root directory of the Web siteforce
- parameter used with source control to undo check-out of a file that is checked out by some other usertimeCheckedOut
- The time and date at which the current object was last checked outrlsshortterm
- true if there is a short-term lock on the file; otherwise, falsevalidateWelcomeNames
- DocsMetaInfo getDocsMetaInfo(String serviceName, boolean listHiddenDocs, boolean listLinkInfo, boolean validateWelcomeNames, List<String> urlList)
serviceName
- specifies the URL of the Web site that a method should act uponlistHiddenDocs
- true to list hidden documents in a Web site; otherwise, falselistLinkInfo
- Specifies whether or not the return value of the method contains information about the links from the current pagevalidateWelcomeNames
- urlList
- the list of site-relative URLsString[] decomposeURL(String url, String alfrescoContext)
url
- url to decomposealfrescoContext
- Alfresco Contextboolean existResource(HttpServletRequest request, HttpServletResponse response)
request
- HTTP requestresponse
- HTTP responsevoid putResource(HttpServletRequest request, HttpServletResponse response)
request
- HTTP requestresponse
- HTTP responseDocsMetaInfo removeDocuments(String serviceName, List<String> urlList, List<Date> timeTokens, boolean validateWelcomeNames)
serviceName
- specifies the URL of the Web site that a method should act uponurlList
- the list of site-relative URLs for the current methodtimeTokens
- formerly contained a vector of time stamp valuesvalidateWelcomeNames
- DocsMetaInfo moveDocument(String serviceName, String oldURL, String newURL, List<String> urlList, EnumSet<RenameOption> renameOptionSet, EnumSet<PutOption> putOptionSet, boolean docopy, boolean validateWelcomeNames)
serviceName
- specifies the URL of the Web site that a method should act uponoldURL
- the previous URL for a document that has changed names or directory location in the Web sitenewURL
- the new URL for a document that has changed names or directory locations in the Web site.urlList
- The list of site-relative URLs for the current methodrenameOptionSet
- parameter that specifies how links should handle to and from the new page.putOptionSet
- enables the server to overwrite an existing file if the value is set to overwrite and disallows overwrites if the value is set to editdocopy
- true to copy the file to the destination; false to move the file to the destinationvalidateWelcomeNames
- booleanDocMetaInfo putDocument(String serviceName, Document document, EnumSet<PutOption> putOptionSet, String comment, boolean keepCheckedOut, boolean validateWelcomeNames)
serviceName
- specifies the URL of the Web site that a method should act upondocument
- document to createputOptionSet
- enables the server to overwrite an existing file if the value is set to overwrite and disallows overwrites if the value is set to editcomment
- provides a comment for the file being uploadedkeepCheckedOut
- true to check in the specified document to source control and immediately check it back out. false to only check the document in to
source control.validateWelcomeNames
- DialogsMetaInfo getFileOpen(String siteUrl, String location, List<String> fileDialogFilterValue, String rootFolder, VtiSortField sortField, VtiSort sortDir, String view)
siteUrl
- specifies the server-relative URL of a sitelocation
- specifies the site-relative URL of a document library or of a folder or file within a document libraryfileDialogFilterValue
- specifies the file type extension by which to filter the view in the file dialog box. For example, *.doc, *.txt, or *.htmrootFolder
- StringsortField
- specify the name of the field on which to sort (VtiSortField
)sortDir
- indicate an ascending (asc) or descending (desc) sort order (VtiSort
)view
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.