Class EventGenerator

    • Constructor Detail

      • EventGenerator

        public EventGenerator()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
      • setDescriptorService

        public void setDescriptorService​(DescriptorService descriptorService)
      • setEventFilterRegistry

        public void setEventFilterRegistry​(EventFilterRegistry eventFilterRegistry)
      • setEvent2MessageProducer

        public void setEvent2MessageProducer​(Event2MessageProducer event2MessageProducer)
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
      • setPersonService

        public void setPersonService​(PersonService personService)
      • setNodeResourceHelper

        public void setNodeResourceHelper​(NodeResourceHelper nodeResourceHelper)
      • onMoveNode

        public void onMoveNode​(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
                               org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
        Description copied from interface: NodeServicePolicies.OnMoveNodePolicy
        Called when a node has been moved.
        Specified by:
        onMoveNode in interface NodeServicePolicies.OnMoveNodePolicy
        Parameters:
        oldChildAssocRef - the child association reference prior to the move
        newChildAssocRef - 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> before,
                                       java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> after)
        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
        before - the node's properties before the change
        after - the node's properties after the change
      • onSetNodeType

        public void onSetNodeType​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                  org.alfresco.service.namespace.QName before,
                                  org.alfresco.service.namespace.QName after)
        Description copied from interface: NodeServicePolicies.OnSetNodeTypePolicy
        Called after the type of a node is set explicitly.
        Specified by:
        onSetNodeType in interface NodeServicePolicies.OnSetNodeTypePolicy
        Parameters:
        nodeRef - the node that has had its type set.
        before - the previous type of the node.
        after - the type the node has been given.
      • onAddAspect

        public void onAddAspect​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                org.alfresco.service.namespace.QName aspectTypeQName)
        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
        aspectTypeQName - the type of the aspect
      • onRemoveAspect

        public void onRemoveAspect​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                   org.alfresco.service.namespace.QName aspectTypeQName)
        Description copied from interface: NodeServicePolicies.OnRemoveAspectPolicy
        Called after an aspect has been removed from a node
        Specified by:
        onRemoveAspect in interface NodeServicePolicies.OnRemoveAspectPolicy
        Parameters:
        nodeRef - the node from which the aspect will be removed
        aspectTypeQName - the type of the aspect
      • createChildAssociationEventConsolidator

        protected ChildAssociationEventConsolidator createChildAssociationEventConsolidator​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssociationRef)
      • createPeerAssociationEventConsolidator

        protected PeerAssociationEventConsolidator createPeerAssociationEventConsolidator​(org.alfresco.service.cmr.repository.AssociationRef peerAssociationRef)
      • onBootstrap

        protected void onBootstrap​(org.springframework.context.ApplicationEvent applicationEvent)
        Specified by:
        onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
      • onShutdown

        protected void onShutdown​(org.springframework.context.ApplicationEvent applicationEvent)
        Specified by:
        onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean