Class NodeDAO.NodeView

java.lang.Object
org.alfresco.repo.domain.node.NodeDAO.NodeView
Enclosing interface:
NodeDAO

public static class NodeDAO.NodeView extends Object
An object that contains data giving a 'view' of the node to be deleted. It is used for ensuring that node cleanup is only done for node-related data that has been handled by the NodeService's policy and related code.

If new data is introduced to a node that has not been covered by the NodeService, then a subsequent node deletion will fail.

This class is NOT thread-safe and should only be used within a transaction. Client code should use the getters to get the ID sets and add any IDs that have been visited during policy triggering.

Since:
4.1.1
Author:
Derek Hulley
  • Constructor Details

    • NodeView

      public NodeView()
  • Method Details

    • getView

      public static NodeDAO.NodeView getView(Long nodeId)
      Finds an instance to manage the views for a specific node in this transaction
    • getPrimaryParentAssocIds

      public Set<Long> getPrimaryParentAssocIds()
    • getSecondaryParentAssocIds

      public Set<Long> getSecondaryParentAssocIds()
    • getPrimaryChildAssocIds

      public Set<Long> getPrimaryChildAssocIds()
    • getSecondaryChildAssocIds

      public Set<Long> getSecondaryChildAssocIds()
    • getTargetAssocIds

      public Set<Long> getTargetAssocIds()
    • getSourceAssocIds

      public Set<Long> getSourceAssocIds()