@Deprecated public abstract class

PullRequestApprovalEvent

extends PullRequestEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.pull.PullRequestEvent
         ↳ com.atlassian.bitbucket.event.pull.PullRequestApprovalEvent
Known Direct Subclasses

This class is deprecated.
in 4.2 for removal in 5.0. Listen for PullRequestParticipantStatusUpdatedEvent instead.

Class Overview

Base class for events raised when a participant approves a pull request, or withdraws their approval.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Protected Constructors
PullRequestApprovalEvent(Object source, PullRequestParticipant participant, PullRequest pullRequest, PullRequestAction action)
Constructs a new PullRequestApprovalEvent.
Public Methods
@Nonnull PullRequestParticipant getParticipant()
Retrieves the participant whose approval has been modified.
[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

Protected Constructors

protected PullRequestApprovalEvent (Object source, PullRequestParticipant participant, PullRequest pullRequest, PullRequestAction action)

Constructs a new PullRequestApprovalEvent. All parameters are required.

Parameters
source the component raising the event
participant the participant who has modified their approval
pullRequest the pull request
action the action
Throws
IllegalArgumentException if the provided action is not APPROVED or UNAPPROVED
NullPointerException if the source, participant, pullRequest or action provided is null

Public Methods

@Nonnull public PullRequestParticipant getParticipant ()

Retrieves the participant whose approval has been modified.

Returns
  • the participant