public class ReferenceNotificationFilter extends Object implements NotificationFilter
Constructor and Description |
---|
ReferenceNotificationFilter(JiraProperties jiraSystemProperties) |
Modifier and Type | Method and Description |
---|---|
Iterable<NotificationRecipient> |
addRecipient(NotificationFilterContext context,
Iterable<NotificationRecipient> intendedRecipients)
This called called to add possible new
NotificationRecipient s to a notification event. |
boolean |
removeRecipient(NotificationRecipient recipient,
NotificationFilterContext context)
This called called to remove
NotificationRecipient s from a notification event. |
public ReferenceNotificationFilter(JiraProperties jiraSystemProperties)
public Iterable<NotificationRecipient> addRecipient(NotificationFilterContext context, Iterable<NotificationRecipient> intendedRecipients)
NotificationFilter
NotificationRecipient
s 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
.addRecipient
in interface NotificationFilter
context
- the context of this possible notificationintendedRecipients
- this list of recipients that has been build up to this point.public boolean removeRecipient(NotificationRecipient recipient, NotificationFilterContext context)
NotificationFilter
NotificationRecipient
s 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 NotificationFilter.addRecipient(NotificationFilterContext, Iterable)
has been called for all plugins.
removeRecipient
in interface NotificationFilter
context
- the context of this possible notificationCopyright © 2002-2022 Atlassian. All Rights Reserved.