Class Overview
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 repeat
permission checks every time we need to display or walk the page hierarchy.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
ContentTree
(ContentNode rootNode)
Create a ContentTree with only a single root nodel
Parameters
rootNode
| the only root node in this content tree
|
Public Methods
public
boolean
equals
(Object obj)
public
void
filter
(List<String> ids)
Remove all nodes in this tree whose id does not match the list passed in
Parameters
ids
| List of String representations of the ids of pages
|
public
Page
getPage
(long pageId)
Parameters
pageId
| the id of the required page |
Returns
- the Page from the ContentTree or null if there is no page with that id in the ContentTree
public
List<Page>
getPages
()
Returns
- all the pages associated with the nodes in this tree
public
int
size
()
Returns
- the number of nodes in this tree