Class AccessAuditor

    • Constructor Detail

      • AccessAuditor

        public AccessAuditor()
    • Method Detail

      • setProperties

        public void setProperties​(java.util.Properties properties)
        Set the properties object holding filter configuration
        Since:
        3.2
      • 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
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Set the component used to start new transactions
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Set the component used to resolve namespaces.
      • setNodeInfoFactory

        public void setNodeInfoFactory​(NodeInfoFactory nodeInfoFactory)
        Set the component used to create NodeInfo objects.
      • 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
      • onMoveNode

        public void onMoveNode​(org.alfresco.service.cmr.repository.ChildAssociationRef fromChildAssocRef,
                               org.alfresco.service.cmr.repository.ChildAssociationRef toChildAssocRef)
        Description copied from interface: NodeServicePolicies.OnMoveNodePolicy
        Called when a node has been moved.
        Specified by:
        onMoveNode in interface NodeServicePolicies.OnMoveNodePolicy
        Parameters:
        fromChildAssocRef - the child association reference prior to the move
        toChildAssocRef - the child association reference after the move
      • onUpdateProperties

        public void onUpdateProperties​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                       java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> fromProperties,
                                       java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> toProperties)
        Description copied from interface: NodeServicePolicies.OnUpdatePropertiesPolicy
        Called after a node's properties have been changed.
        Specified by:
        onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
        Parameters:
        nodeRef - reference to the updated node
        fromProperties - the node's properties before the change
        toProperties - the node's properties after the change
      • onAddAspect

        public void onAddAspect​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                org.alfresco.service.namespace.QName aspect)
        Description copied from interface: NodeServicePolicies.OnAddAspectPolicy
        Called after an aspect has been added to a node
        Specified by:
        onAddAspect in interface NodeServicePolicies.OnAddAspectPolicy
        Parameters:
        nodeRef - the node to which the aspect was added
        aspect - the type of the aspect
      • onCreateVersion

        public void onCreateVersion​(org.alfresco.service.namespace.QName classRef,
                                    org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                    java.util.Map<java.lang.String,​java.io.Serializable> versionProperties,
                                    PolicyScope nodeDetails)
        Description copied from interface: VersionServicePolicies.OnCreateVersionPolicy
        Called during the creation of the version to determine what the versioning policy for a perticular type may be. WARNING: implementing behaviour for this policy effects the versioning behaviour of the type the behaviour is registered against.
        Specified by:
        onCreateVersion in interface VersionServicePolicies.OnCreateVersionPolicy
        Parameters:
        classRef - the class reference
        nodeRef - the versionable node reference
        versionProperties - the version properties
        nodeDetails - the details of the node to be versioned
      • onCopyComplete

        public void onCopyComplete​(org.alfresco.service.namespace.QName classRef,
                                   org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                                   org.alfresco.service.cmr.repository.NodeRef targetNodeRef,
                                   boolean copyToNewNode,
                                   java.util.Map<org.alfresco.service.cmr.repository.NodeRef,​org.alfresco.service.cmr.repository.NodeRef> copyMap)
        Specified by:
        onCopyComplete in interface CopyServicePolicies.OnCopyCompletePolicy
        Parameters:
        classRef - the type of the node that was copied
        sourceNodeRef - the original node
        targetNodeRef - the destination node
        copyMap - a map containing all the nodes that have been created during the copy