public abstract class AbstractTreeNode extends Object implements TreeNode
Modifier and Type | Field and Description |
---|---|
protected javax.inject.Provider<org.xwiki.component.manager.ComponentManager> |
contextComponentManagerProvider |
protected org.slf4j.Logger |
logger |
PROPERTY_EXCLUSIONS, PROPERTY_FILTERS, PROPERTY_ORDER_BY
Constructor and Description |
---|
AbstractTreeNode() |
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.
|
protected Set<String> |
getExclusions() |
protected Set<String> |
getExclusions(String parentNodeId) |
protected String |
getOrderBy() |
String |
getParent(String nodeId)
Retrieve the parent of the specified node.
|
Map<String,Object> |
getProperties()
Retrieve the properties that can be used to configure the tree node.
|
protected <E> List<E> |
subList(List<E> list,
int offset,
int limit) |
@Inject protected org.slf4j.Logger logger
@Inject @Named(value="context") protected javax.inject.Provider<org.xwiki.component.manager.ComponentManager> contextComponentManagerProvider
public List<String> getChildren(String nodeId, int offset, int limit)
TreeNode
getChildren
in interface TreeNode
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
nodeId
- the node idpublic String getParent(String nodeId)
TreeNode
public Map<String,Object> getProperties()
TreeNode
getProperties
in interface TreeNode
protected String getOrderBy()
Copyright © 2004–2021 XWiki. All rights reserved.