com.atlassian.jira.dev.reference.plugin.notifications
Class ReferenceNotificationFilter
java.lang.Object
com.atlassian.jira.dev.reference.plugin.notifications.ReferenceNotificationFilter
- All Implemented Interfaces:
- NotificationFilter
public class ReferenceNotificationFilter
- extends Object
- implements NotificationFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceNotificationFilter
public ReferenceNotificationFilter(JiraProperties jiraSystemProperties)
addRecipient
public Iterable<NotificationRecipient> addRecipient(NotificationFilterContext context,
Iterable<NotificationRecipient> intendedRecipients)
- Description copied from interface:
NotificationFilter
- This called called to add possible new
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
.
- Specified by:
addRecipient
in interface NotificationFilter
- 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
public boolean removeRecipient(NotificationRecipient recipient,
NotificationFilterContext context)
- Description copied from interface:
NotificationFilter
- This called called to remove
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.
- Specified by:
removeRecipient
in interface NotificationFilter
context
- the context of this possible notification
- Returns:
- a boolean as to whether the user should get a notification
Copyright © 2002-2013 Atlassian. All Rights Reserved.