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 java.lang.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 byAuditMethodInterceptor! 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 Constructor Description NodeAuditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Checks that all necessary properties have been set and binds with the policy component.voidbeforeDeleteNode(org.alfresco.service.cmr.repository.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
-
-
-
Method Detail
-
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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
beforeDeleteNode
public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Description copied from interface:NodeServicePolicies.BeforeDeleteNodePolicyCalled before a node is deleted.- Specified by:
beforeDeleteNodein interfaceNodeServicePolicies.BeforeDeleteNodePolicy- Parameters:
nodeRef- the node reference
-
-