org.tigris.scarab.notification
Class ScarabOldNotificationManager

java.lang.Object
  extended byorg.tigris.scarab.notification.ScarabOldNotificationManager
All Implemented Interfaces:
NotificationManager

public class ScarabOldNotificationManager
extends java.lang.Object
implements NotificationManager

This class provides the default implementation for the provided notification manager. It just send the notifications by email in the moment they are added.

Author:
jorgeuriarte

Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
ScarabOldNotificationManager()
           
 
Method Summary
 void addActivityNotification(ActivityType event, ActivitySet activitySet, Issue issue, ScarabUser fromUser)
          Receives an activitySet from which to generate notification.
 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()
          Does nothing, because this implementation currently send the notifications online in the moment they are generated calling addActivityNotification methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.apache.log4j.Logger log
Constructor Detail

ScarabOldNotificationManager

public ScarabOldNotificationManager()
Method Detail

getManagerId

public java.lang.Integer getManagerId()
Description copied from interface: NotificationManager
Each manager has its own id (Which happens to be a small integer value.

Specified by:
getManagerId in interface NotificationManager
Returns:

addActivityNotification

public void addActivityNotification(ActivityType event,
                                    ActivitySet activitySet,
                                    Issue issue,
                                    ScarabUser fromUser)
Receives an activitySet from which to generate notification. Current implementation does only online email sending, with no aggregation or filtering.

Specified by:
addActivityNotification in interface NotificationManager
Parameters:
event - The event that originated the notification
activitySet - The activity set describing the event
issue - The issue affected by the event
fromUser - TODO
See Also:
addActivityNotification(NotificationEvent, EmailContext, ActivitySet, Issue, Set, Set), #addActivityNotification(NotificationEvent, EmailContext, ActivitySet, Issue, Set, Set)

addActivityNotification

public 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'.

Specified by:
addActivityNotification in interface NotificationManager
Parameters:
event - The event that originated the notification
activitySet - The activity set describing the event
issue - The issue affected by the event
toUsers - List of users intended to be notified as 'To:'
ccUsers - List of users intended to be notified in 'CC:'
fromUser - TODO
See Also:
#addActivityNotification(NotificationEvent, ActivitySet, Issue, ScarabUser)

sendPendingNotifications

public void sendPendingNotifications()
Does nothing, because this implementation currently send the notifications online in the moment they are generated calling addActivityNotification methods.

Specified by:
sendPendingNotifications in interface NotificationManager


Copyright © 2000-2004 Tigris.org. All Rights Reserved.