| org.tigris.scarab.notification.NotificationManager
All known Subclasses: org.tigris.scarab.notification.ScarabNewNotificationManager, org.tigris.scarab.notification.ScarabOldNotificationManager,
NotificationManager | public interface NotificationManager (Code) | | The Notification Manager is meant to be the central service to provide notifications
related with the usual flow of activities in Scarab.
It has essentially two functions:
- To allow the system to create notifications regarding activity in the issues.
- To process the notifications so that they arrive to the involved users.
The simpler notification manager implementation might directly send emails to the involved users in
the moment the notifications are created.
A slightly improved implementation will be able to:
- Filter the events to decide if each involved user should be notified or not (basing the decision
on user-preferences, globa-preferences, whatever...
- Aggregate pending notifications (probably consolidating on issue and user to be notified) so the
user will only get one notification for every bunch of changes done in an issue (at least in a given
interval of time)
The real implementation of this interface to be
instantiated is defined by scarab.notificationmanager.classname property
(defaults to ScarabNotificationManager)
This interface also holds the
constants defining the different types of events in the system.
See Also: org.tigris.scarab.notification.NotificationManagerFactory author: jorgeuriarte |
addActivityNotification | public void addActivityNotification(ActivityType event, ActivitySet activitySet, Issue issue, ScarabUser fromUser)(Code) | | This method should add a notification to be processed. It must decide if
the activities are relevant to the recipients and filter acordingly.
See Also: addActivityNotification(NotificationEvent, EmailContext, See Also: ActivitySet, Issue, Set, Set) Parameters: event - The event that originated the notification Parameters: activitySet - The activity set describing the event Parameters: issue - The issue affected by the event Parameters: fromUser - TODO See Also: NotificationManager.addActivityNotification(NotificationEvent,EmailContext,ActivitySet,Issue,Set,Set) |
addActivityNotification | public void addActivityNotification(ActivityType event, ActivitySet activitySet, Issue issue, Set toUsers, Set ccUsers, ScarabUser fromUser)(Code) | | Long version of the addActivityNotification method, allowing to pass the sets of
users involved as 'To' or 'CC'.
Parameters: event - The event that originated the notification Parameters: activitySet - The activity set describing the event Parameters: issue - The issue affected by the event Parameters: toUsers - List of users intended to be notified as 'To:' Parameters: ccUsers - List of users intended to be notified in 'CC:' Parameters: fromUser - TODO See Also: NotificationManager.addActivityNotification(NotificationEvent,ActivitySet,Issue,ScarabUser) |
getManagerId | public Integer getManagerId()(Code) | | Each manager has its own id (Which happens to be
a small integer value.
|
sendPendingNotifications | public void sendPendingNotifications()(Code) | | Implementations of this method should provide the means to send the
pending notifications. Only makes sense when the implementation is
'offline', probably calling regularly to this method.
|
|
|