Class EventConsolidator

    • Constructor Detail

    • Method Detail

      • getRepoEvent

        public org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.NodeResource> getRepoEvent​(EventInfo eventInfo)
        Builds and returns the RepoEvent instance.
        Parameters:
        eventInfo - the object holding the event information
        Returns:
        the RepoEvent instance
      • 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
      • 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.
      • 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
      • 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
      • isTemporaryNode

        public boolean isTemporaryNode()
        Whether or not the node has been created and then deleted, i.e. a temporary node.
        Returns:
        true if the node has been created and then deleted, otherwise false
      • getNodeType

        public org.alfresco.service.namespace.QName getNodeType()
      • getEventTypes

        public java.util.Deque<EventType> getEventTypes()
      • getAspectsAdded

        public java.util.List<org.alfresco.service.namespace.QName> getAspectsAdded()
      • getAspectsRemoved

        public java.util.List<org.alfresco.service.namespace.QName> getAspectsRemoved()
      • isResourceBeforeAllFieldsNull

        public boolean isResourceBeforeAllFieldsNull()