Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.contentbrowser
Interface DocumentActions

All Superinterfaces:
EventListener, SelectDataModelListener, StatefulBaseLifeCycle
All Known Implementing Classes:
DocumentActionsBean

public interface DocumentActions
extends StatefulBaseLifeCycle, SelectDataModelListener

Author:
Razvan Caraghin

Field Summary
static String CHILDREN_DOCUMENT_LIST
           
 
Method Summary
 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.
 void destroy()
           
 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.
 void initialize()
           
 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.
 
Methods inherited from interface org.nuxeo.ecm.webapp.base.StatefulBaseLifeCycle
readState, saveState
 
Methods inherited from interface org.nuxeo.ecm.platform.ui.web.model.SelectDataModelListener
processSelectRowEvent
 

Field Detail

CHILDREN_DOCUMENT_LIST

static final String CHILDREN_DOCUMENT_LIST
See Also:
Constant Field Values
Method Detail

initialize

void initialize()

destroy

@Destroy
void destroy()

editDocument

@Deprecated
String editDocument()
                    throws ClientException
Deprecated. since 5.3: edit views are managed through tabs, the edit view is not used.

Returns the edit view of a document.

Throws:
ClientException

updateDocument

@Deprecated
String updateDocument()
                      throws ClientException
Deprecated. since 5.4.2, currentDocument should be used in edition screens instead of changeableDocument, so updateCurrentDocument() should be used instead

Saves changes held by the changeableDocument document model.

Throws:
ClientException

updateDocumentAsNewVersion

String updateDocumentAsNewVersion()
                                  throws ClientException
Saves changes held by the changeableDocument document model in current version and then create a new current one.

Throws:
ClientException

updateCurrentDocument

String updateCurrentDocument()
                             throws ClientException
Updates document considering that current document model holds edited values.

Throws:
ClientException

createDocument

String createDocument()
                      throws ClientException
Creates a document with type given by TypesTool and stores it in the context as the current changeable document.

Returns the create view of given document type.

Throws:
ClientException

createDocument

String createDocument(String typeName)
                      throws ClientException
Creates a document with given type and stores it in the context as the current changeable document.

Returns the create view of given document type.

Throws:
ClientException

saveDocument

String saveDocument()
                    throws ClientException
Creates the document from the changeableDocument put in request.

Throws:
ClientException

saveDocument

String saveDocument(DocumentModel newDocument)
                    throws ClientException
Creates the given document.

Throws:
ClientException

download

@Deprecated
String download()
                throws ClientException
Deprecated. 

Throws:
ClientException

download

void download(DocumentView docView)
              throws ClientException
Downloads file as described by given document view.

To be used by url pattern descriptors performing a download.

Parameters:
docView - the document view as generated through the url service
Throws:
ClientException - when document is not found or file is not retrieved correctly.

downloadFromList

@Deprecated
String downloadFromList()
                        throws ClientException
Deprecated. 

Throws:
ClientException

getCurrentType

Type getCurrentType()
Returns:
ecm type for current document, null if current doc is null.

getChangeableDocumentType

Type getChangeableDocumentType()

getChildrenSelectModel

@Deprecated
SelectDataModel getChildrenSelectModel()
                                       throws ClientException
Deprecated. since 5.4: SelectDataModel usage is now useless since content views provide selection wrappers.

Throws:
ClientException

getSectionChildrenSelectModel

@Deprecated
SelectDataModel getSectionChildrenSelectModel()
                                              throws ClientException
Deprecated. since 5.4: SelectDataModel usage is now useless since content views provide selection wrappers.

Throws:
ClientException

getWriteRight

boolean getWriteRight()
                      throws ClientException
Checks the current document write permission.

Returns:
true if the user has WRITE permission on current document
Throws:
ClientException

checkCurrentDocAndProcessSelectRow

@WebRemote
@Deprecated
String checkCurrentDocAndProcessSelectRow(String docRef,
                                                               String providerName,
                                                               String listName,
                                                               Boolean selection,
                                                               String currentDocRef)
                                          throws ClientException
Deprecated. since 5.4, use DocumentListingActionsBean.checkCurrentDocAndProcessSelectRow(String, String, String, Boolean, String) as selection is now done through ajax

Handle complete row selection event after having ensured that the navigation context stills points to currentDocumentRef to protect against browsers' back button errors

Throws:
ClientException - if currentDocRef is not a valid document

processSelectRow

@WebRemote
@Deprecated
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


checkCurrentDocAndProcessSelectPage

@Deprecated
@WebRemote
String checkCurrentDocAndProcessSelectPage(String providerName,
                                                                String listName,
                                                                Boolean selection,
                                                                String currentDocRef)
                                           throws ClientException
Deprecated. since 5.4, use DocumentListingActionsBean.checkCurrentDocAndProcessSelectPage(String, String, Boolean, String) as selection is now done through ajax

Handle complete table selection event after having ensured that the navigation context stills points to currentDocumentRef to protect against browsers' back button errors

Throws:
ClientException - if currentDocRef is not a valid document

processSelectPage

@Deprecated
@WebRemote
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


getComment

@Deprecated
String getComment()
Deprecated. since 5.4: comment can be put directly in the document context data using key 'request/comment'.

Returns the comment to attach to the document


setComment

@Deprecated
void setComment(String comment)
Deprecated. since 5.4: comment can be put directly in the document context data using key 'request/comment'.

Sets the comment to attach to a document


getCanUnpublish

boolean getCanUnpublish()
This method is used to test whether the logged user has enough rights for the unpublish support.

Returns:
true if the user can unpublish, false otherwise
Throws:
ClientException

getCurrentDocumentSummaryLayout

String getCurrentDocumentSummaryLayout()

followTransition

void followTransition(DocumentModel changedDocument)
                      throws ClientException
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.