Nuxeo Enterprise Platform 5.4

org.nuxeo.dam.webapp
Class BulkSelectActions

java.lang.Object
  extended by org.nuxeo.dam.webapp.BulkSelectActions
All Implemented Interfaces:
Serializable

@Scope(value=CONVERSATION)
@Name(value="bulkSelectActions")
@Install(precedence=10)
public class BulkSelectActions
extends Object
implements Serializable

Author:
Peter Di Lorenzo, Catalin Baican
See Also:
Serialized Form

Constructor Summary
BulkSelectActions()
           
 
Method Summary
 boolean checkDeletePermOnParents(List<org.nuxeo.ecm.core.api.DocumentModel> docsToDelete)
           
 void clearWorkingList(String listName)
          Clears the working list of selected documents.
 void deleteSelection()
           
 void deleteSelection(List<org.nuxeo.ecm.core.api.DocumentModel> docsToDelete)
           
 void exportSelection()
           
 String exportSelection(List<org.nuxeo.ecm.core.api.DocumentModel> docsToExport)
           
 List<org.nuxeo.ecm.platform.actions.Action> getActionsForSelection()
           
 List<org.nuxeo.ecm.platform.actions.Action> getActionsForSelectionNoAjax()
           
 boolean getCanDelete()
           
 List<org.nuxeo.ecm.platform.actions.Action> getHrefActionsForSelection()
           
 boolean getIsCurrentPageInWorkingList(String providerName, String listName)
          Tests if all of the documents of the current page are in the working list of selected documents.
 boolean getIsCurrentSelectionInWorkingList(String docId, String listName)
          Tests if a document is in the working list of selected documents.
 boolean getIsCurrentWorkingListEmpty(String listName)
          Tests whether the current working list of selected documents is empty.
 boolean getIsSelectionNotEmpty()
           
 void toggleDocumentSelection(org.nuxeo.ecm.core.api.DocumentModel doc, String listName)
           
 void togglePageSelection(String providerName, String listName, org.nuxeo.ecm.platform.ui.web.model.SelectDataModel selectDataModel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkSelectActions

public BulkSelectActions()
Method Detail

deleteSelection

public void deleteSelection()
                     throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

deleteSelection

public void deleteSelection(List<org.nuxeo.ecm.core.api.DocumentModel> docsToDelete)
                     throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getIsCurrentSelectionInWorkingList

public boolean getIsCurrentSelectionInWorkingList(String docId,
                                                  String listName)
Tests if a document is in the working list of selected documents.

Parameters:
docId - The DocumentRef of the document
listName - The name of the working list of selected documents. If null, the default list will be used.
Returns:
boolean true if the document is in the list, false if it isn't.

getIsCurrentPageInWorkingList

public boolean getIsCurrentPageInWorkingList(String providerName,
                                             String listName)
Tests if all of the documents of the current page are in the working list of selected documents.

Parameters:
providerName - The provider name
listName - The name of the working list of selected documents. If null, the default list will be used.
Returns:
boolean true if the document is in the list, false if it isn't.

clearWorkingList

public void clearWorkingList(String listName)
Clears the working list of selected documents.

Parameters:
listName - The name of the working list of selected documents. If null, the default list will be used.

getIsCurrentWorkingListEmpty

public boolean getIsCurrentWorkingListEmpty(String listName)
Tests whether the current working list of selected documents is empty.

Parameters:
listName - The name of the working list of selected documents. If null, the default list will be used.
Returns:
true if empty, false otherwise

toggleDocumentSelection

public void toggleDocumentSelection(org.nuxeo.ecm.core.api.DocumentModel doc,
                                    String listName)

togglePageSelection

public void togglePageSelection(String providerName,
                                String listName,
                                org.nuxeo.ecm.platform.ui.web.model.SelectDataModel selectDataModel)

getCanDelete

public boolean getCanDelete()

checkDeletePermOnParents

public boolean checkDeletePermOnParents(List<org.nuxeo.ecm.core.api.DocumentModel> docsToDelete)

getIsSelectionNotEmpty

public boolean getIsSelectionNotEmpty()

exportSelection

public void exportSelection()
                     throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

exportSelection

public String exportSelection(List<org.nuxeo.ecm.core.api.DocumentModel> docsToExport)
                       throws org.nuxeo.ecm.core.api.ClientException
Throws:
org.nuxeo.ecm.core.api.ClientException

getActionsForSelection

public List<org.nuxeo.ecm.platform.actions.Action> getActionsForSelection()

getActionsForSelectionNoAjax

public List<org.nuxeo.ecm.platform.actions.Action> getActionsForSelectionNoAjax()

getHrefActionsForSelection

public List<org.nuxeo.ecm.platform.actions.Action> getHrefActionsForSelection()

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.