com.stratelia.webactiv.util.node.control
Class NodeDeletion
java.lang.Object
com.stratelia.webactiv.util.node.control.NodeDeletion
public class NodeDeletion
- extends Object
Process of deleting a node. As the deletion of a given node is performed by different parts of
code in the Silverpeas Node component and each of them in a different context (id est in a single
or in a shared transaction), this class is a way to set in a single place the code related to the
node deletion whatever the context in which it occurs. It is intended to by used both by the EJB
context and by the Silverpeas instanciator context (legacy code that should be later cleaned up).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeDeletion
public NodeDeletion()
deleteNodes
public static void deleteNodes(NodePK pk,
Connection inConnection,
AnonymousMethodOnNode afterDeletion)
- Deletes the specified node and all of its children within the specified data source connection.
- Parameters:
pk
- the primary key of the father node to delete.inConnection
- the connection to use in the deletion.afterDeletion
- the method to invoke after the deletion of a node.
Copyright © 2016 Silverpeas. All Rights Reserved.