public interface VersionsServiceHandler
Modifier and Type | Method and Description |
---|---|
List<DocumentVersionBean> |
deleteAllVersions(String fileName)
Deletes "all versions" of the specified file.
|
List<DocumentVersionBean> |
deleteVersion(String fileName,
String fileVersion)
Deletes the specified file version
|
List<DocumentVersionBean> |
getVersions(String fileName)
Returns information about the versions of the specified file
|
boolean |
isVersionable(String fileName)
Is the specified file name a versioned file?
|
String |
makeCurrentVersionURL(String host,
String context,
String dws,
String fileName) |
String |
makeDocumentDetailsURL(String host,
String context,
String dws,
String fileName) |
String |
makeVersionURL(String host,
String context,
String dws,
DocumentVersionBean version) |
List<DocumentVersionBean> |
restoreVersion(String fileName,
String fileVersion)
Restores the specified file version
|
List<DocumentVersionBean> getVersions(String fileName) throws FileNotFoundException
fileName
- A string that contains the site-relative URL of the file in the form Folder_Name/File_NameFileNotFoundException
List<DocumentVersionBean> restoreVersion(String fileName, String fileVersion)
fileName
- site relative url to the filefileVersion
- file version to restoreList<DocumentVersionBean> deleteVersion(String fileName, String fileVersion) throws FileNotFoundException, VersionDoesNotExistException
fileName
- site relative url to the filefileVersion
- file version to restoreFileNotFoundException
VersionDoesNotExistException
List<DocumentVersionBean> deleteAllVersions(String fileName) throws FileNotFoundException
fileName
- FileNotFoundException
boolean isVersionable(String fileName)
fileName
- String makeCurrentVersionURL(String host, String context, String dws, String fileName)
String makeVersionURL(String host, String context, String dws, DocumentVersionBean version)
Copyright © 2005–2017 Alfresco Software. All rights reserved.