@AsynchronousPreferred public class

PullRequestReviewersUpdatedEvent

extends PullRequestEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.pull.PullRequestEvent
         ↳ com.atlassian.bitbucket.event.pull.PullRequestReviewersUpdatedEvent

Class Overview

An event raised when the reviewers of a pull request are updated.

getAddedReviewers() and getRemovedReviewers() allow tracking who has been added and removed, respectively.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
PullRequestReviewersUpdatedEvent(Object source, PullRequest pullRequest, Set<ApplicationUser> added, Set<ApplicationUser> removed)
Public Methods
@Nonnull Set<ApplicationUser> getAddedReviewers()
@Nonnull Set<ApplicationUser> getRemovedReviewers()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.pull.PullRequestEvent
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public PullRequestReviewersUpdatedEvent (Object source, PullRequest pullRequest, Set<ApplicationUser> added, Set<ApplicationUser> removed)

Public Methods

@Nonnull public Set<ApplicationUser> getAddedReviewers ()

Returns
  • the set of new or existing participants assigned to the reviewer role

@Nonnull public Set<ApplicationUser> getRemovedReviewers ()

Returns
  • the set of participants unassigned from the reviewer role