Source Code Cross Referenced for EventTrackingService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » event » api » 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 » ERP CRM Financial » sakai » org.sakaiproject.event.api 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**********************************************************************************
002:         * $URL: https://source.sakaiproject.org/svn/event/tags/sakai_2-4-1/event-api/api/src/java/org/sakaiproject/event/api/EventTrackingService.java $
003:         * $Id: EventTrackingService.java 7036 2006-03-27 00:31:07Z ggolden@umich.edu $
004:         ***********************************************************************************
005:         *
006:         * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007:         * 
008:         * Licensed under the Educational Community License, Version 1.0 (the "License"); 
009:         * you may not use this file except in compliance with the License. 
010:         * You may obtain a copy of the License at
011:         * 
012:         *      http://www.opensource.org/licenses/ecl1.php
013:         * 
014:         * Unless required by applicable law or agreed to in writing, software 
015:         * distributed under the License is distributed on an "AS IS" BASIS, 
016:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
017:         * See the License for the specific language governing permissions and 
018:         * limitations under the License.
019:         *
020:         **********************************************************************************/package org.sakaiproject.event.api;
021:
022:        import java.util.Observer;
023:
024:        /**
025:         * <p>
026:         * The event tracking service provides activity event tracking and monitoring.<br />
027:         * Objects act as event generators, posting events to the service.<br />
028:         * Other objects act as event monitors, and are notified by the service when certain events occur.<br />
029:         * Events posted are also stored in event archives by the service.
030:         * </p>
031:         */
032:        public interface EventTrackingService {
033:            /** This string can be used to find the service in the service manager. */
034:            static final String SERVICE_NAME = EventTrackingService.class
035:                    .getName();
036:
037:            /**
038:             * Construct a Event object.
039:             * 
040:             * @param event
041:             *        The Event id.
042:             * @param resource
043:             *        The resource reference.
044:             * @param modify
045:             *        Set to true if this event caused a resource modification, false if it was just an access.
046:             * @return A new Event object that can be used with this service.
047:             */
048:            Event newEvent(String event, String resource, boolean modify);
049:
050:            /**
051:             * Construct a Event object.
052:             * 
053:             * @param event
054:             *        The Event id.
055:             * @param resource
056:             *        The resource reference.
057:             * @param modify
058:             *        Set to true if this event caused a resource modification, false if it was just an access.
059:             * @param priority
060:             *        The Event's notification priority.
061:             * @return A new Event object that can be used with this service.
062:             */
063:            Event newEvent(String event, String resource, boolean modify,
064:                    int priority);
065:
066:            /**
067:             * Post an event
068:             * 
069:             * @param event
070:             *        The event object (created with newEvent()). Note: the current session user will be used as the user responsible for the event.
071:             */
072:            void post(Event event);
073:
074:            /**
075:             * Post an event on behalf of a user's session
076:             * 
077:             * @param event
078:             *        The event object (created with newEvent()).
079:             * @param session
080:             *        The usage session object of the user session responsible for the event.
081:             */
082:            void post(Event event, UsageSession session);
083:
084:            /**
085:             * Add an observer of events. The observer will be notified whenever there are new events.
086:             * 
087:             * @param observer
088:             *        The class observing.
089:             */
090:            void addObserver(Observer observer);
091:
092:            /**
093:             * Add an observer of events. The observer will be notified whenever there are new events. Priority observers get notified first, before normal observers.
094:             * 
095:             * @param observer
096:             *        The class observing.
097:             */
098:            void addPriorityObserver(Observer observer);
099:
100:            /**
101:             * Add an observer of events. The observer will be notified whenever there are new events. Local observers get notified only of event generated on this application server, not on those generated elsewhere.
102:             * 
103:             * @param observer
104:             *        The class observing.
105:             */
106:            void addLocalObserver(Observer observer);
107:
108:            /**
109:             * Delete an observer of events.
110:             * 
111:             * @param observer
112:             *        The class observing to delete.
113:             */
114:            void deleteObserver(Observer observer);
115:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.