@Name(value="documentActions") @Scope(value=CONVERSATION) public class DocumentActionsBean extends InputController implements DocumentActions, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SUMMARY_LAYOUT
Deprecated.
since 5.6: default layout can now be defined on the nxl:documentLayout tag
|
static String |
LIFE_CYCLE_TRANSITION_KEY |
CHILDREN_DOCUMENT_LIST| Constructor and Description |
|---|
DocumentActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
createDocument()
Creates a document with type given by
TypesTool and stores it in the context as the current changeable
document. |
String |
createDocument(String typeName)
Creates a document with given type and stores it in the context as the current changeable document.
|
String |
download()
Deprecated.
|
void |
download(DocumentView docView)
Downloads file as described by given document view.
|
String |
downloadFromList()
Deprecated.
|
String |
editDocument()
Deprecated.
|
void |
followTransition(DocumentModel changedDocument) |
boolean |
getCanUnpublish()
This method is used to test whether the logged user has enough rights for the unpublish support.
|
Type |
getChangeableDocumentType() |
String |
getComment()
Deprecated.
|
String |
getCurrentDocumentSummaryLayout()
Deprecated.
|
Type |
getCurrentType() |
String |
getFileName(DocumentModel doc) |
boolean |
getWriteRight()
Checks the current document write permission.
|
String |
saveDocument()
Creates the document from the changeableDocument put in request.
|
String |
saveDocument(DocumentModel newDocument)
Creates the given document.
|
void |
setComment(String comment)
Deprecated.
|
String |
updateCurrentDocument()
Updates document considering that current document model holds edited values.
|
String |
updateDocument()
Deprecated.
|
String |
updateDocument(DocumentModel doc,
Boolean restoreCurrentTabs)
Saves changes held by the given document, and updates the current document context with the new version.
|
String |
updateDocumentAsNewVersion()
Saves changes held by the changeableDocument document model in current version and then create a new current one.
|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList@Deprecated public static final String DEFAULT_SUMMARY_LAYOUT
public static final String LIFE_CYCLE_TRANSITION_KEY
@Deprecated @Factory(autoCreate=true, value="currentDocumentSummaryLayout", scope=EVENT) public String getCurrentDocumentSummaryLayout()
getCurrentDocumentSummaryLayout in interface DocumentActions@Factory(autoCreate=true,
value="currentDocumentType",
scope=EVENT)
public Type getCurrentType()
getCurrentType in interface DocumentActionsnull if current doc is null.public Type getChangeableDocumentType()
getChangeableDocumentType in interface DocumentActions@Deprecated public String editDocument() throws ClientException
DocumentActionseditDocument in interface DocumentActionsClientExceptionpublic String getFileName(DocumentModel doc) throws ClientException
ClientException@Deprecated public String download() throws ClientException
download in interface DocumentActionsClientExceptionpublic void download(DocumentView docView) throws ClientException
DocumentActionsTo be used by url pattern descriptors performing a download.
download in interface DocumentActionsdocView - the document view as generated through the url serviceClientException - when document is not found or file is not retrieved correctly.@Deprecated public String downloadFromList() throws ClientException
downloadFromList in interface DocumentActionsClientExceptionpublic String updateDocument(DocumentModel doc, Boolean restoreCurrentTabs) throws ClientException
DocumentActionsMakes it possible to specify whether current tabs should be restored or not after edition.
updateDocument in interface DocumentActionsClientExceptionpublic String updateCurrentDocument() throws ClientException
DocumentActionsupdateCurrentDocument in interface DocumentActionsClientException@Deprecated public String updateDocument() throws ClientException
DocumentActionsupdateDocument in interface DocumentActionsClientExceptionpublic String updateDocumentAsNewVersion() throws ClientException
DocumentActionsupdateDocumentAsNewVersion in interface DocumentActionsClientExceptionpublic String createDocument() throws ClientException
DocumentActionsTypesTool and stores it in the context as the current changeable
document.
Returns the create view of given document type.
createDocument in interface DocumentActionsClientExceptionpublic String createDocument(String typeName) throws ClientException
DocumentActionsReturns the create view of given document type.
createDocument in interface DocumentActionsClientExceptionpublic String saveDocument() throws ClientException
DocumentActionssaveDocument in interface DocumentActionsClientExceptionpublic String saveDocument(DocumentModel newDocument) throws ClientException
DocumentActionssaveDocument in interface DocumentActionsClientExceptionpublic boolean getWriteRight()
throws ClientException
DocumentActionsgetWriteRight in interface DocumentActionstrue if the user has WRITE permission on current documentClientException@Deprecated public String getComment()
DocumentActionsgetComment in interface DocumentActions@Deprecated public void setComment(String comment)
DocumentActionssetComment in interface DocumentActionspublic boolean getCanUnpublish()
DocumentActionsgetCanUnpublish in interface DocumentActions@Observer(value="beforeDocumentChanged") public void followTransition(DocumentModel changedDocument) throws ClientException
followTransition in interface DocumentActionsClientExceptionCopyright © 2015 Nuxeo SA. All rights reserved.