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


java.lang.Object
   org.sakaiproject.calendar.impl.BaseCalendarService
      org.sakaiproject.calendar.impl.DbCalendarService

DbCalendarService
public class DbCalendarService extends BaseCalendarService (Code)

DbCalendarService fills out the BaseCalendarService with a database implementation.

The sql scripts in src/sql/chef_calendar.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 calendar calendars.
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 calendar events.
protected  SqlServicem_sqlService
    


Method Summary
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  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 calendar calendars.



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 calendar events.



m_sqlService
protected SqlService m_sqlService(Code)
Dependency: SqlService





Method Detail
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.



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.calendar.impl.BaseCalendarService
final protected static String CALENDAR_PARAMETER_BASE_NAME(Code)(Java Doc)
final protected static String COLUMN_NODE_NAME(Code)(Java Doc)
final protected static String DAILY_START_TIME_PARAMETER_NAME(Code)(Java Doc)
final protected static String DAY_VIEW_XSLT_FILENAME(Code)(Java Doc)
final protected static String DESCRIPTION_NODE(Code)(Java Doc)
final protected static String EVENT_NODE_NAME(Code)(Java Doc)
final protected static String FACULTY_EVENT_ATTRIBUTE_NAME(Code)(Java Doc)
final protected static String FACULTY_NODE(Code)(Java Doc)
final protected static String FROM_ATTRIBUTE_STRING(Code)(Java Doc)
final protected static String GROUP_NODE(Code)(Java Doc)
final protected static String HOUR_MINUTE_SEPARATOR(Code)(Java Doc)
final protected static String LIST_DATE_ATTRIBUTE_NAME(Code)(Java Doc)
final protected static String LIST_DAY_OF_WEEK_ATTRIBUTE_NAME(Code)(Java Doc)
final protected static String LIST_NODE_NAME(Code)(Java Doc)
final protected static String LIST_VIEW_XSLT_FILENAME(Code)(Java Doc)
final protected static String MAX_CONCURRENT_EVENTS_NAME(Code)(Java Doc)
final protected static int MAX_OVERLAPPING_COLUMNS(Code)(Java Doc)
protected static long MILLISECONDS_IN_DAY(Code)(Java Doc)
final protected static long MILLISECONDS_IN_HOUR(Code)(Java Doc)
final protected static long MILLISECONDS_IN_MINUTE(Code)(Java Doc)
final protected static long MINIMUM_EVENT_LENGTH_IN_MSECONDS(Code)(Java Doc)
final protected static String MONTH_NODE_NAME(Code)(Java Doc)
final protected static String MONTH_VIEW_XSLT_FILENAME(Code)(Java Doc)
final protected static String PDF_MIME_TYPE(Code)(Java Doc)
final protected static String PLACE_NODE(Code)(Java Doc)
final protected static String ROW_NODE_NAME(Code)(Java Doc)
final protected static int SCHEDULE_INTERVAL_IN_MINUTES(Code)(Java Doc)
final protected static String SCHEDULE_NODE(Code)(Java Doc)
final protected static String SCHEDULE_TYPE_PARAMETER_NAME(Code)(Java Doc)
final public static String SECURE_SCHEDULE_ROOT(Code)(Java Doc)
final protected static String START_DAY_WEEK_ATTRIBUTE_NAME(Code)(Java Doc)
final protected static String START_TIME_ATTRIBUTE_NAME(Code)(Java Doc)
final protected static String SUB_EVENT_NODE_NAME(Code)(Java Doc)
final protected static int TIMESLOT_FOR_OVERLAP_DETECTION_IN_MINUTES(Code)(Java Doc)
final protected static String TIME_RANGE_PARAMETER_NAME(Code)(Java Doc)
final protected static String TITLE_NODE(Code)(Java Doc)
final protected static String TO_ATTRIBUTE_STRING(Code)(Java Doc)
final protected static String TYPE_NODE(Code)(Java Doc)
final protected static String UID_NODE(Code)(Java Doc)
final protected static String USER_NAME_PARAMETER_NAME(Code)(Java Doc)
final protected static String WEEK_VIEW_XSLT_FILENAME(Code)(Java Doc)
protected boolean m_caching(Code)(Java Doc)
protected Cache m_calendarCache(Code)(Java Doc)
protected EntityManager m_entityManager(Code)(Java Doc)
protected Hashtable m_eventCaches(Code)(Java Doc)
protected IdManager m_idManager(Code)(Java Doc)
protected MemoryService m_memoryService(Code)(Java Doc)
protected String m_relativeAccessPoint(Code)(Java Doc)
protected ServerConfigurationService m_serverConfigurationService(Code)(Java Doc)
protected Storage m_storage(Code)(Java Doc)

