Class DefaultTreeService
- java.lang.Object
-
- org.silverpeas.core.pdc.tree.service.DefaultTreeService
-
- All Implemented Interfaces:
TreeService
@Service @Singleton public class DefaultTreeService extends Object implements TreeService
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultTreeService()
-
Method Summary
-
-
-
Method Detail
-
getRoot
public TreeNode getRoot(Connection con, String treeId) throws TreeManagerException
- Specified by:
getRoot
in interfaceTreeService
- Throws:
TreeManagerException
-
createRoot
public String createRoot(Connection con, TreeNode root) throws TreeManagerException
- Specified by:
createRoot
in interfaceTreeService
- Throws:
TreeManagerException
-
updateNode
public void updateNode(Connection con, TreeNode node) throws TreeManagerException
- Specified by:
updateNode
in interfaceTreeService
- Throws:
TreeManagerException
-
updateRoot
public void updateRoot(Connection con, TreeNode node) throws TreeManagerException
- Specified by:
updateRoot
in interfaceTreeService
- Throws:
TreeManagerException
-
deleteSubTree
public void deleteSubTree(Connection con, TreeNodePK rootPK, String treeId) throws TreeManagerException
- Specified by:
deleteSubTree
in interfaceTreeService
- Throws:
TreeManagerException
-
deleteTree
public void deleteTree(Connection con, String treeId) throws TreeManagerException
- Specified by:
deleteTree
in interfaceTreeService
- Throws:
TreeManagerException
-
getTree
public List<TreeNode> getTree(Connection con, String treeId) throws TreeManagerException
- Specified by:
getTree
in interfaceTreeService
- Throws:
TreeManagerException
-
getSubTree
public List<TreeNode> getSubTree(Connection con, TreeNodePK rootPK, String treeId) throws TreeManagerException
- Specified by:
getSubTree
in interfaceTreeService
- Throws:
TreeManagerException
-
getNode
public TreeNode getNode(Connection con, TreeNodePK nodePK, String treeId) throws TreeManagerException
- Specified by:
getNode
in interfaceTreeService
- Throws:
TreeManagerException
-
getNodesByName
public List<TreeNode> getNodesByName(Connection con, String nodeName) throws TreeManagerException
- Specified by:
getNodesByName
in interfaceTreeService
- Throws:
TreeManagerException
-
insertFatherToNode
public String insertFatherToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNodePK, String treeId) throws TreeManagerException
- Specified by:
insertFatherToNode
in interfaceTreeService
- Throws:
TreeManagerException
-
moveSubTreeToNewFather
public void moveSubTreeToNewFather(Connection con, TreeNodePK nodeToMovePK, TreeNodePK newFatherPK, String treeId, int orderNumber) throws TreeManagerException
- Specified by:
moveSubTreeToNewFather
in interfaceTreeService
- Throws:
TreeManagerException
-
createSonToNode
public String createSonToNode(Connection con, TreeNode nodeToInsert, TreeNodePK refNode, String treeId) throws TreeManagerException
- Specified by:
createSonToNode
in interfaceTreeService
- Throws:
TreeManagerException
-
getSonsToNode
public List<TreeNode> getSonsToNode(Connection con, TreeNodePK treeNodePK, String treeId) throws TreeManagerException
- Specified by:
getSonsToNode
in interfaceTreeService
- Throws:
TreeManagerException
-
deleteNode
public void deleteNode(Connection con, TreeNodePK nodePK, String treeId) throws TreeManagerException
- Specified by:
deleteNode
in interfaceTreeService
- Throws:
TreeManagerException
-
getDAO
public SilverpeasBeanDAO<TreeNodePersistence> getDAO() throws TreeManagerException
- Throws:
TreeManagerException
-
getFullPath
public List<TreeNode> getFullPath(Connection con, TreeNodePK nodePK, String treeId) throws TreeManagerException
- Specified by:
getFullPath
in interfaceTreeService
- Throws:
TreeManagerException
-
getPath
public String getPath(Connection con, TreeNodePK nodePK, String treeId) throws TreeManagerException
- Specified by:
getPath
in interfaceTreeService
- Throws:
TreeManagerException
-
indexTree
public void indexTree(Connection con, int treeId) throws TreeManagerException
- Specified by:
indexTree
in interfaceTreeService
- Throws:
TreeManagerException
-
-