public interface DocumentActions extends SelectDataModelListener
| Modifier and Type | Field and Description |
|---|---|
static String |
CHILDREN_DOCUMENT_LIST |
| Modifier and Type | Method and Description |
|---|---|
String |
checkCurrentDocAndProcessSelectPage(String providerName,
String listName,
Boolean selection,
String currentDocRef)
Deprecated.
since 5.4, use
DocumentListingActionsBean.checkCurrentDocAndProcessSelectPage(String, String, Boolean, String)
as selection is now done through ajax |
String |
checkCurrentDocAndProcessSelectRow(String docRef,
String providerName,
String listName,
Boolean selection,
String currentDocRef)
Deprecated.
since 5.4, use
DocumentListingActionsBean.checkCurrentDocAndProcessSelectRow(String, String, String, Boolean, String)
as selection is now done through ajax |
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.
since 5.3: edit views are managed through tabs, the edit
view is not used.
|
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() |
SelectDataModel |
getChildrenSelectModel()
Deprecated.
since 5.4:
SelectDataModel usage is now useless
since content views provide selection wrappers. |
String |
getComment()
Deprecated.
since 5.4: comment can be put directly in the document
context data using key 'request/comment'.
|
String |
getCurrentDocumentSummaryLayout() |
Type |
getCurrentType() |
SelectDataModel |
getSectionChildrenSelectModel()
Deprecated.
since 5.4:
SelectDataModel usage is now useless
since content views provide selection wrappers. |
boolean |
getWriteRight()
Checks the current document write permission.
|
String |
processSelectPage(String providerName,
String listName,
Boolean selection)
Deprecated.
since 5.4, use
DocumentListingActionsBean.processSelectPage(String, String, Boolean)
as selection is now done through ajax |
String |
processSelectRow(String docRef,
String providerName,
String listName,
Boolean selection)
Deprecated.
since 5.4, use
DocumentListingActionsBean.processSelectRow(String, String, String, Boolean)
as selection is now done through ajax |
String |
saveDocument()
Creates the document from the changeableDocument put in request.
|
String |
saveDocument(DocumentModel newDocument)
Creates the given document.
|
void |
setComment(String comment)
Deprecated.
since 5.4: comment can be put directly in the document
context data using key 'request/comment'.
|
String |
updateCurrentDocument()
Updates document considering that current document model holds edited
values.
|
String |
updateDocument()
Deprecated.
since 5.4.2, currentDocument should be used in edition
screens instead of changeableDocument, so
updateCurrentDocument() should be used instead |
String |
updateDocumentAsNewVersion()
Saves changes held by the changeableDocument document model in current
version and then create a new current one.
|
processSelectRowEventstatic final String CHILDREN_DOCUMENT_LIST
@Deprecated String editDocument() throws ClientException
ClientException@Deprecated String updateDocument() throws ClientException
updateCurrentDocument() should be used insteadClientExceptionString updateDocumentAsNewVersion() throws ClientException
ClientExceptionString updateCurrentDocument() throws ClientException
ClientExceptionString createDocument() throws ClientException
TypesTool and stores it in
the context as the current changeable document.
Returns the create view of given document type.
ClientExceptionString createDocument(String typeName) throws ClientException
Returns the create view of given document type.
ClientExceptionString saveDocument() throws ClientException
ClientExceptionString saveDocument(DocumentModel newDocument) throws ClientException
ClientException@Deprecated String download() throws ClientException
ClientExceptionvoid download(DocumentView docView) throws ClientException
To be used by url pattern descriptors performing a download.
docView - the document view as generated through the url serviceClientException - when document is not found or file is not
retrieved correctly.@Deprecated String downloadFromList() throws ClientException
ClientExceptionType getCurrentType()
null if current
doc is null.Type getChangeableDocumentType()
@Deprecated SelectDataModel getChildrenSelectModel() throws ClientException
SelectDataModel usage is now useless
since content views provide selection wrappers.ClientException@Deprecated SelectDataModel getSectionChildrenSelectModel() throws ClientException
SelectDataModel usage is now useless
since content views provide selection wrappers.ClientExceptionboolean getWriteRight()
throws ClientException
true if the user has WRITE permission on current
documentClientException@WebRemote @Deprecated String checkCurrentDocAndProcessSelectRow(String docRef, String providerName, String listName, Boolean selection, String currentDocRef) throws ClientException
DocumentListingActionsBean.checkCurrentDocAndProcessSelectRow(String, String, String, Boolean, String)
as selection is now done through ajaxClientException - if currentDocRef is not a valid document@WebRemote @Deprecated String processSelectRow(String docRef, String providerName, String listName, Boolean selection)
DocumentListingActionsBean.processSelectRow(String, String, String, Boolean)
as selection is now done through ajax@Deprecated @WebRemote String checkCurrentDocAndProcessSelectPage(String providerName, String listName, Boolean selection, String currentDocRef) throws ClientException
DocumentListingActionsBean.checkCurrentDocAndProcessSelectPage(String, String, Boolean, String)
as selection is now done through ajaxClientException - if currentDocRef is not a valid document@Deprecated @WebRemote String processSelectPage(String providerName, String listName, Boolean selection)
DocumentListingActionsBean.processSelectPage(String, String, Boolean)
as selection is now done through ajax@Deprecated String getComment()
@Deprecated void setComment(String comment)
boolean getCanUnpublish()
ClientExceptionString getCurrentDocumentSummaryLayout()
void followTransition(DocumentModel changedDocument) throws ClientException
ClientExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.