public abstract class AbstractCompositeTree extends AbstractTree
Modifier and Type | Field and Description |
---|---|
protected Map<String,TreeNode> |
treeNodeByNodeType |
contextComponentManagerProvider, logger
PROPERTY_ROOT
PROPERTY_EXCLUSIONS, PROPERTY_FILTERS, PROPERTY_ORDER_BY
Constructor and Description |
---|
AbstractCompositeTree() |
Modifier and Type | Method and Description |
---|---|
int |
getChildCount(String nodeId)
Retrieve the number of children of the specified node.
|
List<String> |
getChildren(String nodeId,
int offset,
int limit)
Retrieve the children of the specified node.
|
String |
getParent(String nodeId)
Retrieve the parent of the specified node.
|
protected TreeNode |
getTreeNode(String nodeId) |
getPath
getExclusions, getExclusions, getOrderBy, getProperties, subList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperties
public List<String> getChildren(String nodeId, int offset, int limit)
TreeNode
getChildren
in interface TreeNode
getChildren
in class AbstractTreeNode
nodeId
- the node idoffset
- the offset within the list of child nodeslimit
- the number of child nodes to returnpublic int getChildCount(String nodeId)
TreeNode
getChildCount
in interface TreeNode
getChildCount
in class AbstractTreeNode
nodeId
- the node idpublic String getParent(String nodeId)
TreeNode
getParent
in interface TreeNode
getParent
in class AbstractTreeNode
nodeId
- the node idCopyright © 2004–2021 XWiki. All rights reserved.