Package org.alfresco.repo.node
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg -
Field Summary
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy
QNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks that all necessary properties have been set and binds with the policy component.voidbeforeDeleteNode(NodeRef nodeRef) Called before a node is deleted.voidsetAuditComponent(AuditComponent auditComponent) The component to create audit eventsvoidsetPolicyComponent(PolicyComponent policyComponent) Set the component used to bind to behaviour callbacks
-
Constructor Details
-
NodeAuditor
public NodeAuditor()
-
-
Method Details
-
setPolicyComponent
Set the component used to bind to behaviour callbacks -
setAuditComponent
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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
beforeDeleteNode
Description copied from interface:NodeServicePolicies.BeforeDeleteNodePolicyCalled before a node is deleted.- Specified by:
beforeDeleteNodein interfaceNodeServicePolicies.BeforeDeleteNodePolicy- Parameters:
nodeRef- the node reference
-