public abstract class

PullRequestApprovalEvent

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

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.stash.event.pull.PullRequestEvent
From class com.atlassian.stash.event.StashEvent
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