public class NodeAuditor extends Object implements org.springframework.beans.factory.InitializingBean, NodeServicePolicies.BeforeDeleteNodePolicy
AuditMethodInterceptor
!
The values passed to the audit component are:
/alfresco-node /beforeDeleteNode /node=<nodeRef>
Policy.Arg
QNAME
Constructor and Description |
---|
NodeAuditor() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Checks that all necessary properties have been set and binds with the policy component.
|
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Called before a node is deleted.
|
void |
setAuditComponent(AuditComponent auditComponent)
The component to create audit events
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the component used to bind to behaviour callbacks
|
public void setPolicyComponent(PolicyComponent policyComponent)
public void setAuditComponent(AuditComponent auditComponent)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicy
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
nodeRef
- the node referenceCopyright © 2005–2017 Alfresco Software. All rights reserved.