Package org.exoplatform.wiki.tree
Class TreeNode
java.lang.Object
org.exoplatform.wiki.tree.TreeNode
- Direct Known Subclasses:
PageTreeNode,RootTreeNode,SpaceTreeNode,WikiHomeTreeNode,WikiTreeNode
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringThe current path that's used in move pagestatic final Stringprotected booleanprotected Stringprotected booleanprotected booleanprotected Stringprotected TreeNodeTypeprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChildren(HashMap<String, Object> context, String userId) booleangetId()getName()protected intgetNumberOfChildren(HashMap<String, Object> context, int size) getPath()inthashCode()booleanbooleanbooleanvoidpushDescendants(HashMap<String, Object> context, String userId) voidsetChildren(List<TreeNode> children) voidsetHasChild(boolean hasChild) voidvoidvoidsetNodeType(TreeNodeType nodeType) voidsetRetricted(boolean isRetricted) voidsetSelected(boolean isSelected)
-
Field Details
-
name
-
id
-
path
-
isRetricted
protected boolean isRetricted -
hasChild
protected boolean hasChild -
nodeType
-
children
-
STACK_PARAMS
- See Also:
-
PATH
- See Also:
-
WITH_DRAFTS
- See Also:
-
SELECTED_PAGE
- See Also:
-
CURRENT_PATH
The current path that's used in move page- See Also:
-
CURRENT_PAGE
- See Also:
-
CAN_EDIT
- See Also:
-
SHOW_EXCERPT
- See Also:
-
SHOW_DESCENDANT
- See Also:
-
CHILDREN_NUMBER
- See Also:
-
DEPTH
- See Also:
-
isSelected
protected boolean isSelected
-
-
Constructor Details
-
TreeNode
public TreeNode() -
TreeNode
-
-
Method Details
-
getId
-
setId
-
getNodeType
-
setNodeType
-
isHasChild
public boolean isHasChild() -
setHasChild
public void setHasChild(boolean hasChild) -
getChildren
-
getName
-
setName
-
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean isSelected) -
setChildren
-
getPath
-
isRetricted
public boolean isRetricted() -
setRetricted
public void setRetricted(boolean isRetricted) -
hashCode
public int hashCode() -
equals
-
pushDescendants
- Throws:
Exception
-
addChildren
- Throws:
Exception
-
getNumberOfChildren
-
buildPath
-