public class CSPNode extends Object implements INode, Serializable
CSPContent
in CSP are logically stored in tree-hierarchy.This class is a
wrapper of the tree node.Constructor and Description |
---|
CSPNode(int id,
String name,
CSPNode parent) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(CSPNode child) |
CSPAccessRights |
getAccessRights() |
List |
getChildren()
List of
INode children, in order. |
String |
getContentDefinition()
Each Node has its own Content Definition that keeps information about where
CSPContent is stored and its meta-data. |
Object |
getData()
Row data.
|
String |
getFullPath()
Returns the fullPath for this
CSPNode separated by '/'. |
boolean |
getHasChildren() |
String |
getId()
Row id.
|
String |
getName() |
CSPNode |
getParent()
Node parent, or null for root.
|
boolean |
hasChildren() |
void |
setAccessRights(CSPAccessRights accessRights) |
void |
setContentDefinition(String contentDefinition) |
void |
setId(String id) |
void |
setName(String name) |
void |
setParent(CSPNode parent) |
String |
toString() |
public void setParent(CSPNode parent)
public CSPNode getParent()
INode
public void setName(String name)
public void setAccessRights(CSPAccessRights accessRights)
public String getName()
public void addChild(CSPNode child)
public List getChildren()
INode
INode
children, in order.
Empty list (non-null) for leaf nodes.getChildren
in interface INode
public boolean hasChildren()
public boolean getHasChildren()
public void setId(String id)
public void setContentDefinition(String contentDefinition)
public String getContentDefinition()
CSPContent
is stored and its meta-data.public CSPAccessRights getAccessRights()
public String getFullPath()
CSPNode
separated by '/'.
Example:
If the following hierarchy is present:
CSPNode with name = rootNode CSPNode with name = node1 CSPNode with name = node21The call to
CSPNode.getFullPath()
will return - /rootNode/node1/node21CSPNode
separated by '/'