|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationFilterManager
This allows notifications to filter before they are sent out. Calls out to NotificationFilter
plugin point
as part of this.
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. |
Method Detail |
---|
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
s
boolean filtered(NotificationRecipient recipient, NotificationFilterContext context)
NotificationFilter
and filter (only) a recipient of a notification
recipient
- the target recipientcontext
- a context object to pass to NotificationFilter
s
NotificationFilterContext makeContextFrom(NotificationReason reason)
reason
- the reason for the notification
NotificationFilterContext makeContextFrom(NotificationReason reason, Issue issue)
reason
- the reason for the notificationissue
- the issue in play
NotificationFilterContext makeContextFrom(NotificationReason reason, IssueEvent issueEvent)
reason
- the reason for the notificationissueEvent
- the issue event in play
NotificationFilterContext makeContextFrom(NotificationFilterContext copy, NotificationType notificationType)
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 |