public class EventsDaoHTCImpl extends Object implements EventsDao, org.springframework.context.ApplicationContextAware
| Constructor and Description | 
|---|
EventsDaoHTCImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addEvent(String startTime,
                String endTime,
                String eventTitle,
                String eventBody,
                String eventDateString,
                String user,
                String timeZoneId)
/**
 This is HTC's test implementation for storing the events in a MySQL table
 Since this issue is for a Proof of Concept, we have used a rudimentary DB
 implementation
 The addEvent method adds an event into the Calendar. 
 | 
void | 
deleteEvent(int eventId)
The deleteEvent method removes one existing event from the calendar 
 | 
org.springframework.context.ApplicationContext | 
getApplicationContext()  | 
Connection | 
getDatabaseConnection()
The getDatabaseConnection method provides a connection between Java class
 and the database 
 | 
static String | 
getESTTimeForGoogleEvents(String time)  | 
int | 
getEventId()
getEventId method decides what will be the unique id for next event. 
 | 
List | 
getEvents(String startDate,
                  String endDate)
By default the getEventsData method returns list of events into the
 Calendar for the current week. 
 | 
String | 
getLocalTimeFromEST(String time)  | 
TimeZone | 
getLocalTimeZone()  | 
void | 
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)  | 
void | 
storeGoogleEventsIntoTable(List<com.google.gdata.data.calendar.CalendarEventEntry> entries)
This is HTC's test implementation for storing the events in a MySQL table
 Since this issue is for a Proof of Concept, we have used a rudimentary DB
 implementation\
 storeGoogleEventsIntoTable method will insert the Google Calendar events
 into MySQL table. 
 | 
String | 
synchronizeWithGoogleAccount(String emailId,
                                                        String password)
The synchronizeWithGoogleAccount method gets all the events (within the
 specified date range) from user's Google Calendar. 
 | 
void | 
updateEvent(int eventId,
                      String startTime,
                      String endTime,
                      String eventTitle,
                      String eventBody,
                      String eventDateString,
                      String user)
The updateEvent method modifies the existing event. 
 | 
public EventsDaoHTCImpl()
public void addEvent(String startTime, String endTime, String eventTitle, String eventBody, String eventDateString, String user, String timeZoneId)
startTime - start time for calendar's eventendTime - end time for calendar's eventeventTitle - title for the calendar's eventeventBody - brief description about calendar's eventeventDateString - actual date of eventuser - username of the calendar's userpublic static String getESTTimeForGoogleEvents(String time)
public List getEvents(String startDate, String endDate)
startDate - start date of calendar's current weekendDate - end date of calendar's current weekpublic String getLocalTimeFromEST(String time)
public TimeZone getLocalTimeZone()
public void updateEvent(int eventId, String startTime, String endTime, String eventTitle, String eventBody, String eventDateString, String user)
eventId - unique id of one eventstartTime - start time for calendar's eventendTime - end time for calendar's eventeventTitle - title for the calendar's eventeventBody - brief description about calendar's eventeventDateString - actual date of eventpublic void deleteEvent(int eventId)
eventId - unique id for one eventpublic Connection getDatabaseConnection()
public String synchronizeWithGoogleAccount(String emailId, String password)
emailId - unique emailId for Google user.password - password for specific Google Email Account.public void storeGoogleEventsIntoTable(List<com.google.gdata.data.calendar.CalendarEventEntry> entries)
public int getEventId()
public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the applicationContext to setCopyright © 2011-2013 The Kuali Foundation. All Rights Reserved.