public final class DocumentsListsUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<DocumentRef> |
getDocRefs(List<DocumentModel> documentsList)
Returns list of DocumentRef corresponding to the list of documents.
|
static List<DocumentRef> |
getParentRefFromDocumentList(List<DocumentModel> documentList)
Returns the list of parents documentRef.
|
static List<String> |
getTypesInList(List<DocumentModel> documentsList)
Returns list of the document types contained in the list of document.
|
static boolean |
isDocumentInList(DocumentModel doc,
List<DocumentModel> list) |
static boolean |
removeDocumentFromList(List<DocumentModel> documentList,
DocumentModel documentToRemove)
Removes one document from a list.
|
static void |
removeDocumentsFromList(List<DocumentModel> documentList,
List<DocumentModel> documentsToRemove)
Removes some documents from a list.
|
public static List<String> getTypesInList(List<DocumentModel> documentsList)
public static List<DocumentRef> getDocRefs(List<DocumentModel> documentsList)
public static boolean removeDocumentFromList(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(List<DocumentModel> documentList, List<DocumentModel> documentsToRemove)
Removal is based on DocumentRef.
public static List<DocumentRef> getParentRefFromDocumentList(List<DocumentModel> documentList)
public static boolean isDocumentInList(DocumentModel doc, List<DocumentModel> list)
Copyright © 2011 Nuxeo SA. All Rights Reserved.