Class EtagsHandler
java.lang.Object
org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
org.apache.openmeetings.service.calendar.caldav.handler.EtagsHandler
- All Implemented Interfaces:
CalendarHandler
Class which handles the Syncing through the use of Etags.
First it sends a Calendar-query, and checks all the etags for events.
Then, for each href and etag, we get, something like key-value pair.
We then check for three things:
- Addition of a new event.
- Modification of an existing event.
- Deletion of events which are not in the response.
-
Field Summary
Fields inherited from class org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
appointmentDao, calendar, client, context, path, utils
-
Constructor Summary
ConstructorDescriptionEtagsHandler
(String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils) -
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteItem
(Appointment appointment) Delete Appointment on the server.boolean
updateItem
(Appointment appointment) Function for create/updating multiple appointment on the server.Methods inherited from class org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
syncItems
-
Constructor Details
-
EtagsHandler
public EtagsHandler(String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils)
-
-
Method Details
-
updateItem
Function for create/updating multiple appointment on the server. Performs modification alongside of creation new events on the server.- Parameters:
appointment
- Appointment to create/update.- Returns:
True
when the updation is a success elseFalse
-
deleteItem
Delete Appointment on the server.- Parameters:
appointment
- Appointment to delete- Returns:
True
when the deletion is a success elseFalse
-