public class DocumentTreeNodeImpl extends Object implements DocumentTreeNode
Children are lazy-loaded from backend only when needed.
| Constructor and Description |
|---|
DocumentTreeNodeImpl(DocumentModel document,
Filter filter,
Filter leafFilter,
Sorter sorter,
String pageProviderName) |
DocumentTreeNodeImpl(DocumentModel document,
Filter filter,
Sorter sorter) |
DocumentTreeNodeImpl(String sessionId,
DocumentModel document,
Filter filter,
Filter leafFilter,
Sorter sorter,
String pageProviderName)
Deprecated.
since 5.9.1, sessionId not used.
|
DocumentTreeNodeImpl(String sessionId,
DocumentModel document,
Filter filter,
Sorter sorter)
Deprecated.
since 5.9.1, sessionId not used.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fetchChildren() |
List<DocumentTreeNode> |
getChildren() |
DocumentModel |
getDocument()
Returns the document corresponding to this node
|
String |
getId() |
String |
getPath() |
QuotaStats |
getQuotaStats()
Returns the
QuotaStats adapter for the underlying document of this DocumentTreeNode. |
boolean |
isExpanded() |
boolean |
isSelected(DocumentModel currentDocument)
Returns true if node represents current document, or if it's the direct parent of a non-folderish document that
is not be represented in the tree.
|
void |
resetChildren()
Resets children map
|
void |
setExpanded(boolean expanded) |
public DocumentTreeNodeImpl(DocumentModel document, Filter filter, Filter leafFilter, Sorter sorter, String pageProviderName)
@Deprecated public DocumentTreeNodeImpl(String sessionId, DocumentModel document, Filter filter, Filter leafFilter, Sorter sorter, String pageProviderName)
@Deprecated public DocumentTreeNodeImpl(String sessionId, DocumentModel document, Filter filter, Sorter sorter)
public DocumentTreeNodeImpl(DocumentModel document, Filter filter, Sorter sorter)
public List<DocumentTreeNode> getChildren()
getChildren in interface DocumentTreeNodepublic DocumentModel getDocument()
DocumentTreeNodegetDocument in interface DocumentTreeNodepublic String getId()
getId in interface DocumentTreeNodepublic boolean isSelected(DocumentModel currentDocument)
DocumentTreeNodeisSelected in interface DocumentTreeNodepublic String getPath()
getPath in interface DocumentTreeNodepublic void resetChildren()
resetChildren in interface DocumentTreeNodepublic void fetchChildren()
fetchChildren in interface DocumentTreeNodepublic QuotaStats getQuotaStats()
DocumentTreeNodeQuotaStats adapter for the underlying document of this DocumentTreeNode.getQuotaStats in interface DocumentTreeNodepublic boolean isExpanded()
isExpanded in interface DocumentTreeNodepublic void setExpanded(boolean expanded)
setExpanded in interface DocumentTreeNodeCopyright © 2015 Nuxeo SA. All rights reserved.