|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionedActions
Exposes the actions that can be taken related to versioning and documents.
Method Summary | |
---|---|
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 |
getCanRestore()
Security check to enable or disable the restore button. |
String |
getCheckedOut()
Tells if the current selected document is checked out or not. |
DocumentModel |
getSourceDocument()
|
DocumentModel |
getSourceDocument(DocumentModel document)
|
List<VersionModel> |
getVersionList()
Factory accessor for currentDocument versionList. |
void |
initialize()
|
String |
removeArchivedVersion(VersionModel selectedVersion)
Remove an archived version. |
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(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. |
String |
viewArchivedVersion(VersionModel selectedVersion)
View an older version of the document. |
Method Detail |
---|
List<VersionModel> getVersionList() throws ClientException
ClientException
void retrieveVersions() throws ClientException
ClientException
String restoreToVersion(VersionModel selectedVersion) throws ClientException
ClientException
boolean 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
DocumentModel getSourceDocument() throws ClientException
ClientException
DocumentModel getSourceDocument(DocumentModel document) throws ClientException
ClientException
boolean canRemoveArchivedVersion(VersionModel selectedVersion)
String removeArchivedVersion(VersionModel selectedVersion) throws ClientException
selectedVersion
- the version model to remove
ClientException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |