org.alfresco.repo.audit
Class AuditableAspect

java.lang.Object
  extended by org.alfresco.repo.audit.AuditableAspect

public class AuditableAspect
extends java.lang.Object

This aspect maintains the audit properties of the Auditable aspect.


Constructor Summary
AuditableAspect()
           
 
Method Summary
 void init()
          Initialise the Auditable Aspect
 void onAddAudit(NodeRef nodeRef, QName aspect)
          Maintain audit properties on addition of audit aspect to a node
 void onCopy(QName sourceClassRef, NodeRef sourceNodeRef, StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails)
          OnCopy behaviour implementation for the lock aspect.
 void onCreateAudit(ChildAssociationRef childAssocRef)
          Maintain audit properties on creation of Node
 void onUpdateAudit(NodeRef nodeRef)
          Maintain audit properties on update of node
 void setAuthenticationService(AuthenticationService authenticationService)
           
 void setNodeService(NodeService nodeService)
           
 void setPolicyComponent(PolicyComponent policyComponent)
           
 void setTenantService(TenantService tenantService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditableAspect

public AuditableAspect()
Method Detail

setNodeService

public void setNodeService(NodeService nodeService)
Parameters:
nodeService - the node service to use for audit property maintenance

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Parameters:
policyComponent - the policy component

setAuthenticationService

public void setAuthenticationService(AuthenticationService authenticationService)
Parameters:
authenticationService - the authentication service

setTenantService

public void setTenantService(TenantService tenantService)
Parameters:
tenantService - the tenant service

init

public void init()
Initialise the Auditable Aspect


onCreateAudit

public void onCreateAudit(ChildAssociationRef childAssocRef)
Maintain audit properties on creation of Node

Parameters:
childAssocRef - the association to the child created

onAddAudit

public void onAddAudit(NodeRef nodeRef,
                       QName aspect)
Maintain audit properties on addition of audit aspect to a node

Parameters:
nodeRef - the node to which auditing has been added
aspect - the aspect added

onUpdateAudit

public void onUpdateAudit(NodeRef nodeRef)
Maintain audit properties on update of node

Parameters:
nodeRef - the updated node

onCopy

public void onCopy(QName sourceClassRef,
                   NodeRef sourceNodeRef,
                   StoreRef destinationStoreRef,
                   boolean copyToNewNode,
                   PolicyScope copyDetails)
OnCopy behaviour implementation for the lock aspect.

Ensures that the propety values of the lock aspect are not copied onto the destination node.

See Also:
CopyServicePolicies.OnCopyNodePolicy.onCopyNode(QName, NodeRef, StoreRef, boolean, PolicyScope)


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.