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


java.lang.Object
   org.sakaiproject.event.impl.BaseEventTrackingService

All known Subclasses:   org.sakaiproject.event.impl.ClusterEventTracking,  org.sakaiproject.event.impl.BasicEventTracking,
BaseEventTrackingService
abstract public class BaseEventTrackingService implements EventTrackingService(Code)

BaseEventTrackingService is the base implmentation for the EventTracking service.


Inner Class :protected class MyObservable extends Observable
Inner Class :protected class BaseEvent implements Event,Serializable

Field Summary
protected  MyObservablem_localObservableHelper
     An observable object helper for see-only-local-events observers.
protected  MyObservablem_observableHelper
     An observable object helper.
protected  MyObservablem_priorityObservableHelper
     An observable object helper for see-it-first priority observers.


Method Summary
public  voidaddLocalObserver(Observer observer)
     Add an observer of events.
public  voidaddObserver(Observer observer)
     Add an observer of events.
public  voidaddPriorityObserver(Observer observer)
     Add an observer of events.
public  voiddeleteObserver(Observer observer)
     Delete an observer of events.
public  voiddestroy()
     Final cleanup.
public  voidinit()
     Final initialization, once all dependencies are set.
public  EventnewEvent(String event, String resource, boolean modify)
     Construct a Event object.
Parameters:
  event - The Event id.
Parameters:
  resource - The resource reference.
Parameters:
  modify - Set to true if this event caused a resource modification, false if it was just an access.
public  EventnewEvent(String event, String resource, boolean modify, int priority)
     Construct a Event object.
Parameters:
  event - The Event id.
Parameters:
  resource - The resource reference.
Parameters:
  modify - Set to true if this event caused a resource modification, false if it was just an access.
Parameters:
  priority - The Event's notification priority.
protected  voidnotifyObservers(Event event, boolean local)
     Send notification about a new event to observers.
public  voidpost(Event event)
     Post an event
Parameters:
  event - The event object (created with newEvent()).
public  voidpost(Event event, UsageSession session)
    
public  voidpost(Event event, User user)
     Post an event on behalf of a user.
abstract protected  voidpostEvent(Event event)
     Cause this new event to get to wherever it has to go for persistence, etc.
abstract protected  SessionManagersessionManager()
    
abstract protected  UsageSessionServiceusageSessionService()
    

Field Detail
m_localObservableHelper
protected MyObservable m_localObservableHelper(Code)
An observable object helper for see-only-local-events observers.



m_observableHelper
protected MyObservable m_observableHelper(Code)
An observable object helper.



m_priorityObservableHelper
protected MyObservable m_priorityObservableHelper(Code)
An observable object helper for see-it-first priority observers.





Method Detail
addLocalObserver
public void addLocalObserver(Observer observer)(Code)
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.
Parameters:
  observer - The class observing.



addObserver
public void addObserver(Observer observer)(Code)
Add an observer of events. The observer will be notified whenever there are new events.
Parameters:
  observer - The class observing.



addPriorityObserver
public void addPriorityObserver(Observer observer)(Code)
Add an observer of events. The observer will be notified whenever there are new events. Priority observers get notified first, before normal observers.
Parameters:
  observer - The class observing.



deleteObserver
public void deleteObserver(Observer observer)(Code)
Delete an observer of events.
Parameters:
  observer - The class observing to delete.



destroy
public void destroy()(Code)
Final cleanup.



init
public void init()(Code)
Final initialization, once all dependencies are set.



newEvent
public Event newEvent(String event, String resource, boolean modify)(Code)
Construct a Event object.
Parameters:
  event - The Event id.
Parameters:
  resource - The resource reference.
Parameters:
  modify - Set to true if this event caused a resource modification, false if it was just an access. A new Event object that can be used with this service.



newEvent
public Event newEvent(String event, String resource, boolean modify, int priority)(Code)
Construct a Event object.
Parameters:
  event - The Event id.
Parameters:
  resource - The resource reference.
Parameters:
  modify - Set to true if this event caused a resource modification, false if it was just an access.
Parameters:
  priority - The Event's notification priority. A new Event object that can be used with this service.



notifyObservers
protected void notifyObservers(Event event, boolean local)(Code)
Send notification about a new event to observers.
Parameters:
  event - The event to send notification about.
Parameters:
  local - True if the event originated on this server, false if it came from another server.



post
public void post(Event event)(Code)
Post an event
Parameters:
  event - The event object (created with newEvent()). Note: the current session user will be used as the user responsible for the event.



post
public void post(Event event, UsageSession session)(Code)
Post an event on behalf of a user's session
Parameters:
  event - The event object (created with newEvent()).
Parameters:
  session - The usage session object of the user session responsible for the event.



post
public void post(Event event, User user)(Code)
Post an event on behalf of a user.
Parameters:
  event - The event object (created with newEvent()).
Parameters:
  user - The User object of the user responsible for the event.



postEvent
abstract protected void postEvent(Event event)(Code)
Cause this new event to get to wherever it has to go for persistence, etc.
Parameters:
  event - The new event to post.



sessionManager
abstract protected SessionManager sessionManager()(Code)
the SessionManager collaborator.



usageSessionService
abstract protected UsageSessionService usageSessionService()(Code)
the UsageSessionService collaborator.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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