|
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 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |