com.stratelia.silverpeas.treeManager.control
Class TreeBmImpl

java.lang.Object
  extended by com.stratelia.silverpeas.treeManager.control.TreeBmImpl
All Implemented Interfaces:
TreeBm

public class TreeBmImpl
extends Object
implements TreeBm


Constructor Summary
TreeBmImpl()
           
 
Method Summary
 String createRoot(Connection con, TreeNode root)
           
 String createSonToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNode, String treeId)
           
 void deleteNode(Connection con, TreeNodePK nodePK, String treeId)
           
 void deleteSubTree(Connection con, TreeNodePK rootPK, String treeId)
           
 void deleteTree(Connection con, String treeId)
           
 SilverpeasBeanDAO getDAO()
           
 List<TreeNode> getFullPath(Connection con, TreeNodePK nodePK, String treeId)
           
 TreeNode getNode(Connection con, TreeNodePK nodePK, 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 refNodePK, 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 node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBmImpl

public TreeBmImpl()
Method Detail

getRoot

public TreeNode getRoot(Connection con,
                        String treeId)
                 throws TreeManagerException
Specified by:
getRoot in interface TreeBm
Throws:
TreeManagerException

createRoot

public String createRoot(Connection con,
                         TreeNode root)
                  throws TreeManagerException
Specified by:
createRoot in interface TreeBm
Throws:
TreeManagerException

updateNode

public void updateNode(Connection con,
                       TreeNode node)
                throws TreeManagerException
Specified by:
updateNode in interface TreeBm
Throws:
TreeManagerException

updateRoot

public void updateRoot(Connection con,
                       TreeNode node)
                throws TreeManagerException
Specified by:
updateRoot in interface TreeBm
Throws:
TreeManagerException

deleteSubTree

public void deleteSubTree(Connection con,
                          TreeNodePK rootPK,
                          String treeId)
                   throws TreeManagerException
Specified by:
deleteSubTree in interface TreeBm
Throws:
TreeManagerException

deleteTree

public void deleteTree(Connection con,
                       String treeId)
                throws TreeManagerException
Specified by:
deleteTree in interface TreeBm
Throws:
TreeManagerException

getTree

public List<TreeNode> getTree(Connection con,
                              String treeId)
                       throws TreeManagerException
Specified by:
getTree in interface TreeBm
Throws:
TreeManagerException

getTree

public List<TreeNode> getTree(Connection con,
                              String treeId,
                              AxisFilter filter)
                       throws TreeManagerException
Specified by:
getTree in interface TreeBm
Throws:
TreeManagerException

getSubTree

public List<TreeNode> getSubTree(Connection con,
                                 TreeNodePK rootPK,
                                 String treeId)
                          throws TreeManagerException
Specified by:
getSubTree in interface TreeBm
Throws:
TreeManagerException

getNode

public TreeNode getNode(Connection con,
                        TreeNodePK nodePK,
                        String treeId)
                 throws TreeManagerException
Specified by:
getNode in interface TreeBm
Throws:
TreeManagerException

getNodesByName

public List<TreeNode> getNodesByName(Connection con,
                                     String nodeName)
                              throws TreeManagerException
Specified by:
getNodesByName in interface TreeBm
Throws:
TreeManagerException

insertFatherToNode

public String insertFatherToNode(Connection con,
                                 TreeNode nodeToInsert,
                                 TreeNodePK refNodePK,
                                 String treeId)
                          throws TreeManagerException
Specified by:
insertFatherToNode in interface TreeBm
Throws:
TreeManagerException

moveSubTreeToNewFather

public void moveSubTreeToNewFather(Connection con,
                                   TreeNodePK nodeToMovePK,
                                   TreeNodePK newFatherPK,
                                   String treeId,
                                   int orderNumber)
                            throws TreeManagerException
Specified by:
moveSubTreeToNewFather in interface TreeBm
Throws:
TreeManagerException

createSonToNode

public String createSonToNode(Connection con,
                              TreeNode nodeToInsert,
                              TreeNodePK refNode,
                              String treeId)
                       throws TreeManagerException
Specified by:
createSonToNode in interface TreeBm
Throws:
TreeManagerException

getSonsToNode

public List<TreeNode> getSonsToNode(Connection con,
                                    TreeNodePK treeNodePK,
                                    String treeId)
                             throws TreeManagerException
Specified by:
getSonsToNode in interface TreeBm
Throws:
TreeManagerException

deleteNode

public void deleteNode(Connection con,
                       TreeNodePK nodePK,
                       String treeId)
                throws TreeManagerException
Specified by:
deleteNode in interface TreeBm
Throws:
TreeManagerException

getDAO

public SilverpeasBeanDAO getDAO()
                         throws TreeManagerException
Throws:
TreeManagerException

getFullPath

public List<TreeNode> getFullPath(Connection con,
                                  TreeNodePK nodePK,
                                  String treeId)
                           throws TreeManagerException
Specified by:
getFullPath in interface TreeBm
Throws:
TreeManagerException

getPath

public String getPath(Connection con,
                      TreeNodePK nodePK,
                      String treeId)
               throws TreeManagerException
Specified by:
getPath in interface TreeBm
Throws:
TreeManagerException

indexTree

public void indexTree(Connection con,
                      int treeId)
               throws TreeManagerException
Specified by:
indexTree in interface TreeBm
Throws:
TreeManagerException


Copyright © 2016 Silverpeas. All Rights Reserved.