public interface NotificationFilterManager
NotificationFilter
plugin point
as part of this.Modifier and Type | Method and Description |
---|---|
boolean |
filtered(NotificationRecipient recipient,
NotificationFilterContext context)
This will invoke plugins of
NotificationFilter and filter (only) a recipient of a notification |
NotificationFilterContext |
makeContextFrom(NotificationFilterContext copy,
NotificationType notificationType)
Creates a context with a new NotificationType
|
NotificationFilterContext |
makeContextFrom(NotificationReason reason)
Creates a context for the specified reason
|
NotificationFilterContext |
makeContextFrom(NotificationReason reason,
Issue issue)
Creates a context for the specified reason and for the issue
|
NotificationFilterContext |
makeContextFrom(NotificationReason reason,
IssueEvent issueEvent)
Creates a context for the specified reason and issue event
|
Iterable<NotificationRecipient> |
recomputeRecipients(Iterable<NotificationRecipient> recipients,
NotificationFilterContext context)
This will invoke plugins of
NotificationFilter and recompute the possible recipients of the
notification. |
Iterable<NotificationRecipient> recomputeRecipients(Iterable<NotificationRecipient> recipients, NotificationFilterContext context)
NotificationFilter
and recompute the possible recipients of the
notification.
Adds are invoked for all plugins first and then removes.
recipients
- the starting set of recipientscontext
- a context object to pass to NotificationFilter
sboolean filtered(NotificationRecipient recipient, NotificationFilterContext context)
NotificationFilter
and filter (only) a recipient of a notificationrecipient
- the target recipientcontext
- a context object to pass to NotificationFilter
sNotificationFilterContext makeContextFrom(NotificationReason reason)
reason
- the reason for the notificationNotificationFilterContext makeContextFrom(NotificationReason reason, Issue issue)
reason
- the reason for the notificationissue
- the issue in playNotificationFilterContext makeContextFrom(NotificationReason reason, IssueEvent issueEvent)
reason
- the reason for the notificationissueEvent
- the issue event in playNotificationFilterContext makeContextFrom(NotificationFilterContext copy, NotificationType notificationType)
copy
- copies state from a past onenotificationType
- the notification type in playCopyright © 2002-2016 Atlassian. All Rights Reserved.