Class ChildAssociationEventConsolidator

    • Constructor Detail

      • ChildAssociationEventConsolidator

        public ChildAssociationEventConsolidator​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssociationRef,
                                                 QNameHelper helper)
    • Method Detail

      • getRepoEvent

        public org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.ChildAssociationResource> getRepoEvent​(EventInfo eventInfo)
        Builds and returns the RepoEvent instance.
        Parameters:
        eventInfo - the object holding the event information
        Returns:
        the RepoEvent instance
      • onCreateChildAssociation

        public void onCreateChildAssociation​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssociationRef,
                                             boolean isNewNode)
        Add child association created event on create of a child association.
        Specified by:
        onCreateChildAssociation in interface NodeServicePolicies.OnCreateChildAssociationPolicy
        Parameters:
        childAssociationRef - ChildAssociationRef
        isNewNode - true if the node is new or false if the node is being linked in
      • isTemporaryChildAssociation

        public boolean isTemporaryChildAssociation()
        Whether or not the child association has been created and then deleted, i.e. a temporary child association.
        Returns:
        true if the child association has been created and then deleted, otherwise false
      • getChildAssocType

        public org.alfresco.service.namespace.QName getChildAssocType()
        Get child association type.
        Returns:
        QName the child association type
      • getEventTypes

        public java.util.Deque<EventType> getEventTypes()
        Get event types.
        Returns:
        Deque queue of event types