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


java.lang.Object
   org.sakaiproject.email.impl.BaseDigestService

All known Subclasses:   org.sakaiproject.email.impl.DbDigestService,
BaseDigestService
abstract public class BaseDigestService implements DigestService,StorageUser,Runnable(Code)

BaseDigestService is the base service for DigestService.


Inner Class :public class BaseDigest implements DigestEdit,SessionBindingListener
Inner Class :protected interface Storage

Field Summary
final protected static  longPERIOD
     How long to wait between runnable runs (ms).
protected  Listm_digestQueue
     The queue of digests waiting to be added (DigestMessage).
protected  Stringm_lastSendPeriod
     The time period last time the sendDigests() was called.
protected  Stringm_relativeAccessPoint
     The initial portion of a relative access point URL.
protected  booleanm_sendDigests
     True if we are in the mode of sending out digests, false if we are waiting.
protected  Storagem_storage
     Storage manager for this service.
protected  Threadm_thread
     The thread I run my periodic clean and report on.
protected  booleanm_threadStop
     My thread's quit flag.


Method Summary
public  DigestEditadd(String id)
    
public  voidcancel(DigestEdit edit)
    
public  voidcommit(DigestEdit edit)
    
protected  TimeRangecomputeRange(Time time)
     Compute a time range based on a specific time.
public  voiddestroy()
     Returns to uninitialized state.
public  voiddigest(String to, String subject, String body)
    
protected  StringdigestId(String ref)
     Access the digest id extracted from a digest reference.
Parameters:
  ref - The digest reference string.
public  StringdigestReference(String id)
     Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The digest id string.
public  DigestEditedit(String id)
    
abstract protected  EmailServiceemailService()
    
abstract protected  EventTrackingServiceeventTrackingService()
    
protected  BaseDigestfindDigest(String id)
    
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)
    
public  DigestgetDigest(String id)
    
public  ListgetDigests()
    
public  StringgetOwnerId(Entity r)
    
public  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisDraft(Entity r)
    
public  EntitynewContainer(String ref)
    
public  EntitynewContainer(Element element)
    
public  EntitynewContainer(Entity other)
    
public  EditnewContainerEdit(String ref)
    
public  EditnewContainerEdit(Element element)
    
public  EditnewContainerEdit(Entity other)
    
public  EntitynewResource(Entity container, String id, Object[] others)
    
public  EntitynewResource(Entity container, Element element)
    
public  EntitynewResource(Entity container, Entity other)
    
public  EditnewResourceEdit(Entity container, String id, Object[] others)
    
public  EditnewResourceEdit(Entity container, Element element)
    
public  EditnewResourceEdit(Entity container, Entity other)
    
abstract protected  StoragenewStorage()
     Construct storage for this service.
protected  voidprocessQueue()
     Attempt to process all the queued digest requests.
public  voidremove(DigestEdit edit)
    
public  voidrun()
     Run the clean and report thread.
abstract protected  SecurityServicesecurityService()
    
protected  voidsend(String id, List msgs, TimeRange period)
    
protected  voidsendDigests()
     If it's time, send out any digested messages.
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
abstract protected  SessionManagersessionManager()
    
protected  voidstart()
     Start the clean and report thread.
protected  voidstop()
     Stop the clean and report thread.
public  Object[]storageFields(Entity r)
    
abstract protected  TimeServicetimeService()
    
protected  voidunlock(String lock, String resource)
     Check security permission.
protected  booleanunlockCheck(String lock, String resource)
     Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
abstract protected  UserDirectoryServiceuserDirectoryService()
    

Field Detail
PERIOD
final protected static long PERIOD(Code)
How long to wait between runnable runs (ms).



m_digestQueue
protected List m_digestQueue(Code)
The queue of digests waiting to be added (DigestMessage).



m_lastSendPeriod
protected String m_lastSendPeriod(Code)
The time period last time the sendDigests() was called.



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



m_sendDigests
protected boolean m_sendDigests(Code)
True if we are in the mode of sending out digests, false if we are waiting.



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



m_thread
protected Thread m_thread(Code)
The thread I run my periodic clean and report on.



m_threadStop
protected boolean m_threadStop(Code)
My thread's quit flag.





Method Detail
add
public DigestEdit add(String id) throws IdUsedException(Code)



cancel
public void cancel(DigestEdit edit)(Code)



commit
public void commit(DigestEdit edit)(Code)



computeRange
protected TimeRange computeRange(Time time)(Code)
Compute a time range based on a specific time. The time range that encloses the specific time.



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



digest
public void digest(String to, String subject, String body)(Code)



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



digestReference
public String digestReference(String id)(Code)
Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The digest id string. The the internal reference which can be used to access the resource from within the system.



edit
public DigestEdit edit(String id) throws InUseException(Code)



emailService
abstract protected EmailService emailService()(Code)
the EmailService collaborator.



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



findDigest
protected BaseDigest findDigest(String id)(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)



getDigest
public Digest getDigest(String id) throws IdUnusedException(Code)



getDigests
public List getDigests()(Code)



getOwnerId
public String getOwnerId(Entity r)(Code)



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



isDraft
public boolean isDraft(Entity r)(Code)



newContainer
public Entity newContainer(String ref)(Code)



newContainer
public Entity newContainer(Element element)(Code)



newContainer
public Entity newContainer(Entity other)(Code)



newContainerEdit
public Edit newContainerEdit(String ref)(Code)



newContainerEdit
public Edit newContainerEdit(Element element)(Code)



newContainerEdit
public Edit newContainerEdit(Entity other)(Code)



newResource
public Entity newResource(Entity container, String id, Object[] others)(Code)



newResource
public Entity newResource(Entity container, Element element)(Code)



newResource
public Entity newResource(Entity container, Entity other)(Code)



newResourceEdit
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)



newResourceEdit
public Edit newResourceEdit(Entity container, Element element)(Code)



newResourceEdit
public Edit newResourceEdit(Entity container, Entity other)(Code)



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



processQueue
protected void processQueue()(Code)
Attempt to process all the queued digest requests. Ones that cannot be processed now will be returned to the queue.



remove
public void remove(DigestEdit edit)(Code)



run
public void run()(Code)
Run the clean and report thread.



securityService
abstract protected SecurityService securityService()(Code)
the MemoryServiSecurityServicece collaborator.



send
protected void send(String id, List msgs, TimeRange period)(Code)
Send a single digest message
Parameters:
  id - The use id to send the message to.
Parameters:
  msgs - The List (DigestMessage) of message to digest.
Parameters:
  period - The time period of the digested messages.



sendDigests
protected void sendDigests()(Code)
If it's time, send out any digested messages. Send once daily, after a certiain time of day (local time).



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



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



start
protected void start()(Code)
Start the clean and report thread.



stop
protected void stop()(Code)
Stop the clean and report thread.



storageFields
public Object[] storageFields(Entity r)(Code)



timeService
abstract protected TimeService timeService()(Code)
the TimeService collaborator.



unlock
protected void unlock(String lock, String resource) throws PermissionException(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  PermissionException - Thrown if the user does not have access



unlockCheck
protected boolean unlockCheck(String lock, String resource)(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if allowd, false if not



userDirectoryService
abstract protected UserDirectoryService userDirectoryService()(Code)
the UserDirectoryService 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.