@Name(value="deleteActions") @Scope(value=EVENT) @Install(precedence=10) public class DeleteActionsBean extends Object implements DeleteActions, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected RepositoryLocation |
currentServerLocation |
protected NuxeoPrincipal |
currentUser |
protected CoreSession |
documentManager |
protected DocumentsListsManager |
documentsListsManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected LockActions |
lockActions |
protected Map<String,String> |
messages |
protected NavigationContext |
navigationContext |
protected static int |
OP_DELETE |
protected static int |
OP_PURGE |
protected static int |
OP_UNDELETE |
protected TrashManager |
trashManager |
protected TrashService |
trashService |
protected WebActions |
webActions |
| Constructor and Description |
|---|
DeleteActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
actOnSelection(int op,
List<DocumentModel> docs) |
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() |
String |
emptyTrash() |
List<Action> |
getActionsForTrashSelection() |
boolean |
getCanDelete() |
boolean |
getCanDelete(String listName) |
boolean |
getCanDeleteItem(DocumentModel container) |
boolean |
getCanDeleteSections() |
boolean |
getCanEmptyTrash() |
boolean |
getCanPurge() |
boolean |
getCanRestoreCurrentDoc()
Checks if the document is "trashed".
|
protected TrashService |
getTrashService() |
boolean |
isTrashManagementEnabled() |
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).
|
@In(create=true,
required=false)
protected org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true,
required=false)
protected transient CoreSession documentManager
@In(create=true,
required=false)
protected RepositoryLocation currentServerLocation
@In(create=true) protected transient DocumentsListsManager documentsListsManager
@In(create=true) protected NavigationContext navigationContext
@In(create=true) protected transient TrashManager trashManager
@In(create=true) protected transient LockActions lockActions
@In(create=true) protected transient WebActions webActions
@In protected transient NuxeoPrincipal currentUser
protected transient TrashService trashService
protected static final int OP_DELETE
protected static final int OP_PURGE
protected static final int OP_UNDELETE
public DeleteActionsBean()
protected TrashService getTrashService()
public boolean getCanDeleteItem(DocumentModel container)
getCanDeleteItem in interface DeleteActionspublic boolean getCanDelete()
getCanDelete in interface DeleteActionspublic boolean getCanDelete(String listName)
getCanDelete in interface DeleteActionspublic boolean getCanDeleteSections()
getCanDeleteSections in interface DeleteActionspublic boolean getCanPurge()
getCanPurge in interface DeleteActionspublic boolean getCanEmptyTrash()
public boolean checkDeletePermOnParents(List<DocumentModel> docs)
checkDeletePermOnParents in interface DeleteActionspublic String deleteSelection()
DeleteActionsdeleteSelection in interface DeleteActionspublic String deleteSelectionSections()
DeleteActionsdeleteSelectionSections in interface DeleteActionspublic String deleteSelection(List<DocumentModel> docs)
DeleteActionsdeleteSelection in interface DeleteActionspublic String emptyTrash()
public String purgeSelection()
DeleteActionspurgeSelection in interface DeleteActionspublic String purgeSelection(String listName)
DeleteActionslistName.purgeSelection in interface DeleteActionspublic String purgeSelection(List<DocumentModel> docs)
DeleteActionspurgeSelection in interface DeleteActionspublic String undeleteSelection()
DeleteActionsundeleteSelection in interface DeleteActionspublic String undeleteSelection(List<DocumentModel> docs)
DeleteActionsundeleteSelection in interface DeleteActionsprotected String actOnSelection(int op, List<DocumentModel> docs)
public boolean isTrashManagementEnabled()
isTrashManagementEnabled in interface DeleteActionspublic List<Action> getActionsForTrashSelection()
public void create()
create in interface DeleteActionspublic void destroy()
destroy in interface DeleteActionspublic void restoreCurrentDocument()
DeleteActionsrestoreCurrentDocument in interface DeleteActionspublic boolean getCanRestoreCurrentDoc()
DeleteActionsgetCanRestoreCurrentDoc in interface DeleteActionspublic boolean restoreActionDisplay()
Copyright © 2019 Nuxeo. All rights reserved.