Interface TreeService
-
- All Known Implementing Classes:
DefaultTreeService
public interface TreeService
-
-
Method Summary
-
-
-
Method Detail
-
createRoot
String createRoot(Connection con, TreeNode root) throws TreeManagerException
- Throws:
TreeManagerException
-
updateNode
void updateNode(Connection con, TreeNode node) throws TreeManagerException
- Throws:
TreeManagerException
-
updateRoot
void updateRoot(Connection con, TreeNode root) throws TreeManagerException
- Throws:
TreeManagerException
-
deleteTree
void deleteTree(Connection con, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
deleteSubTree
void deleteSubTree(Connection con, TreeNodePK rootPK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getTree
List<TreeNode> getTree(Connection con, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getSubTree
List<TreeNode> getSubTree(Connection con, TreeNodePK rootPK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getNode
TreeNode getNode(Connection con, TreeNodePK rootPK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getNodesByName
List<TreeNode> getNodesByName(Connection con, String nodeName) throws TreeManagerException
- Throws:
TreeManagerException
-
insertFatherToNode
String insertFatherToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNode, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
moveSubTreeToNewFather
void moveSubTreeToNewFather(Connection con, TreeNodePK nodeToMovePK, TreeNodePK newFatherPK, String treeId, int orderNumber) throws TreeManagerException
- Throws:
TreeManagerException
-
createSonToNode
String createSonToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNode, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getSonsToNode
List<TreeNode> getSonsToNode(Connection con, TreeNodePK treeNodePK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
deleteNode
void deleteNode(Connection con, TreeNodePK treeNodePK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getFullPath
List<TreeNode> getFullPath(Connection con, TreeNodePK nodePK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getPath
String getPath(Connection con, TreeNodePK nodePK, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
getRoot
TreeNode getRoot(Connection con, String treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
indexTree
void indexTree(Connection con, int treeId) throws TreeManagerException
- Throws:
TreeManagerException
-
-