@Name(value="deleteActions") @Scope(value=EVENT) @Install(precedence=10) public class DeleteActionsBean extends InputController implements DeleteActions, Serializable, SelectDataModelListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETE_OUTCOME |
| Constructor and Description |
|---|
DeleteActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkDeletePermOnParents(List<DocumentModel> docs) |
void |
create() |
String |
deleteSelection()
Moves to trash (delete state) the selected documents.
|
String |
deleteSelection(List<DocumentModel> docs)
Moves to trash (delete state) the documents.
|
String |
deleteSelectionSections()
Moves to trash (delete state) the selected sections.
|
void |
destroy() |
List<Action> |
getActionsForTrashSelection() |
boolean |
getCanDelete() |
boolean |
getCanDelete(String listName) |
boolean |
getCanDeleteItem(DocumentModel container) |
boolean |
getCanDeleteSections() |
boolean |
getCanPurge() |
boolean |
getCanRestoreCurrentDoc()
Checks if the document is "deleted".
|
boolean |
isTrashManagementEnabled() |
void |
processSelectRowEvent(SelectDataModelRowEvent event)
Listener method - not used for now because the binding is not used but
might be used after the refactoring.
|
String |
purgeSelection()
Definitively deletes selected documents.
|
String |
purgeSelection(List<DocumentModel> docs)
Definitively deletes param documents.
|
String |
purgeSelection(String listName)
Definitively deletes selected documents of the given
listName. |
boolean |
restoreActionDisplay() |
void |
restoreCurrentDocument()
Undeletes the current document and its children and his deleted parents.
|
String |
undeleteSelection()
Undeletes the selected documents from trash (recycle bin).
|
String |
undeleteSelection(List<DocumentModel> docs)
Undeletes the args docs from trash (recycle bin).
|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromListpublic static final String DELETE_OUTCOME
public boolean getCanDeleteItem(DocumentModel container) throws ClientException
getCanDeleteItem in interface DeleteActionsClientExceptionpublic boolean getCanDelete()
getCanDelete in interface DeleteActionspublic boolean getCanDelete(String listName)
getCanDelete in interface DeleteActionspublic boolean getCanDeleteSections()
getCanDeleteSections in interface DeleteActionspublic boolean getCanPurge()
throws ClientException
getCanPurge in interface DeleteActionsClientExceptionpublic boolean checkDeletePermOnParents(List<DocumentModel> docs)
checkDeletePermOnParents in interface DeleteActionspublic String deleteSelection() throws ClientException
DeleteActionsdeleteSelection in interface DeleteActionsClientExceptionpublic String deleteSelectionSections() throws ClientException
DeleteActionsdeleteSelectionSections in interface DeleteActionsClientExceptionpublic String deleteSelection(List<DocumentModel> docs) throws ClientException
DeleteActionsdeleteSelection in interface DeleteActionsClientExceptionpublic String purgeSelection() throws ClientException
DeleteActionspurgeSelection in interface DeleteActionsClientExceptionpublic String purgeSelection(String listName) throws ClientException
DeleteActionslistName.purgeSelection in interface DeleteActionsClientExceptionpublic String purgeSelection(List<DocumentModel> docs) throws ClientException
DeleteActionspurgeSelection in interface DeleteActionsClientExceptionpublic String undeleteSelection() throws ClientException
DeleteActionsundeleteSelection in interface DeleteActionsClientExceptionpublic String undeleteSelection(List<DocumentModel> docs) throws ClientException
DeleteActionsundeleteSelection in interface DeleteActionsClientExceptionpublic boolean isTrashManagementEnabled()
isTrashManagementEnabled in interface DeleteActionspublic void processSelectRowEvent(SelectDataModelRowEvent event)
processSelectRowEvent in interface SelectDataModelListenerpublic void create()
create in interface DeleteActionspublic void destroy()
destroy in interface DeleteActionspublic void restoreCurrentDocument()
throws ClientException
DeleteActionsrestoreCurrentDocument in interface DeleteActionsClientExceptionpublic boolean getCanRestoreCurrentDoc()
throws ClientException
DeleteActionsgetCanRestoreCurrentDoc in interface DeleteActionsClientExceptionpublic boolean restoreActionDisplay()
throws ClientException
ClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.