Class CtagHandler

  • All Implemented Interfaces:
    CalendarHandler

    public class CtagHandler
    extends AbstractCalendarHandler
    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:
    CalendarHandler
    • Field Detail

      • 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 Detail

      • 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 Detail

      • 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