Java Doc for BaseNotificationService.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.BaseNotificationService

All known Subclasses:   org.sakaiproject.event.impl.DbNotificationService,
BaseNotificationService
abstract public class BaseNotificationService implements NotificationService,Observer,StorageUser,CacheRefresher(Code)

BaseNotificationService ...


Inner Class :protected interface Storage
Inner Class :public class BaseNotification implements Notification
Inner Class :public class BaseNotificationEdit extends BaseNotification implements NotificationEdit,SessionBindingListener

Field Summary
protected  NotificationCachem_cache
     A Cache for this service - Notification objects stored by notification reference.
protected  booleanm_emailsFromReplyable
     Configuration: make the email notifications From: reply-able.
protected  booleanm_emailsToReplyable
     Configuration: make the email notifications To: reply-able.
protected  Stringm_relativeAccessPoint
     The initial portion of a relative access point URL.
protected  Storagem_storage
     Storage manager for this service.
protected  Listm_transients
     Transient notifications (NotificationEdit).


Method Summary
public  NotificationEditaddNotification()
    
public  NotificationEditaddTransientNotification()
    
public  voidcancelEdit(NotificationEdit notification)
    
public  voidcommitEdit(NotificationEdit notification)
    
public  voiddestroy()
     Returns to uninitialized state.
public  NotificationEditeditNotification(String id)
    
abstract protected  EventTrackingServiceeventTrackingService()
    
public  NotificationfindNotification(String function, String filter)
    
protected  StringgetAccessPoint(boolean relative)
     Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e.
public  TimegetDate(Entity r)
     Access the resource date.
Parameters:
  r - The resource.
public  NotificationgetNotification(String id)
    
public  ListgetNotifications(String function)
    
public  StringgetOwnerId(Entity r)
     Access the resource owner user id.
Parameters:
  r - The resource.
abstract protected  IdManageridManager()
    
public  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisDraft(Entity r)
     Check if this resource is in draft mode.
Parameters:
  r - The resource.
public  booleanisNotificationFromReplyable()
    
public  booleanisNotificationToReplyable()
    
protected  booleanmatch(String filter, String ref)
     Does the resource reference match the filter?
Parameters:
  filter - The resource reference filter.
Parameters:
  ref - The resource reference string.
