public class DocumentTreeNodeImpl extends Object implements DocumentTreeNode
Children are lazy-loaded from backend only when needed.
| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,DocumentTreeNodeImpl> |
children |
protected DocumentModel |
document |
protected Boolean |
expanded |
protected Filter |
filter |
protected Filter |
leafFilter |
protected ContentView |
orderableContentView |
protected String |
pageProviderName |
protected Sorter |
sorter |
| 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() |
protected List<DocumentModel> |
filterAndSort(List<DocumentModel> docs,
boolean doSort) |
List<DocumentTreeNode> |
getChildren() |
protected CoreSession |
getCoreSession() |
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) |
protected final DocumentModel document
protected final Filter leafFilter
protected final String pageProviderName
protected ContentView orderableContentView
protected Map<Object,DocumentTreeNodeImpl> children
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 DocumentTreeNodeprotected CoreSession getCoreSession()
protected List<DocumentModel> filterAndSort(List<DocumentModel> docs, boolean doSort)
public 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 © 2016 Nuxeo SA. All rights reserved.