public interface HierarchyNodeWriter
| Modifier and Type | Method and Description |
|---|---|
HierarchyNode |
addChildRelation(String nodeId,
String childNodeId)
Add children to a node (creates the association),
only adds direct children (directly connected to this node),
others are implicitly defined,
this will not create loops in the hierarchy |
HierarchyNode |
addNode(String hierarchyId,
String parentNodeId)
Add a new node to a hierarchy
|
HierarchyNode |
addParentRelation(String nodeId,
String parentNodeId)
Add parents to a node (creates the association),
only adds direct parents (directly connected to this node),
others are implicitly defined,
this will not create loops in the hierarchy |
HierarchyNode |
removeChildRelation(String nodeId,
String childNodeId)
Remove a child relation from a node,
this will not be allowed to orphan a node
|
HierarchyNode |
removeNode(String nodeId)
Remove a node from the hierarchy if it is possible,
nodes can only be removed if they have no children associations,
root nodes can never be removed,
exception occurs if these rules are violated
|
HierarchyNode |
removeParentRelation(String nodeId,
String parentNodeId)
Remove a parent relation from a node,
this will not be allowed to orphan a node,
only extra parents may be removed,
the last parent for a node cannot currently be removed
|
HierarchyNode |
saveNodeMetaData(String nodeId,
String title,
String description,
String permKey)
Save meta data on a node, this is optional and nodes do not need meta data associated,
if the params are nulls then the values remain unchanged, if they are empty string
then the values are wiped out
|
HierarchyNode |
setNodeDisabled(String nodeId,
Boolean isDisabled)
Enables/disables the node.
|
HierarchyNode addNode(String hierarchyId, String parentNodeId)
hierarchyId - a unique id which defines the hierarchyparentNodeId - the unique id for the parent of this node, can be null if this is the root or a top level nodeHierarchyNode removeNode(String nodeId)
nodeId - a unique id for a hierarchy nodeHierarchyNode addParentRelation(String nodeId, String parentNodeId)
nodeId - a unique id for a hierarchy nodeparentNodeId - a unique id for a hierarchy node which will be a parent of this nodeHierarchyNode addChildRelation(String nodeId, String childNodeId)
nodeId - a unique id for a hierarchy nodechildNodeId - a unique id for a hierarchy node which will be a child of this nodeHierarchyNode removeParentRelation(String nodeId, String parentNodeId)
nodeId - a unique id for a hierarchy nodeparentNodeId - a unique id for a hierarchy node which is a parent of this nodeHierarchyNode removeChildRelation(String nodeId, String childNodeId)
nodeId - a unique id for a hierarchy nodechildNodeId - a unique id for a hierarchy node which is a child of this nodeHierarchyNode saveNodeMetaData(String nodeId, String title, String description, String permKey)
nodeId - a unique id for a hierarchy nodetitle - the title of the node (optional)description - a description for this node (optional)permKey - the permission token key associated with this node (optional)HierarchyNode setNodeDisabled(String nodeId, Boolean isDisabled)
nodeId - a unique id for a hierarchy nodeisDisabled - Boolean representing the state the node will be set toCopyright © 2003–2021 Sakai Project. All rights reserved.