Class PullRequestReviewersUpdatedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.pull.PullRequestEvent
com.atlassian.bitbucket.event.pull.PullRequestReviewersUpdatedEvent
- All Implemented Interfaces:
Serializable
An event raised when the reviewers of a pull request are updated.
getAddedReviewers()
and getRemovedReviewers()
allow tracking who has been
added
and
removed
, respectively.
- Since:
- 4.4
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionPullRequestReviewersUpdatedEvent
(Object source, PullRequest pullRequest, Set<ApplicationUser> added, Set<ApplicationUser> removed) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.atlassian.bitbucket.event.pull.PullRequestEvent
getAction, getPullRequest
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
PullRequestReviewersUpdatedEvent
public PullRequestReviewersUpdatedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull Set<ApplicationUser> added, @Nonnull Set<ApplicationUser> removed)
-
-
Method Details
-
getAddedReviewers
- Returns:
- the set of new or existing participants assigned to the reviewer role
-
getRemovedReviewers
- Returns:
- the set of participants unassigned from the reviewer role
-