Class CommitDiscussionParticipantsUpdatedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.repository.RepositoryEvent
com.atlassian.bitbucket.event.commit.CommitDiscussionEvent
com.atlassian.bitbucket.event.commit.CommitDiscussionParticipantsUpdatedEvent
- All Implemented Interfaces:
Serializable
@AsynchronousPreferred
public class CommitDiscussionParticipantsUpdatedEvent
extends CommitDiscussionEvent
An event raised when the participants in a commit discussion change. For example, when a user posts their first
comment on a commit, or replies to an existing comment, they are added as a participant and this event is raised.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCommitDiscussionParticipantsUpdatedEvent
(Object source, CommitDiscussion discussion, Set<ApplicationUser> added, Set<ApplicationUser> removed) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.atlassian.bitbucket.event.commit.CommitDiscussionEvent
getDiscussion
Methods inherited from class com.atlassian.bitbucket.event.repository.RepositoryEvent
getRepository
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
CommitDiscussionParticipantsUpdatedEvent
public CommitDiscussionParticipantsUpdatedEvent(@Nonnull Object source, @Nonnull CommitDiscussion discussion, @Nonnull Set<ApplicationUser> added, @Nonnull Set<ApplicationUser> removed)
-
-
Method Details
-
getAddedParticipants
- Returns:
- the set of users who have participated in the pull request for the first time
-
getRemovedParticipants
- Returns:
- the set of users who are no longer participating in the pull request
-