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 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
protected CoreSession getCoreSession()
protected List<DocumentModel> filterAndSort(List<DocumentModel> docs, boolean doSort)
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.