com.atlassian.confluence.pages
Class ContentTree
java.lang.Object
com.atlassian.confluence.pages.ContentTree
public class ContentTree
- extends Object
Stores a list of root ContentNodes. The purpose of this tree object is to store a hierarchy of pages (maybe a subset of the full tree) that a user can see after applying permission checks.
This saves us from having to redo permission checks every time we need to display or walk the page hiearchy.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentTree
public ContentTree()
ContentTree
public ContentTree(List rootContentNodes)
getRootNodes
public List getRootNodes()
isRootNode
public boolean isRootNode(ContentNode node)
filter
public void filter(List ids)
- Remove all nodes in this tree whose id does not match the list passed in
- Parameters:
ids - List<String> of ids of pages
addRootNode
public void addRootNode(ContentNode contentNode)
removeNode
public void removeNode(ContentNode contentNode)
getAllContentNodes
public List getAllContentNodes()
getPages
public List getPages()
- Returns:
- all the pages associated with the nodes in this tree
size
public int size()
- Returns:
- the number of nodes in this tree
Copyright © 2003-2011 Atlassian. All Rights Reserved.