public class

ReferenceNotificationFilter

extends Object
implements NotificationFilter
java.lang.Object
   ↳ com.atlassian.jira.dev.reference.plugin.notifications.ReferenceNotificationFilter

Summary

Public Constructors
ReferenceNotificationFilter(JiraProperties jiraSystemProperties)
Public Methods
Iterable<NotificationRecipient> addRecipient(NotificationFilterContext context, Iterable<NotificationRecipient> intendedRecipients)
This called called to add possible new NotificationRecipients to a notification event.
boolean removeRecipient(NotificationRecipient recipient, NotificationFilterContext context)
This called called to remove NotificationRecipients from a notification event.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.notification.NotificationFilter

Public Constructors

public ReferenceNotificationFilter (JiraProperties jiraSystemProperties)

Public Methods

public Iterable<NotificationRecipient> addRecipient (NotificationFilterContext context, Iterable<NotificationRecipient> intendedRecipients)

This called called to add possible new NotificationRecipients to a notification event. Its possible that event is null in which case this means that there is no JIRA issue event in play but rather some other adhoc call to the JIRA AdhocNotificationService.

Parameters
context the context of this possible notification
intendedRecipients this list of recipients that has been build up to this point.
Returns
  • an iterable of new NotificationRecipients

public boolean removeRecipient (NotificationRecipient recipient, NotificationFilterContext context)

This called called to remove NotificationRecipients from a notification event. Its possible that event is null in which case this means that tyhere is no JIRA issue event in play but rather some other ahoc call to the JIRA AdhocNotificationService.

This is ALWAYS called after addRecipient(NotificationFilterContext, Iterable) has been called for all plugins.

Parameters
context the context of this possible notification
Returns
  • a boolean as to whether the user should get a notification