@AsynchronousPreferred public class

PullRequestRolesUpdatedEvent

extends PullRequestEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.stash.event.StashEvent
       ↳ com.atlassian.stash.event.pull.PullRequestEvent
         ↳ com.atlassian.stash.event.pull.PullRequestRolesUpdatedEvent

Class Overview

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

Currently the only explicit role that can be changed is the com.atlassian.stash.pull.PullRequestRole.REVIEWER REVIEWER role. getAddedReviewers() and getRemovedReviewers() allow tracking of who has been assigned and unassigned to this role respectively.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
PullRequestRolesUpdatedEvent(Object source, PullRequest pullRequest, Set<StashUser> addedReviewers, Set<StashUser> removedReviewers)
Public Methods
@Nonnull Set<StashUser> getAddedReviewers()
@Nonnull Set<StashUser> getRemovedReviewers()
[Expand]
Inherited Methods
From class com.atlassian.stash.event.pull.PullRequestEvent
From class com.atlassian.stash.event.StashEvent
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public PullRequestRolesUpdatedEvent (Object source, PullRequest pullRequest, Set<StashUser> addedReviewers, Set<StashUser> removedReviewers)

Public Methods

@Nonnull public Set<StashUser> getAddedReviewers ()

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

@Nonnull public Set<StashUser> getRemovedReviewers ()

Returns
  • the set of participants unassigned from the reviewer role