Class MultigetHandler
java.lang.Object
org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
org.apache.openmeetings.service.calendar.caldav.handler.MultigetHandler
- All Implemented Interfaces:
CalendarHandler
Class used to sync a given list of hrefs and update or add new Appointments,
whenever feasible. This class cannot be used to update or delete Appointments,
which are handled seperately. We use the Calendar-Multiget Report Method to
handle this type of query.
- See Also:
-
Field Summary
Fields inherited from class org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
appointmentDao, calendar, client, context, path, utils -
Constructor Summary
ConstructorsConstructorDescriptionMultigetHandler(List<String> hrefs, boolean onlyEtag, String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils) MultigetHandler(List<String> hrefs, 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
-
Constructor Details
-
MultigetHandler
public MultigetHandler(List<String> hrefs, boolean onlyEtag, String path, OmCalendar calendar, org.apache.http.client.HttpClient client, org.apache.http.client.protocol.HttpClientContext context, AppointmentDao appointmentDao, IcalUtils utils) -
MultigetHandler
public MultigetHandler(List<String> hrefs, 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
-