Class ChildAssociationEventConsolidator

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy

        Policy.Arg
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeDeleteChildAssociation​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssociationRef)
      Add child association deleted event on delete of a child association.
      protected org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.ChildAssociationResource> buildEventData​(EventInfo eventInfo, org.alfresco.repo.event.v1.model.ChildAssociationResource resource)  
      org.alfresco.service.namespace.QName getChildAssocType()
      Get child association type.
      java.util.Deque<org.alfresco.repo.event.v1.model.EventType> getEventTypes()
      Get event types.
      org.alfresco.repo.event.v1.model.RepoEvent<org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.ChildAssociationResource>> getRepoEvent​(EventInfo eventInfo)
      Builds and returns the RepoEvent instance.
      boolean isTemporaryChildAssociation()
      Whether or not the child association has been created and then deleted, i.e.
      void onCreateChildAssociation​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssociationRef, boolean isNewNode)
      Add child association created event on create of a child association.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • childAssociationRef

        protected final org.alfresco.service.cmr.repository.ChildAssociationRef childAssociationRef
    • Constructor Detail

      • ChildAssociationEventConsolidator

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

      • getRepoEvent

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

        protected org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.ChildAssociationResource> buildEventData​(EventInfo eventInfo,
                                                                                                                                            org.alfresco.repo.event.v1.model.ChildAssociationResource resource)
      • 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<org.alfresco.repo.event.v1.model.EventType> getEventTypes()
        Get event types.
        Returns:
        Deque queue of event types