com.stratelia.silverpeas.treeManager.control
Interface TreeBm

All Known Implementing Classes:
TreeBmImpl

public interface TreeBm


Method Summary
 String createRoot(Connection con, TreeNode root)
           
 String createSonToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNode, String treeId)
           
 void deleteNode(Connection con, TreeNodePK treeNodePK, String treeId)
           
 void deleteSubTree(Connection con, TreeNodePK rootPK, String treeId)
           
 void deleteTree(Connection con, String treeId)
           
 List<TreeNode> getFullPath(Connection con, TreeNodePK nodePK, String treeId)
           
 TreeNode getNode(Connection con, TreeNodePK rootPK, String treeId)
           
 List<TreeNode> getNodesByName(Connection con, String nodeName)
           
 String getPath(Connection con, TreeNodePK nodePK, String treeId)
           
 TreeNode getRoot(Connection con, String treeId)
           
 List<TreeNode> getSonsToNode(Connection con, TreeNodePK treeNodePK, String treeId)
           
 List<TreeNode> getSubTree(Connection con, TreeNodePK rootPK, String treeId)
           
 List<TreeNode> getTree(Connection con, String treeId)
           
 List<TreeNode> getTree(Connection con, String treeId, AxisFilter filter)
           
 void indexTree(Connection con, int treeId)
           
 String insertFatherToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNode, String treeId)
           
 void moveSubTreeToNewFather(Connection con, TreeNodePK nodeToMovePK, TreeNodePK newFatherPK, String treeId, int orderNumber)
           
 void updateNode(Connection con, TreeNode node)
           
 void updateRoot(Connection con, TreeNode root)
           
 

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

getTree

List<TreeNode> getTree(Connection con,
                       String treeId,
                       AxisFilter filter)
                       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


Copyright © 2016 Silverpeas. All Rights Reserved.