public interface HierarchyService extends HierarchyNodeReader, HierarchyNodeWriter, HierarchyTokens, HierarchyPermissions
| Modifier and Type | Method and Description |
|---|---|
HierarchyNode |
createHierarchy(String hierarchyId)
Creates a new hierarchy with the unique id specified, exception if this id is already used
|
void |
destroyHierarchy(String hierarchyId)
Completely and permanantly destroy a hierarchy and all related nodes
|
HierarchyNode |
setHierarchyRootNode(String hierarchyId,
String nodeId)
Sets the root node of this hierarchy, note that although a hierarchy might have multiple
nodes at the top of the hierarchy, it always has a primary node which is considering the
"entry point" into the hierarchy
A node must have no parents to be set to the root node The first node added to a hierarchy becomes the root node by default |
getChildNodes, getNodeById, getNodesByIds, getParentNodes, getRootNodeaddChildRelation, addNode, addParentRelation, removeChildRelation, removeNode, removeParentRelation, saveNodeMetaData, setNodeDisabledgetNodesWithToken, getNodesWithTokensassignUserNodePerm, checkUserNodePerm, getNodesAndPermsForUser, getNodesForUserPerm, getPermsForUserNodes, getUserIdsForNodesPerm, getUsersAndPermsForNodes, removeUserNodePermHierarchyNode createHierarchy(String hierarchyId)
hierarchyId - a unique id which defines the hierarchyHierarchyNode setHierarchyRootNode(String hierarchyId, String nodeId)
hierarchyId - a unique id which defines the hierarchynodeId - a unique id for a hierarchy nodevoid destroyHierarchy(String hierarchyId)
hierarchyId - a unique id which defines the hierarchyCopyright © 2003–2021 Sakai Project. All rights reserved.