Class NodeAuditor

java.lang.Object
org.alfresco.repo.node.NodeAuditor
All Implemented Interfaces:
NodeServicePolicies.BeforeDeleteNodePolicy, ClassPolicy, Policy, org.springframework.beans.factory.InitializingBean

public class NodeAuditor extends Object implements org.springframework.beans.factory.InitializingBean, NodeServicePolicies.BeforeDeleteNodePolicy
A listener that ensures that an event is audited for every deleted node in a tree of nodes, not just the top one captured by AuditMethodInterceptor! The values passed to the audit component are:
 /alfresco-node
    /beforeDeleteNode
       /node=<nodeRef>
 
 
Author:
dward
  • Constructor Details

    • NodeAuditor

      public NodeAuditor()
  • Method Details

    • setPolicyComponent

      public void setPolicyComponent(PolicyComponent policyComponent)
      Set the component used to bind to behaviour callbacks
    • setAuditComponent

      public void setAuditComponent(AuditComponent auditComponent)
      The component to create audit events
    • afterPropertiesSet

      public void afterPropertiesSet()
      Checks that all necessary properties have been set and binds with the policy component.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • beforeDeleteNode

      public void beforeDeleteNode(NodeRef nodeRef)
      Description copied from interface: NodeServicePolicies.BeforeDeleteNodePolicy
      Called before a node is deleted.
      Specified by:
      beforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicy
      Parameters:
      nodeRef - the node reference