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


org.sakaiproject.announcement.impl.BaseAnnouncementService
   org.sakaiproject.announcement.impl.DbAnnouncementService

DbAnnouncementService
public class DbAnnouncementService extends BaseAnnouncementService (Code)

DbAnnouncementService fills out the BaseAnnouncementService with a database implementation.

The sql scripts in src/sql/chef_announcement.sql must be run on the database.


Inner Class :protected class DbStorage extends BaseDbDoubleStorage implements Storage

Field Summary
final protected static  String[]FIELDS
    
protected  booleanm_autoDdl
     Configuration: to run the ddl on init or not.
protected  Stringm_cTableName
     The name of the db table holding announcement channels.
protected  booleanm_convertToDraft
     Set if we are to run the to-draft/owner conversion.
protected  booleanm_convertToPubView
     Set if we are to run the to-pubview conversion.
protected  booleanm_locksInDb
     If true, we do our locks in the remote database, otherwise we do them here.
protected  Stringm_rTableName
     The name of the db table holding announcement messages.
protected  SqlServicem_sqlService
    


Method Summary
protected  voidconvertToDraft()
    
protected  voidconvertToPubView()
    
protected  booleangetPubView(String ref)
    
public  voidinit()
     Final initialization, once all dependencies are set.
protected  StoragenewStorage()
     Construct a Storage object.
public  voidsetAutoDdl(String value)
     Configuration: to run the ddl on init or not.
public  voidsetContainerTableName(String name)
     Configuration: set the table name for the container.
public  voidsetConvertDraft(String value)
    
public  voidsetConvertPubView(String value)
    
public  voidsetLocksInDb(String value)
    
public  voidsetResourceTableName(String name)
     Configuration: set the table name for the resource.
public  voidsetSqlService(SqlService service)
     Dependency: SqlService.

Field Detail
FIELDS
final protected static String[] FIELDS(Code)



m_autoDdl
protected boolean m_autoDdl(Code)
Configuration: to run the ddl on init or not.



m_cTableName
protected String m_cTableName(Code)
The name of the db table holding announcement channels.



m_convertToDraft
protected boolean m_convertToDraft(Code)
Set if we are to run the to-draft/owner conversion.



m_convertToPubView
protected boolean m_convertToPubView(Code)
Set if we are to run the to-pubview conversion.



m_locksInDb
protected boolean m_locksInDb(Code)
If true, we do our locks in the remote database, otherwise we do them here.



m_rTableName
protected String m_rTableName(Code)
The name of the db table holding announcement messages.



m_sqlService
protected SqlService m_sqlService(Code)
Dependency: SqlService





Method Detail
convertToDraft
protected void convertToDraft()(Code)
fill in the draft and owner db fields



convertToPubView
protected void convertToPubView()(Code)
fill in the pubview db fields



getPubView
protected boolean getPubView(String ref)(Code)
Does this resource support public view? (Support for the conversion)
Parameters:
  ref - The resource reference true if this resource supports public view, false if not.



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



newStorage
protected Storage newStorage()(Code)
Construct a Storage object. The new storage object.



setAutoDdl
public void setAutoDdl(String value)(Code)
Configuration: to run the ddl on init or not.
Parameters:
  value - the auto ddl value.



setContainerTableName
public void setContainerTableName(String name)(Code)
Configuration: set the table name for the container.
Parameters:
  path - The table name for the container.



setConvertDraft
public void setConvertDraft(String value)(Code)
Configuration: run the to-draft/owner conversion
Parameters:
  value - The conversion desired value.



setConvertPubView
public void setConvertPubView(String value)(Code)
Configuration: run the to-pubview conversion
Parameters:
  value - The conversion desired value.



setLocksInDb
public void setLocksInDb(String value)(Code)
Configuration: set the locks-in-db
Parameters:
  path - The storage path.



setResourceTableName
public void setResourceTableName(String name)(Code)
Configuration: set the table name for the resource.
Parameters:
  path - The table name for the resource.



setSqlService
public void setSqlService(SqlService service)(Code)
Dependency: SqlService.
Parameters:
  service - The SqlService.



Fields inherited from org.sakaiproject.announcement.impl.BaseAnnouncementService
protected NotificationService m_notificationService(Code)(Java Doc)
protected static ResourceLoader rb(Code)(Java Doc)

Methods inherited from org.sakaiproject.announcement.impl.BaseAnnouncementService
public AnnouncementChannelEdit addAnnouncementChannel(String ref) throws IdUsedException, IdInvalidException, PermissionException(Code)(Java Doc)
public void contextCreated(String context, boolean toolPlacement)(Code)(Java Doc)
public void contextDeleted(String context, boolean toolPlacement)(Code)(Java Doc)
public void contextUpdated(String context, boolean toolPlacement)(Code)(Java Doc)
protected String eventId(String secure)(Code)(Java Doc)
public AnnouncementChannel getAnnouncementChannel(String ref) throws IdUnusedException, PermissionException(Code)(Java Doc)
public Time getDate(Entity r)(Code)(Java Doc)
public HttpAccess getHttpAccess()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public String getOwnerId(Entity r)(Code)(Java Doc)
protected String getReferenceRoot()(Code)(Java Doc)
protected String getSummaryFromHeader(Message item, MessageHeader header)(Code)(Java Doc)
public void init()(Code)(Java Doc)
public boolean isDraft(Entity r)(Code)(Java Doc)
public String[] myToolIds()(Code)(Java Doc)
public Entity newContainer(String ref)(Code)(Java Doc)
public Entity newContainer(Element element)(Code)(Java Doc)
public Entity newContainer(Entity other)(Code)(Java Doc)
public Edit newContainerEdit(String ref)(Code)(Java Doc)
public Edit newContainerEdit(Element element)(Code)(Java Doc)
public Edit newContainerEdit(Entity other)(Code)(Java Doc)
protected MessageHeaderEdit newMessageHeader(Message msg, String id)(Code)(Java Doc)
protected MessageHeaderEdit newMessageHeader(Message msg, Element el)(Code)(Java Doc)
protected MessageHeaderEdit newMessageHeader(Message msg, MessageHeader other)(Code)(Java Doc)
public Entity newResource(Entity container, String id, Object[] others)(Code)(Java Doc)
public Entity newResource(Entity container, Element element)(Code)(Java Doc)
public Entity newResource(Entity container, Entity other)(Code)(Java Doc)
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)(Java Doc)
public Edit newResourceEdit(Entity container, Element element)(Code)(Java Doc)
public Edit newResourceEdit(Entity container, Entity other)(Code)(Java Doc)
public boolean parseEntityReference(String reference, Reference ref)(Code)(Java Doc)
protected String serviceName()(Code)(Java Doc)
public void setNotificationService(NotificationService service)(Code)(Java Doc)
public Object[] storageFields(Entity r)(Code)(Java Doc)
public void transferCopyEntities(String fromContext, String toContext, List resourceIds)(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.