Methods inherited from org.sakaiproject.calendar.impl.BaseCalendarService
public CalendarEdit addCalendar(String ref) throws IdUsedException, IdInvalidException(Code)(Java Doc)
public boolean allowEditCalendar(String ref)(Code)(Java Doc)
public boolean allowGetCalendar(String ref)(Code)(Java Doc)
public boolean allowImportCalendar(String ref)(Code)(Java Doc)
public boolean allowMergeCalendar(String ref)(Code)(Java Doc)
public String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)(Code)(Java Doc)
public String calendarPdfReference(String context, String id, int scheduleType, String timeRangeString, String userName, TimeRange dailyTimeRange)(Code)(Java Doc)
public String calendarReference(String context, String id)(Code)(Java Doc)
public void cancelCalendar(CalendarEdit edit)(Code)(Java Doc)
public void commitCalendar(CalendarEdit edit)(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)
public void destroy()(Code)(Java Doc)
protected void disableSchedule(String context)(Code)(Java Doc)
protected String dumpTimeRange(TimeRange timeRange)(Code)(Java Doc)
public CalendarEdit editCalendar(String ref) throws IdUnusedException, PermissionException, InUseException(Code)(Java Doc)
protected void enableSchedule(String context)(Code)(Java Doc)
protected String eventId(String secure)(Code)(Java Doc)
public String eventReference(String context, String calendarId, String id)(Code)(Java Doc)
protected Calendar findCalendar(String ref)(Code)(Java Doc)
protected void generatePDF(Document doc, String xslFileName, OutputStream streamOut)(Code)(Java Doc)
protected void generateXMLDocument(int scheduleType, Document doc, TimeRange timeRange, TimeRange dailyTimeRange, List calendarReferenceList, String userID)(Code)(Java Doc)
protected void generateXMLEvent(Document doc, Element parent, CalendarEvent event, String eventNodeName, TimeRange containingTimeRange, boolean forceMinimumTime, boolean hideGroupIfNoSpace, boolean performEndTimeKludge)(Code)(Java Doc)
protected String getAccessPoint(boolean relative)(Code)(Java Doc)
public Calendar getCalendar(String ref) throws IdUnusedException, PermissionException(Code)(Java Doc)
public List getCalendars()(Code)(Java Doc)
protected TimeRange getDailyStartTimeFromParameters(Properties parameters)(Code)(Java Doc)
public Time getDate(Entity r)(Code)(Java Doc)
protected String getDateFromTime(Time time)(Code)(Java Doc)
public Entity getEntity(Reference ref)(Code)(Java Doc)
public Collection getEntityAuthzGroups(Reference ref, String userId)(Code)(Java Doc)
public String getEntityDescription(Reference ref)(Code)(Java Doc)
public ResourceProperties getEntityResourceProperties(Reference ref)(Code)(Java Doc)
public String getEntityUrl(Reference ref)(Code)(Java Doc)
public CalendarEventVector getEvents(List references, TimeRange range)(Code)(Java Doc)
protected TimeRange getFullDayTimeRangeFromYMD(int year, int month, int day)(Code)(Java Doc)
public HttpAccess getHttpAccess()(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
protected long getNumberDaysGivenTwoDates(int startYear, int startMonth, int startDay, int endYear, int endMonth, int endDay)(Code)(Java Doc)
public String getOwnerId(Entity r)(Code)(Java Doc)
protected int getScheduleTypeFromParameterList(Properties parameters)(Code)(Java Doc)
protected String getSiteName(CalendarEvent event)(Code)(Java Doc)
protected String getString(String name, String dflt)(Code)(Java Doc)
protected TimeRange getTimeRangeFromParameters(Properties parameters)(Code)(Java Doc)
protected ArrayList getTimeRangeListForWeek(TimeRange timeRange, List calendarReferenceList, TimeRange dailyTimeRange, boolean skipSaturdayAndSundayIfNoEvents)(Code)(Java Doc)
protected TimeRange getTimeRangeParameterByName(Properties parameters, String name)(Code)(Java Doc)
protected String getTimeString(Time time)(Code)(Java Doc)
protected String getUniqueId()(Code)(Java Doc)
protected String getXSLFileNameForScheduleType(int scheduleType)(Code)(Java Doc)
public void init()(Code)(Java Doc)
public boolean isDraft(Entity r)(Code)(Java Doc)
protected List makeListViewTimeRangeList(TimeRange timeRange, List calendarReferenceList)(Code)(Java Doc)
public String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)(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)
public RecurrenceRule newRecurrence(String frequency)(Code)(Java Doc)
public RecurrenceRule newRecurrence(String frequency, int interval)(Code)(Java Doc)
public RecurrenceRule newRecurrence(String frequency, int interval, int count)(Code)(Java Doc)
public RecurrenceRule newRecurrence(String frequency, int interval, Time until)(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)
abstract protected Storage newStorage()(Code)(Java Doc)
public boolean parseEntityReference(String reference, Reference ref)(Code)(Java Doc)
protected Time performEndMinuteKludge(TimeBreakdown breakDown)(Code)(Java Doc)
protected void printSchedule(Properties parameters, StringBuffer contentType, OutputStream os) throws PermissionException(Code)(Java Doc)
public Object refresh(Object key, Object oldValue, Event event)(Code)(Java Doc)
public void removeCalendar(CalendarEdit calendar) throws PermissionException(Code)(Java Doc)
protected TimeRange roundRangeToMinimumTimeInterval(TimeRange timeRange)(Code)(Java Doc)
protected BaseCalendarService service()(Code)(Java Doc)
public void setCaching(String value)(Code)(Java Doc)
public void setEntityManager(EntityManager service)(Code)(Java Doc)
public void setIdManager(IdManager manager)(Code)(Java Doc)
public void setMemoryService(MemoryService service)(Code)(Java Doc)
public void setServerConfigurationService(ServerConfigurationService service)(Code)(Java Doc)
protected TimeRange shrinkTimeRangeToCurrentMonth(TimeRange expandedTimeRange)(Code)(Java Doc)
protected ArrayList splitTimeRangeIntoListOfSingleDayTimeRanges(TimeRange timeRange, TimeRange dailyTimeRange)(Code)(Java Doc)
public Object[] storageFields(Entity r)(Code)(Java Doc)
public void transferCopyEntities(String fromContext, String toContext, List resourceIds)(Code)(Java Doc)
protected TimeRange trimTimeRange(TimeRange containingRange, TimeRange rangeToTrim)(Code)(Java Doc)
protected void unlock(String lock, String reference) throws PermissionException(Code)(Java Doc)
protected boolean unlockCheck(String lock, String reference)(Code)(Java Doc)
public boolean willArchiveMerge()(Code)(Java Doc)
protected Element writeStringNodeToDom(Document doc, Element parent, String nodeName, String nodeValue)(Code)(Java Doc)

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.