public  EntitynewContainer(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EntitynewContainer(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EntitynewContainer(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EditnewContainerEdit(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EditnewContainerEdit(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EditnewContainerEdit(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EntitynewResource(Entity container, String id, Object[] others)
     Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EntitynewResource(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EntitynewResource(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
public  EditnewResourceEdit(Entity container, String id, Object[] others)
     Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EditnewResourceEdit(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EditnewResourceEdit(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
abstract protected  StoragenewStorage()
     Construct storage for this service.
protected  StringnotificationId(String ref)
     Access the notification id extracted from a notification reference.
Parameters:
  ref - The notification reference string.
public  StringnotificationReference(String id)
    
protected  StringnotificationUrl(String id)
     Access the external URL which can be used to access the resource from outside the system.
Parameters:
  id - The notification id.
public  Objectrefresh(Object key, Object oldValue, Event event)
     Get a new value for this key whose value has already expired in the cache.
Parameters:
  key - The key whose value has expired and needs to be refreshed.
Parameters:
  oldValue - The old exipred value of the key.
Parameters:
  event - The event which triggered this refresh.
public  voidremoveNotification(NotificationEdit notification)
    
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
public  voidsetEmailFromReplyable(boolean value)
     Configuration: set reply-able status for email notifications in the From:.
public  voidsetEmailToReplyable(boolean value)
     Configuration: set reply-able status for email notifications in the To:.
public  Object[]storageFields(Entity r)
     Collect the fields that need to be stored outside the XML (for the resource).
public  voidupdate(Observable o, Object arg)
     This method is called whenever the observed object is changed.

Field Detail
m_cache
protected NotificationCache m_cache(Code)
A Cache for this service - Notification objects stored by notification reference.



m_emailsFromReplyable
protected boolean m_emailsFromReplyable(Code)
Configuration: make the email notifications From: reply-able.



m_emailsToReplyable
protected boolean m_emailsToReplyable(Code)
Configuration: make the email notifications To: reply-able.



m_relativeAccessPoint
protected String m_relativeAccessPoint(Code)
The initial portion of a relative access point URL.



m_storage
protected Storage m_storage(Code)
Storage manager for this service.



m_transients
protected List m_transients(Code)
Transient notifications (NotificationEdit).





Method Detail
addNotification
public NotificationEdit addNotification()(Code)



addTransientNotification
public NotificationEdit addTransientNotification()(Code)



cancelEdit
public void cancelEdit(NotificationEdit notification)(Code)



commitEdit
public void commitEdit(NotificationEdit notification)(Code)



destroy
public void destroy()(Code)
Returns to uninitialized state.



editNotification
public NotificationEdit editNotification(String id) throws NotificationNotDefinedException, NotificationLockedException(Code)



eventTrackingService
abstract protected EventTrackingService eventTrackingService()(Code)
the EventTrackingService collaborator.



findNotification
public Notification findNotification(String function, String filter)(Code)



getAccessPoint
protected String getAccessPoint(boolean relative)(Code)
Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e. starting with /content) the partial URL that forms the root of resource URLs.



getDate
public Time getDate(Entity r)(Code)
Access the resource date.
Parameters:
  r - The resource. The resource date.



getNotification
public Notification getNotification(String id) throws NotificationNotDefinedException(Code)



getNotifications
public List getNotifications(String function)(Code)



getOwnerId
public String getOwnerId(Entity r)(Code)
Access the resource owner user id.
Parameters:
  r - The resource. The resource owner user id.



idManager
abstract protected IdManager idManager()(Code)
the IdManager collaborator.



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



isDraft
public boolean isDraft(Entity r)(Code)
Check if this resource is in draft mode.
Parameters:
  r - The resource. true if the resource is in draft mode, false if not.



isNotificationFromReplyable
public boolean isNotificationFromReplyable()(Code)



isNotificationToReplyable
public boolean isNotificationToReplyable()(Code)



match
protected boolean match(String filter, String ref)(Code)
Does the resource reference match the filter?
Parameters:
  filter - The resource reference filter.
Parameters:
  ref - The resource reference string. true if the filter matches the ref, false if not.



newContainer
public Entity newContainer(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainer
public Entity newContainer(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainer
public Entity newContainer(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newContainerEdit
public Edit newContainerEdit(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainerEdit
public Edit newContainerEdit(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainerEdit
public Edit newContainerEdit(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newResource
public Entity newResource(Entity container, String id, Object[] others)(Code)
Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResource
public Entity newResource(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResource
public Entity newResource(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newResourceEdit
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)
Construct a new rsource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResourceEdit
public Edit newResourceEdit(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResourceEdit
public Edit newResourceEdit(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newStorage
abstract protected Storage newStorage()(Code)
Construct storage for this service.



notificationId
protected String notificationId(String ref)(Code)
Access the notification id extracted from a notification reference.
Parameters:
  ref - The notification reference string. The the notification id extracted from a notification reference.



notificationReference
public String notificationReference(String id)(Code)



notificationUrl
protected String notificationUrl(String id)(Code)
Access the external URL which can be used to access the resource from outside the system.
Parameters:
  id - The notification id. The the external URL which can be used to access the resource from outside the system.



refresh
public Object refresh(Object key, Object oldValue, Event event)(Code)
Get a new value for this key whose value has already expired in the cache.
Parameters:
  key - The key whose value has expired and needs to be refreshed.
Parameters:
  oldValue - The old exipred value of the key.
Parameters:
  event - The event which triggered this refresh. a new value for use in the cache for this key; if null, the entry will be removed.



removeNotification
public void removeNotification(NotificationEdit notification)(Code)



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



setEmailFromReplyable
public void setEmailFromReplyable(boolean value)(Code)
Configuration: set reply-able status for email notifications in the From:.
Parameters:
  value - The setting



setEmailToReplyable
public void setEmailToReplyable(boolean value)(Code)
Configuration: set reply-able status for email notifications in the To:.
Parameters:
  value - The setting



storageFields
public Object[] storageFields(Entity r)(Code)
Collect the fields that need to be stored outside the XML (for the resource). An array of field values to store in the record outside the XML (for the resource).



update
public void update(Observable o, Object arg)(Code)
This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change. default implementation is to cause the courier service to deliver to the interface controlled by my controller. Extensions can override.
Parameters:
  o - the observable object.
Parameters:
  arg - an argument passed to the notifyObservers method.



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.