|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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:
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:
NotificationManagerFactory| Method Summary | |
void |
addActivityNotification(ActivityType event,
ActivitySet activitySet,
Issue issue,
ScarabUser fromUser)
This method should add a notification to be processed. |
void |
addActivityNotification(ActivityType event,
ActivitySet activitySet,
Issue issue,
java.util.Set toUsers,
java.util.Set ccUsers,
ScarabUser fromUser)
Long version of the addActivityNotification method, allowing to pass the sets of users involved as 'To' or 'CC'. |
java.lang.Integer |
getManagerId()
Each manager has its own id (Which happens to be a small integer value. |
void |
sendPendingNotifications()
Implementations of this method should provide the means to send the pending notifications. |
| Method Detail |
public void addActivityNotification(ActivityType event,
ActivitySet activitySet,
Issue issue,
ScarabUser fromUser)
event - The event that originated the notificationactivitySet - The activity set describing the eventissue - The issue affected by the eventfromUser - TODOaddActivityNotification(NotificationEvent, EmailContext,
ActivitySet, Issue, Set, Set),
#addActivityNotification(NotificationEvent, EmailContext, ActivitySet, Issue, Set, Set)
public void addActivityNotification(ActivityType event,
ActivitySet activitySet,
Issue issue,
java.util.Set toUsers,
java.util.Set ccUsers,
ScarabUser fromUser)
event - The event that originated the notificationactivitySet - The activity set describing the eventissue - The issue affected by the eventtoUsers - List of users intended to be notified as 'To:'ccUsers - List of users intended to be notified in 'CC:'fromUser - TODO#addActivityNotification(NotificationEvent, ActivitySet, Issue, ScarabUser)public void sendPendingNotifications()
public java.lang.Integer getManagerId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||