@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, removeDocumentFromList
public static final String DELETE_OUTCOME
public boolean getCanDeleteItem(DocumentModel container) throws ClientException
getCanDeleteItem
in interface DeleteActions
ClientException
public boolean getCanDelete()
getCanDelete
in interface DeleteActions
public boolean getCanDelete(String listName)
getCanDelete
in interface DeleteActions
public boolean getCanDeleteSections()
getCanDeleteSections
in interface DeleteActions
public boolean getCanPurge() throws ClientException
getCanPurge
in interface DeleteActions
ClientException
public boolean checkDeletePermOnParents(List<DocumentModel> docs)
checkDeletePermOnParents
in interface DeleteActions
public String deleteSelection() throws ClientException
DeleteActions
deleteSelection
in interface DeleteActions
ClientException
public String deleteSelectionSections() throws ClientException
DeleteActions
deleteSelectionSections
in interface DeleteActions
ClientException
public String deleteSelection(List<DocumentModel> docs) throws ClientException
DeleteActions
deleteSelection
in interface DeleteActions
ClientException
public String purgeSelection() throws ClientException
DeleteActions
purgeSelection
in interface DeleteActions
ClientException
public String purgeSelection(String listName) throws ClientException
DeleteActions
listName
.purgeSelection
in interface DeleteActions
ClientException
public String purgeSelection(List<DocumentModel> docs) throws ClientException
DeleteActions
purgeSelection
in interface DeleteActions
ClientException
public String undeleteSelection() throws ClientException
DeleteActions
undeleteSelection
in interface DeleteActions
ClientException
public String undeleteSelection(List<DocumentModel> docs) throws ClientException
DeleteActions
undeleteSelection
in interface DeleteActions
ClientException
public boolean isTrashManagementEnabled()
isTrashManagementEnabled
in interface DeleteActions
public void processSelectRowEvent(SelectDataModelRowEvent event)
processSelectRowEvent
in interface SelectDataModelListener
public void create()
create
in interface DeleteActions
public void destroy()
destroy
in interface DeleteActions
public void restoreCurrentDocument() throws ClientException
DeleteActions
restoreCurrentDocument
in interface DeleteActions
ClientException
public boolean getCanRestoreCurrentDoc() throws ClientException
DeleteActions
getCanRestoreCurrentDoc
in interface DeleteActions
ClientException
public boolean restoreActionDisplay() throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.