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 org.alfresco.service.cmr.model.FileNotFoundException
fileName - A string that contains the site-relative URL of the file in the form Folder_Name/File_Nameorg.alfresco.service.cmr.model.FileNotFoundExceptionList<DocumentVersionBean> restoreVersion(String fileName, String fileVersion)
fileName - site relative url to the filefileVersion - file version to restoreList<DocumentVersionBean> deleteVersion(String fileName, String fileVersion) throws org.alfresco.service.cmr.model.FileNotFoundException, org.alfresco.service.cmr.version.VersionDoesNotExistException
fileName - site relative url to the filefileVersion - file version to restoreorg.alfresco.service.cmr.model.FileNotFoundExceptionorg.alfresco.service.cmr.version.VersionDoesNotExistExceptionList<DocumentVersionBean> deleteAllVersions(String fileName) throws org.alfresco.service.cmr.model.FileNotFoundException
fileName - org.alfresco.service.cmr.model.FileNotFoundExceptionboolean 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–2014 Alfresco Software. All rights reserved.