Java Doc for NotificationManager.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » notification » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Issue Tracking » scarab 0.21 » org.tigris.scarab.notification 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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




Method Summary
public  voidaddActivityNotification(ActivityType event, ActivitySet activitySet, Issue issue, ScarabUser fromUser)
     This method should add a notification to be processed.
public  voidaddActivityNotification(ActivityType event, ActivitySet activitySet, Issue issue, Set toUsers, Set ccUsers, ScarabUser fromUser)
     Long version of the addActivityNotification method, allowing to pass the sets of users involved as 'To' or 'CC'.
public  IntegergetManagerId()
     Each manager has its own id (Which happens to be a small integer value.
public  voidsendPendingNotifications()
     Implementations of this method should provide the means to send the pending notifications.



Method Detail
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.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.