Class PeerAssociationEventConsolidator

    • Constructor Detail

      • PeerAssociationEventConsolidator

        public PeerAssociationEventConsolidator​(org.alfresco.service.cmr.repository.AssociationRef associationRef,
                                                QNameHelper helper)
    • Method Detail

      • getRepoEvent

        public org.alfresco.repo.event.v1.model.RepoEvent<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
      • 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<EventType> getEventTypes()
        Get event types.
        Returns:
        Deque queue of event types