Class AbstractCalendarHandler
- java.lang.Object
-
- org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
-
- All Implemented Interfaces:
CalendarHandler
- Direct Known Subclasses:
CtagHandler,EtagsHandler,MultigetHandler,WebDAVSyncHandler
public abstract class AbstractCalendarHandler extends Object implements CalendarHandler
Abstract Class which contains all the common code for all Handlers.
-
-
Field Summary
Fields Modifier and Type Field Description protected AppointmentDaoappointmentDaoprotected OmCalendarcalendarprotected org.apache.http.client.HttpClientclientprotected org.apache.http.client.protocol.HttpClientContextcontextprotected Stringpathprotected IcalUtilsutils
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCalendarHandler(String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OmCalendarsyncItems()Function to update all items in the CalDAV calendar.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openmeetings.service.calendar.caldav.handler.CalendarHandler
deleteItem, updateItem
-
-
-
-
Field Detail
-
client
protected org.apache.http.client.HttpClient client
-
context
protected org.apache.http.client.protocol.HttpClientContext context
-
calendar
protected OmCalendar calendar
-
path
protected String path
-
utils
protected IcalUtils utils
-
appointmentDao
protected AppointmentDao appointmentDao
-
-
Constructor Detail
-
AbstractCalendarHandler
protected AbstractCalendarHandler(String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils)
-
-
Method Detail
-
syncItems
public OmCalendar syncItems()
Function to update all items in the CalDAV calendar. The owner of the appointments created are the same as the owner of the calendar.- Specified by:
syncItemsin interfaceCalendarHandler- Returns:
- Returns the updated calendar after updation of all events.
-
-