java.lang.Object
org.apache.openmeetings.service.calendar.caldav.handler.AbstractCalendarHandler
org.apache.openmeetings.service.calendar.caldav.handler.MultigetHandler
All Implemented Interfaces:
CalendarHandler

public class MultigetHandler extends AbstractCalendarHandler
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:
  • 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

      public boolean updateItem(Appointment appointment)
      Description copied from interface: CalendarHandler
      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 else False
    • deleteItem

      public boolean deleteItem(Appointment appointment)
      Description copied from interface: CalendarHandler
      Delete Appointment on the server.
      Parameters:
      appointment - Appointment to delete
      Returns:
      True when the deletion is a success else False