Class ReferenceNotificationFilter
java.lang.Object
com.atlassian.jira.dev.reference.plugin.notifications.ReferenceNotificationFilter
- All Implemented Interfaces:
NotificationFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRecipient
(NotificationFilterContext context, Iterable<NotificationRecipient> intendedRecipients) This called called to add possible newNotificationRecipient
s to a notification event.boolean
removeRecipient
(NotificationRecipient recipient, NotificationFilterContext context) This called called to removeNotificationRecipient
s from a notification event.
-
Constructor Details
-
ReferenceNotificationFilter
-
-
Method Details
-
addRecipient
public Iterable<NotificationRecipient> addRecipient(NotificationFilterContext context, Iterable<NotificationRecipient> intendedRecipients) Description copied from interface:NotificationFilter
This called called to add possible newNotificationRecipient
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 JIRAAdhocNotificationService
.- Specified by:
addRecipient
in interfaceNotificationFilter
- Parameters:
context
- the context of this possible notificationintendedRecipients
- this list of recipients that has been build up to this point.- Returns:
- an iterable of new NotificationRecipients
-
removeRecipient
Description copied from interface:NotificationFilter
This called called to removeNotificationRecipient
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 JIRAAdhocNotificationService
.This is ALWAYS called after
NotificationFilter.addRecipient(NotificationFilterContext, Iterable)
has been called for all plugins.- Specified by:
removeRecipient
in interfaceNotificationFilter
context
- the context of this possible notification- Returns:
- true when recipient should be removed (shouldn't get notification), false when user should not be removed (should get notification).
-