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 DocumentTreeNode
public DocumentModel getDocument()
DocumentTreeNode
getDocument
in interface DocumentTreeNode
public String getId()
getId
in interface DocumentTreeNode
public boolean isSelected(DocumentModel currentDocument)
DocumentTreeNode
isSelected
in interface DocumentTreeNode
public String getPath()
getPath
in interface DocumentTreeNode
public void resetChildren()
resetChildren
in interface DocumentTreeNode
public void fetchChildren()
fetchChildren
in interface DocumentTreeNode
public QuotaStats getQuotaStats()
DocumentTreeNode
QuotaStats
adapter for the underlying document of this DocumentTreeNode
.getQuotaStats
in interface DocumentTreeNode
public boolean isExpanded()
isExpanded
in interface DocumentTreeNode
public void setExpanded(boolean expanded)
setExpanded
in interface DocumentTreeNode
Copyright © 2015 Nuxeo SA. All rights reserved.