@AsynchronousPreferred public class

PullRequestRolesUpdatedEvent

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

Class Overview

An event raised when one or more users have had their explicit role in a pull request changed.

Currently the only explicit role that can be changed is the REVIEWER role. getAddedReviewers() and getRemovedReviewers() allow tracking who has been assigned to and unassigned from this role, respectively.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
PullRequestRolesUpdatedEvent(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 PullRequestRolesUpdatedEvent (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