public abstract class

CustomPullRequestNotificationEvent

extends ApplicationEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.notification.custom.pull.CustomPullRequestNotificationEvent

Class Overview

Event raised by plugins to trigger a custom notification on a pull request.

Note that the data provided by the event should be as lightweight as possible because it is persisted as JSON data in the database for any recipient configured to receive batched notifications. For example, use IDs (such as the IDs of the repository and pull request for a pull request) rather than the full object (such as a pull request instance).

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Protected Constructors
CustomPullRequestNotificationEvent(Object source, String rendererId, PullRequest pullRequest, Iterable<ApplicationUser> recipients, CustomNotificationData data)
Public Methods
@Nonnull CustomNotificationData getData()
@Nonnull PullRequest getPullRequest()
@Nonnull Iterable<ApplicationUser> getRecipients()
@Nonnull String getRendererId()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object

Protected Constructors

protected CustomPullRequestNotificationEvent (Object source, String rendererId, PullRequest pullRequest, Iterable<ApplicationUser> recipients, CustomNotificationData data)

Parameters
source the source of the event
rendererId the ID of the renderer for this notification; this must correspond to getId().
pullRequest the pull request for this notification
recipients the recipients for this notification
data the metadata that will be used to render this notification

Public Methods

@Nonnull public CustomNotificationData getData ()

@Nonnull public PullRequest getPullRequest ()

@Nonnull public Iterable<ApplicationUser> getRecipients ()

@Nonnull public String getRendererId ()