Class CtagHandler
java.lang.Object
org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
org.apache.openmeetings.service.calendar.caldav.handler.CtagHandler
- All Implemented Interfaces:
CalendarHandler
Class for Syncing through the help of Ctags.
It checks if the Ctag of the Calendar has changed.
If it has then update the events, otherwise leave it as it is.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.jackrabbit.webdav.property.DavPropertyNamestatic final org.apache.jackrabbit.webdav.xml.NamespaceFields inherited from class org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
appointmentDao, calendar, client, context, path, utils -
Constructor Summary
ConstructorsConstructorDescriptionCtagHandler(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 TypeMethodDescriptionbooleandeleteItem(Appointment appointment) Delete Appointment on the server.booleanupdateItem(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
-
NAMESPACE_CALSERVER
public static final org.apache.jackrabbit.webdav.xml.Namespace NAMESPACE_CALSERVER -
DNAME_GETCTAG
public static final org.apache.jackrabbit.webdav.property.DavPropertyName DNAME_GETCTAG
-
-
Constructor Details
-
CtagHandler
public CtagHandler(String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils)
-
-
Method Details
-
updateItem
Description copied from interface:CalendarHandlerFunction 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:
Truewhen the updation is a success elseFalse
-
deleteItem
Description copied from interface:CalendarHandlerDelete Appointment on the server.- Parameters:
appointment- Appointment to delete- Returns:
Truewhen the deletion is a success elseFalse
-