public class NotificationFilterManagerImpl extends Object implements NotificationFilterManager
Constructor and Description |
---|
NotificationFilterManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
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. |
public NotificationFilterManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public Iterable<NotificationRecipient> recomputeRecipients(Iterable<NotificationRecipient> recipients, NotificationFilterContext context)
NotificationFilterManager
NotificationFilter
and recompute the possible recipients of the
notification.
Adds are invoked for all plugins first and then removes.
recomputeRecipients
in interface NotificationFilterManager
recipients
- the starting set of recipientscontext
- a context object to pass to NotificationFilter
spublic boolean filtered(NotificationRecipient recipient, NotificationFilterContext context)
NotificationFilterManager
NotificationFilter
and filter (only) a recipient of a notificationfiltered
in interface NotificationFilterManager
recipient
- the target recipientcontext
- a context object to pass to NotificationFilter
spublic NotificationFilterContext makeContextFrom(NotificationReason reason)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
reason
- the reason for the notificationpublic NotificationFilterContext makeContextFrom(NotificationReason reason, Issue issue)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
reason
- the reason for the notificationissue
- the issue in playpublic NotificationFilterContext makeContextFrom(NotificationReason reason, IssueEvent issueEvent)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
reason
- the reason for the notificationissueEvent
- the issue event in playpublic NotificationFilterContext makeContextFrom(NotificationFilterContext copy, NotificationType notificationType)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
copy
- copies state from a past onenotificationType
- the notification type in playCopyright © 2002-2016 Atlassian. All Rights Reserved.