public interface VersionedActions
Modifier and Type | Method and Description |
---|---|
boolean |
canRemoveArchivedVersion(VersionModel selectedVersion)
Check if a version can be removed.
|
String |
checkIn()
Checks the selected document in, with the selected version.
|
String |
checkOut()
Checks the document out.
|
boolean |
getCanRemoveSelectedArchivedVersions()
Check if the currently selected versions can be removed.
|
boolean |
getCanRestore()
Security check to enable or disable the restore button.
|
String |
getCheckedOut()
Tells if the current selected document is checked out or not.
|
String |
getSelectedVersionId()
Gets currently selected version id.
|
DocumentModel |
getSourceDocument() |
DocumentModel |
getSourceDocument(DocumentModel document) |
PageSelections<VersionModel> |
getVersionList()
Factory accessor for currentDocument versionList.
|
void |
initialize() |
String |
removeArchivedVersion(VersionModel selectedVersion)
Remove an archived version.
|
String |
removeSelectedArchivedVersions()
Remove currently selected archived versions.
|
void |
resetVersions()
When the user selects/changes other documents then we nullify the list of
versions associated with the document so that the factory method gets
called when the list is used.
|
String |
restoreToVersion()
Restores the version which id is returned by
getSelectedVersionId() . |
String |
restoreToVersion(VersionModel selectedVersion)
Restored the document to the selected version.
|
void |
retrieveVersions()
Retrieves the versions for the current document.
|
void |
setCheckedOut(String checkedOut)
Changes the checked-out string.
|
void |
setSelectedVersionId(String selectedVersionId)
Sets currently selected version id.
|
String |
viewArchivedVersion()
Navigates to the version which id is returned by
getSelectedVersionId() . |
String |
viewArchivedVersion(VersionModel selectedVersion)
View an older version of the document.
|
PageSelections<VersionModel> getVersionList() throws ClientException
PageSelections
ClientException
void retrieveVersions() throws ClientException
ClientException
String restoreToVersion(VersionModel selectedVersion) throws ClientException
ClientException
String restoreToVersion() throws ClientException
getSelectedVersionId()
.ClientException
- if cannot fetch the versionboolean getCanRestore() throws ClientException
ClientException
String getCheckedOut() throws ClientException
ClientException
void setCheckedOut(String checkedOut)
checkedOut
- String checkOut() throws ClientException
ClientException
String checkIn() throws ClientException
ClientException
@Create void initialize()
void resetVersions()
This way we achieve lazy loading of data from backend - only when its needed and not loading it when the event is fired.
String viewArchivedVersion(VersionModel selectedVersion) throws ClientException
ClientException
String viewArchivedVersion() throws ClientException
getSelectedVersionId()
.ClientException
- if cannot fetch the versionDocumentModel getSourceDocument() throws ClientException
ClientException
DocumentModel getSourceDocument(DocumentModel document) throws ClientException
ClientException
boolean canRemoveArchivedVersion(VersionModel selectedVersion)
boolean getCanRemoveSelectedArchivedVersions() throws ClientException
ClientException
- if at least one of the selected versions cannot
be retrieved from the repositoryString removeArchivedVersion(VersionModel selectedVersion) throws ClientException
selectedVersion
- the version model to removeClientException
String removeSelectedArchivedVersions() throws ClientException
ClientException
String getSelectedVersionId()
void setSelectedVersionId(String selectedVersionId)
Copyright © 2013 Nuxeo SA. All Rights Reserved.