Class WebDAVSyncHandler
java.lang.Object
org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
org.apache.openmeetings.service.calendar.caldav.handler.WebDAVSyncHandler
- All Implemented Interfaces:
CalendarHandler
Class used to sync events using WebDAV-Sync defined in RFC 6578.
This handles the additional HTTP Status Code 507, which specifies for further sync required.
For syncing, it gets a Sync Report as response, which specifies which files have been added,
modified or deleted.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.jackrabbit.webdav.property.DavPropertyName
Fields inherited from class org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
appointmentDao, calendar, client, context, path, utils
-
Constructor Summary
ConstructorDescriptionWebDAVSyncHandler
(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
-
Field Details
-
DNAME_SYNCTOKEN
public static final org.apache.jackrabbit.webdav.property.DavPropertyName DNAME_SYNCTOKEN
-
-
Constructor Details
-
WebDAVSyncHandler
public WebDAVSyncHandler(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.
Note: This Uses EtagsHandler for Updating.- Parameters:
appointment
- Appointment to create/update.- Returns:
True
when the updation is a success elseFalse
-
deleteItem
Delete Appointment on the server.
Note: This Uses EtagsHandler for Deleting.- Parameters:
appointment
- Appointment to delete- Returns:
True
when the deletion is a success elseFalse
-