View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package org.kuali.mobility.calendars.dao;
6   
7   import java.util.ArrayList;
8   import java.util.List;
9   import org.springframework.context.ApplicationContext;
10  import org.springframework.context.ApplicationContextAware;
11  
12  /**
13   * KMEEventsImpl class provides method for adding a new event, displaying
14   * existing events, updating and deleting event on calendar.
15   *
16   * @author Nurul Haque Murshed <nurul.murshed@htcindia.com>
17   */
18  public class KMEEventsImpl implements CalendarsEventsDao, ApplicationContextAware {
19      
20      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(KMEEventsImpl.class);
21      private ApplicationContext applicationContext;
22  
23      /**
24       * The addEvent method adds an event into the Calendar.
25       *
26       * @param startTime start time for calendar's event
27       * @param endTime end time for calendar's event
28       * @param eventTitle title for the calendar's event
29       * @param eventBody brief description about calendar's event
30       * @param eventDateString actual date of event
31       * @param user username of the calendar's user
32       */
33      public void addEvent(String startTime, String endTime, String eventTitle, String eventBody, String eventDateString, String user, String timeZoneId) {
34      	
35      }
36  
37      /**
38       * By default the getEventsData method returns list of events into the
39       * Calendar for the current week.
40       *
41       * @param startDate start date of calendar's current week
42       * @param endDate end date of calendar's current week
43       */
44      public List getEvents(String startDate, String endDate) {
45          List eventList = new ArrayList();
46  
47          return eventList;
48      }
49  
50      /**
51       * The updateEvent method modifies the existing event.
52       *
53       * @param eventId unique id for event
54       * @param startTime start time for calendar's event
55       * @param endTime end time for calendar's event
56       * @param eventTitle title for the calendar's event
57       * @param eventBody brief description about calendar's event
58       * @param eventDateString actual date for event
59       */
60      public void updateEvent(int eventId, String startTime, String endTime, String eventTitle, String eventBody, String eventDateString,
61              String user) {
62      }
63  
64      /**
65       * deleteEvent method removes one existing event from calendar
66       *
67       * @param eventId unique id of event
68       */
69      public void deleteEvent(int eventId) {
70      }
71  
72      public void getCALDAVEvents() {
73      }
74  
75      public String synchronizeWithGoogleAccount(String emailId, String password) {
76          return "";
77      }
78  
79      /**
80       * @return the applicationContext
81       */
82      public ApplicationContext getApplicationContext() {
83          return applicationContext;
84      }
85  
86      /**
87       * @param applicationContext the applicationContext to set
88       */
89      public void setApplicationContext(ApplicationContext applicationContext) {
90          this.applicationContext = applicationContext;
91      }
92  }