|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.notification.NotificationFilterManagerImpl
public class NotificationFilterManagerImpl
Constructor Summary | |
---|---|
NotificationFilterManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.event.PluginEventManager pluginEventManager)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationFilterManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Method Detail |
---|
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
s
public boolean filtered(NotificationRecipient recipient, NotificationFilterContext context)
NotificationFilterManager
NotificationFilter
and filter (only) a recipient of a notification
filtered
in interface NotificationFilterManager
recipient
- the target recipientcontext
- a context object to pass to NotificationFilter
s
public NotificationFilterContext makeContextFrom(NotificationReason reason)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
reason
- the reason for the notification
public NotificationFilterContext makeContextFrom(NotificationReason reason, Issue issue)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
reason
- the reason for the notificationissue
- the issue in play
public NotificationFilterContext makeContextFrom(NotificationReason reason, IssueEvent issueEvent)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
reason
- the reason for the notificationissueEvent
- the issue event in play
public NotificationFilterContext makeContextFrom(NotificationFilterContext copy, NotificationType notificationType)
NotificationFilterManager
makeContextFrom
in interface NotificationFilterManager
copy
- copies state from a past onenotificationType
- the notification type in play
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |