Class PeerAssociationEventConsolidator

    • 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 beforeDeleteAssociation​(org.alfresco.service.cmr.repository.AssociationRef associationRef)
      Add peer association deleted event on delete of a peer association.
      protected org.alfresco.repo.event.v1.model.DataAttributes<org.alfresco.repo.event.v1.model.PeerAssociationResource> buildEventData​(EventInfo eventInfo, org.alfresco.repo.event.v1.model.PeerAssociationResource resource)  
      org.alfresco.service.namespace.QName getAssocType()
      Get peer 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.PeerAssociationResource>> getRepoEvent​(EventInfo eventInfo)
      Builds and returns the RepoEvent instance.
      boolean isTemporaryPeerAssociation()
      Whether or not the association has been created and then deleted, i.e.
      void onCreateAssociation​(org.alfresco.service.cmr.repository.AssociationRef associationRef)
      Add peer association created event on create of a peer association.
      • Methods inherited from class java.lang.Object

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

      • associationRef

        protected final org.alfresco.service.cmr.repository.AssociationRef associationRef
    • Constructor Detail

      • PeerAssociationEventConsolidator

        public PeerAssociationEventConsolidator​(org.alfresco.service.cmr.repository.AssociationRef associationRef,
                                                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.PeerAssociationResource>> 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.PeerAssociationResource> buildEventData​(EventInfo eventInfo,
                                                                                                                                           org.alfresco.repo.event.v1.model.PeerAssociationResource resource)
      • onCreateAssociation

        public void onCreateAssociation​(org.alfresco.service.cmr.repository.AssociationRef associationRef)
        Add peer association created event on create of a peer association.
        Specified by:
        onCreateAssociation in interface NodeServicePolicies.OnCreateAssociationPolicy
        Parameters:
        associationRef - AssociationRef
      • isTemporaryPeerAssociation

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

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

        public java.util.Deque<org.alfresco.repo.event.v1.model.EventType> getEventTypes()
        Get event types.
        Returns:
        Deque queue of event types