@AsynchronousPreferred @Deprecated 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
Known Direct Subclasses

This class is deprecated.
in 4.4 for removal in 5.0. Use PullRequestReviewersUpdatedEvent instead.

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