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 |
|---|---|
protected com.atlassian.plugin.tracker.PluginModuleTracker<NotificationFilter,NotificationFilterModuleDescriptor> |
createTracker(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.event.PluginEventManager pluginEventManager) |
protected Iterable<NotificationFilter> |
enabledNotificationFilters() |
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)
protected com.atlassian.plugin.tracker.PluginModuleTracker<NotificationFilter,NotificationFilterModuleDescriptor> createTracker(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public Iterable<NotificationRecipient> recomputeRecipients(Iterable<NotificationRecipient> recipients, NotificationFilterContext context)
NotificationFilterManagerNotificationFilter and recompute the possible recipients of the
notification.
Adds are invoked for all plugins first and then removes.
recomputeRecipients in interface NotificationFilterManagerrecipients - the starting set of recipientscontext - a context object to pass to NotificationFilterspublic boolean filtered(NotificationRecipient recipient, NotificationFilterContext context)
NotificationFilterManagerNotificationFilter and filter (only) a recipient of a notificationfiltered in interface NotificationFilterManagerrecipient - the target recipientcontext - a context object to pass to NotificationFilterspublic NotificationFilterContext makeContextFrom(NotificationReason reason)
NotificationFilterManagermakeContextFrom in interface NotificationFilterManagerreason - the reason for the notificationpublic NotificationFilterContext makeContextFrom(NotificationReason reason, Issue issue)
NotificationFilterManagermakeContextFrom in interface NotificationFilterManagerreason - the reason for the notificationissue - the issue in playpublic NotificationFilterContext makeContextFrom(NotificationReason reason, IssueEvent issueEvent)
NotificationFilterManagermakeContextFrom in interface NotificationFilterManagerreason - the reason for the notificationissueEvent - the issue event in playpublic NotificationFilterContext makeContextFrom(NotificationFilterContext copy, NotificationType notificationType)
NotificationFilterManagermakeContextFrom in interface NotificationFilterManagercopy - copies state from a past onenotificationType - the notification type in playprotected Iterable<NotificationFilter> enabledNotificationFilters()
Copyright © 2002-2022 Atlassian. All Rights Reserved.