|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.webapp.base.InputController
org.nuxeo.ecm.webapp.action.DeleteActionsBean
@Name(value="deleteActions") @Scope(value=EVENT) @Install(precedence=10) public class DeleteActionsBean
| Field Summary | |
|---|---|
static String |
BOARD_USER_DELETED
|
static String |
DELETE_OUTCOME
|
static String |
DELETED_CHILDREN_BY_COREAPI
|
| Constructor Summary | |
|---|---|
DeleteActionsBean()
|
|
| Method Summary | |
|---|---|
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 |
getCanDeleteItem(DocumentModel container)
|
boolean |
getCanDeleteSections()
|
boolean |
getCanPurge()
|
boolean |
getCanRestoreCurrentDoc()
Checks if the document is "deleted". |
DocumentModelList |
getCurrentDocumentDeletedChildrenPage()
|
SelectDataModel |
getDeletedChildrenSelectModel()
|
PagedDocumentsProvider |
getResultsProvider(String name)
Makes a new, fresh instance of the named results provider. |
PagedDocumentsProvider |
getResultsProvider(String name,
SortInfo sortInfo)
|
Boolean |
getSearchDeletedDocuments()
|
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. |
void |
resetProviderCache()
|
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> docs)
Undeletes the args docs from trash (recycle bin). |
| Methods inherited from class org.nuxeo.ecm.webapp.base.InputController |
|---|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DELETED_CHILDREN_BY_COREAPI
public static final String BOARD_USER_DELETED
public static final String DELETE_OUTCOME
| Constructor Detail |
|---|
public DeleteActionsBean()
| Method Detail |
|---|
public boolean getCanDeleteItem(DocumentModel container)
throws ClientException
getCanDeleteItem in interface DeleteActionsClientExceptionpublic boolean getCanDelete()
getCanDelete in interface DeleteActionspublic boolean getCanDeleteSections()
getCanDeleteSections in interface DeleteActions
public boolean getCanPurge()
throws ClientException
getCanPurge in interface DeleteActionsClientExceptionpublic boolean checkDeletePermOnParents(List<DocumentModel> docs)
checkDeletePermOnParents in interface DeleteActions
public String deleteSelection()
throws ClientException
DeleteActions
deleteSelection in interface DeleteActionsClientException
public String deleteSelectionSections()
throws ClientException
DeleteActions
deleteSelectionSections in interface DeleteActionsClientException
public String deleteSelection(List<DocumentModel> docs)
throws ClientException
DeleteActions
deleteSelection in interface DeleteActionsClientException
public String purgeSelection()
throws ClientException
DeleteActions
purgeSelection in interface DeleteActionsClientException
public String purgeSelection(List<DocumentModel> docs)
throws ClientException
DeleteActions
purgeSelection in interface DeleteActionsClientException
public String undeleteSelection()
throws ClientException
DeleteActions
undeleteSelection in interface DeleteActionsClientException
public String undeleteSelection(List<DocumentModel> docs)
throws ClientException
DeleteActions
undeleteSelection in interface DeleteActionsClientExceptionpublic boolean isTrashManagementEnabled()
isTrashManagementEnabled in interface DeleteActions
public SelectDataModel getDeletedChildrenSelectModel()
throws ClientException
getDeletedChildrenSelectModel in interface DeleteActionsClientException
public DocumentModelList getCurrentDocumentDeletedChildrenPage()
throws ClientException
getCurrentDocumentDeletedChildrenPage in interface DeleteActionsClientExceptionpublic void processSelectRowEvent(SelectDataModelRowEvent event)
processSelectRowEvent in interface SelectDataModelListenerpublic List<Action> getActionsForTrashSelection()
public void create()
create in interface DeleteActionspublic void destroy()
destroy in interface DeleteActions
public PagedDocumentsProvider getResultsProvider(String name)
throws ClientException,
ResultsProviderFarmUserException
ResultsProviderFarm
getResultsProvider in interface ResultsProviderFarmname - the name of the ResultsProvider instance to create
ClientException
ResultsProviderFarmUserException
public PagedDocumentsProvider getResultsProvider(String name,
SortInfo sortInfo)
throws ClientException,
ResultsProviderFarmUserException
getResultsProvider in interface ResultsProviderFarmname - the name of the ResultsProvider instance to createsortInfo - an object containing the sort details
ClientException
ResultsProviderFarmUserExceptionpublic Boolean getSearchDeletedDocuments()
getSearchDeletedDocuments in interface DeleteActions
public void setSearchDeletedDocuments(Boolean searchDeletedDocuments)
throws ClientException
setSearchDeletedDocuments in interface DeleteActionssearchDeletedDocuments - the searchDeletedDocuments to set.
ClientException
public void restoreCurrentDocument()
throws ClientException
DeleteActions
restoreCurrentDocument in interface DeleteActionsClientException
public boolean getCanRestoreCurrentDoc()
throws ClientException
DeleteActions
getCanRestoreCurrentDoc in interface DeleteActionsClientException@Observer(value="folderishDocumentSelectionChanged") @BypassInterceptors public void resetProviderCache()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||