|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.ui.web.util.DocumentsListsUtils
public final class DocumentsListsUtils
Simple utility class to provide DocumentList related functions.
Method Summary | |
---|---|
static java.util.List<DocumentRef> |
getDocRefs(java.util.List<DocumentModel> documentsList)
Returns list of DocumentRef corresponding to the list of documents. |
static java.util.List<DocumentRef> |
getParentRefFromDocumentList(java.util.List<DocumentModel> documentList)
Returns the list of parents documentRef. |
static java.util.List<java.lang.String> |
getTypesInList(java.util.List<DocumentModel> documentsList)
Returns list of the document types contained in the list of document. |
static boolean |
isDocumentInList(DocumentModel doc,
java.util.List<DocumentModel> list)
|
static boolean |
removeDocumentFromList(java.util.List<DocumentModel> documentList,
DocumentModel documentToRemove)
Removes one document from a list. |
static void |
removeDocumentsFromList(java.util.List<DocumentModel> documentList,
java.util.List<DocumentModel> documentsToRemove)
Removes some documents from a list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<java.lang.String> getTypesInList(java.util.List<DocumentModel> documentsList)
public static java.util.List<DocumentRef> getDocRefs(java.util.List<DocumentModel> documentsList)
public static boolean removeDocumentFromList(java.util.List<DocumentModel> documentList, DocumentModel documentToRemove)
Removal is based on DocumentRef.
true
if the given list contains specified document and it has been removedpublic static void removeDocumentsFromList(java.util.List<DocumentModel> documentList, java.util.List<DocumentModel> documentsToRemove)
Removal is based on DocumentRef.
public static java.util.List<DocumentRef> getParentRefFromDocumentList(java.util.List<DocumentModel> documentList)
public static boolean isDocumentInList(DocumentModel doc, java.util.List<DocumentModel> list)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |