Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.action
Interface DeleteActions

All Known Implementing Classes:
DeleteActionsBean

public interface DeleteActions


Method Summary
 boolean checkDeletePermOnParents(List<DocumentModel> docsToDelete)
           
 void create()
           
 String deleteSelection()
          Moves to trash (delete state) the selected documents.
 String deleteSelection(List<DocumentModel> docsToDelete)
          Moves to trash (delete state) the documents.
 String deleteSelectionSections()
          Moves to trash (delete state) the selected sections.
 void destroy()
           
 boolean getCanDelete()
           
 boolean getCanDeleteItem(DocumentModel container)
           
 boolean getCanDeleteSections()
           
 boolean getCanPurge()
           
 boolean getCanRestoreCurrentDoc()
          Checks if the document is "deleted".
 DocumentModelList getCurrentDocumentDeletedChildrenPage()
           
 SelectDataModel getDeletedChildrenSelectModel()
           
 Boolean getSearchDeletedDocuments()
           
 boolean isTrashManagementEnabled()
           
 String purgeSelection()
          Definitively deletes selected documents.
 String purgeSelection(List<DocumentModel> docsToPurge)
          Definitively deletes param documents.
 void restoreCurrentDocument()
          Undeletes the current document and its children and his deleted parents.
 void setSearchDeletedDocuments(Boolean searchDeletedDocuments)
           
 String undeleteSelection()
          Undeletes the selected documents from trash (recycle bin).
 String undeleteSelection(List<DocumentModel> docsToUndelete)
          Undeletes the args docs from trash (recycle bin).
 

Method Detail

purgeSelection

String purgeSelection()
                      throws ClientException
Definitively deletes selected documents.

Throws:
ClientException

purgeSelection

String purgeSelection(List<DocumentModel> docsToPurge)
                      throws ClientException
Definitively deletes param documents.

Throws:
ClientException

deleteSelection

String deleteSelection()
                       throws ClientException
Moves to trash (delete state) the selected documents.

Throws:
ClientException

deleteSelectionSections

String deleteSelectionSections()
                               throws ClientException
Moves to trash (delete state) the selected sections.

Throws:
ClientException

deleteSelection

String deleteSelection(List<DocumentModel> docsToDelete)
                       throws ClientException
Moves to trash (delete state) the documents.

Throws:
ClientException

undeleteSelection

String undeleteSelection()
                         throws ClientException
Undeletes the selected documents from trash (recycle bin).

Throws:
ClientException

undeleteSelection

String undeleteSelection(List<DocumentModel> docsToUndelete)
                         throws ClientException
Undeletes the args docs from trash (recycle bin).

Throws:
ClientException

getCanDeleteItem

boolean getCanDeleteItem(DocumentModel container)
                         throws ClientException
Throws:
ClientException

getCanDelete

boolean getCanDelete()

getCanDeleteSections

boolean getCanDeleteSections()

getCanPurge

boolean getCanPurge()
                    throws ClientException
Throws:
ClientException

getDeletedChildrenSelectModel

SelectDataModel getDeletedChildrenSelectModel()
                                              throws ClientException
Throws:
ClientException

getCurrentDocumentDeletedChildrenPage

DocumentModelList getCurrentDocumentDeletedChildrenPage()
                                                        throws ClientException
Throws:
ClientException

isTrashManagementEnabled

boolean isTrashManagementEnabled()

checkDeletePermOnParents

boolean checkDeletePermOnParents(List<DocumentModel> docsToDelete)

destroy

@Destroy
@PermitAll
void destroy()

create

void create()

getSearchDeletedDocuments

Boolean getSearchDeletedDocuments()

setSearchDeletedDocuments

void setSearchDeletedDocuments(Boolean searchDeletedDocuments)
                               throws ClientException
Throws:
ClientException

restoreCurrentDocument

void restoreCurrentDocument()
                            throws ClientException
Undeletes the current document and its children and his deleted parents.

Throws:
ClientException

getCanRestoreCurrentDoc

boolean getCanRestoreCurrentDoc()
                                throws ClientException
Checks if the document is "deleted".

Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.