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()
PageSelections
void retrieveVersions()
String restoreToVersion(VersionModel selectedVersion)
String restoreToVersion()
getSelectedVersionId()
.boolean getCanRestore()
String getCheckedOut()
void setCheckedOut(String checkedOut)
checkedOut
- @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)
String viewArchivedVersion()
getSelectedVersionId()
.DocumentModel getSourceDocument()
DocumentModel getSourceDocument(DocumentModel document)
boolean canRemoveArchivedVersion(VersionModel selectedVersion)
boolean getCanRemoveSelectedArchivedVersions()
String removeArchivedVersion(VersionModel selectedVersion)
selectedVersion
- the version model to removeString removeSelectedArchivedVersions()
String getSelectedVersionId()
void setSelectedVersionId(String selectedVersionId)
Copyright © 2018 Nuxeo. All rights reserved.