Class EventConsolidator

    • Field Detail

      • eventTypes

        protected final Deque<org.alfresco.repo.event.v1.model.EventType> eventTypes
      • nodeRef

        protected NodeRef nodeRef
    • Constructor Detail

    • Method Detail

      • getRepoEvent

        public org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<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
      • buildEventData

        protected org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.NodeResource> buildEventData​(EventInfo eventInfo,
                                                                                                                                org.alfresco.repo.event.v1.model.NodeResource resource,
                                                                                                                                org.alfresco.repo.event.v1.model.EventType eventType)
      • createBuilderIfAbsent

        protected void createBuilderIfAbsent​(NodeRef nodeRef,
                                             boolean forceUpdate)
        Creates a builder instance if absent or forceUpdate is requested. It also, sets the required fields.
        Parameters:
        nodeRef - the nodeRef in the txn
        forceUpdate - if true, will get the latest node info and ignores the existing builder object.
      • createBuilderIfAbsent

        protected void createBuilderIfAbsent​(NodeRef nodeRef)
        Creates a builder instance if absent, and sets the required fields.
        Parameters:
        nodeRef - the nodeRef in the txn
      • buildNodeResourceBeforeDelta

        protected org.alfresco.repo.event.v1.model.NodeResource buildNodeResourceBeforeDelta​(org.alfresco.repo.event.v1.model.NodeResource after)
      • 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 QName getNodeType()
      • getEventTypes

        public Deque<org.alfresco.repo.event.v1.model.EventType> getEventTypes()
      • getAspectsAdded

        public List<QName> getAspectsAdded()
      • getAspectsRemoved

        public List<QName> getAspectsRemoved()
      • isResourceBeforeAllFieldsNull

        public boolean isResourceBeforeAllFieldsNull()
      • setResourceBeforeAllFieldsNull

        protected void setResourceBeforeAllFieldsNull​(boolean resourceBeforeAllFieldsNull)