@Component public class VersionHistory extends Renderable
renderableParent, webDriver| Constructor and Description |
|---|
VersionHistory() |
| Modifier and Type | Method and Description |
|---|---|
int |
countVersions()
Count the number of versions of a document.
|
String |
getCurrentVersion()
Get the current version of a document.
|
List<String> |
getOlderVersions()
Get older versions of a document.
|
RevertDialog |
revertToVersion(String documentVersion)
Revert to a specified version of the document.
|
as, getAllFields, getLastRendered, render, renderChildrenpublic RevertDialog revertToVersion(String documentVersion)
documentVersion - The document version to revert to (e.g. "1.0").public int countVersions()
public String getCurrentVersion()
Copyright © 2005–2016 Alfresco Software. All rights reserved.