Class NodeDeletion


  • @Service
    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).
    • Constructor Detail

      • NodeDeletion

        public NodeDeletion()
    • Method Detail

      • deleteNodes

        public 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.