public class CalDavCalendarSource

  1. Object
  2. CalendarSource
  3. CalDavCalendarSource
Standards-based CalDAV source. Pass the account’s calendar-home URL; the source discovers collections below it and uses RFC 6578 sync tokens when the server advertises them.

Constructors

public CalDavCalendarSource(String id, String displayName, String calendarHomeUrl, CalDavAuthentication authentication)
public CalDavCalendarSource(String id, String displayName, String calendarHomeUrl, CalDavAuthentication authentication, CalendarHttpTransport transport)

Methods

public CalendarCapabilities getCapabilities()
public CalendarAuthorizationStatus getAuthorizationStatus(CalendarAccess access)
public AsyncResource<CalendarAuthorizationStatus> requestAuthorization(CalendarAccess access)
public AsyncResource<CalendarPage<CalendarInfo>> listCalendars(CalendarInfo.ContentType type, String pageToken)
public AsyncResource<CalendarPage<CalendarEvent>> queryEvents(CalendarQuery query)
public AsyncResource<CalendarEvent> getEvent(String calendarId, String eventId)
public AsyncResource<CalendarEvent> saveEvent(CalendarEvent event, CalendarMutationScope scope)
public AsyncResource<Boolean> deleteEvent(String calendarId, String eventId, CalendarMutationScope scope, String version)
public AsyncResource<CalendarPage<CalendarTask>> queryTasks(CalendarQuery query)
public AsyncResource<CalendarTask> getTask(String calendarId, String taskId)
public AsyncResource<CalendarTask> saveTask(CalendarTask task, CalendarMutationScope scope)
public AsyncResource<Boolean> deleteTask(String calendarId, String taskId, CalendarMutationScope scope, String version)

Inherited methods

Constructor details

CalDavCalendarSource

public CalDavCalendarSource(String id, String displayName, String calendarHomeUrl, CalDavAuthentication authentication)

CalDavCalendarSource

public CalDavCalendarSource(String id, String displayName, String calendarHomeUrl, CalDavAuthentication authentication, CalendarHttpTransport transport)

Method details

getCapabilities

public CalendarCapabilities getCapabilities()

getAuthorizationStatus

public CalendarAuthorizationStatus getAuthorizationStatus(CalendarAccess access)

requestAuthorization

public AsyncResource<CalendarAuthorizationStatus> requestAuthorization(CalendarAccess access)

listCalendars

public AsyncResource<CalendarPage<CalendarInfo>> listCalendars(CalendarInfo.ContentType type, String pageToken)

queryEvents

public AsyncResource<CalendarPage<CalendarEvent>> queryEvents(CalendarQuery query)

getEvent

public AsyncResource<CalendarEvent> getEvent(String calendarId, String eventId)

saveEvent

public AsyncResource<CalendarEvent> saveEvent(CalendarEvent event, CalendarMutationScope scope)

deleteEvent

public AsyncResource<Boolean> deleteEvent(String calendarId, String eventId, CalendarMutationScope scope, String version)

queryTasks

public AsyncResource<CalendarPage<CalendarTask>> queryTasks(CalendarQuery query)

getTask

public AsyncResource<CalendarTask> getTask(String calendarId, String taskId)

saveTask

public AsyncResource<CalendarTask> saveTask(CalendarTask task, CalendarMutationScope scope)

deleteTask

public AsyncResource<Boolean> deleteTask(String calendarId, String taskId, CalendarMutationScope scope, String version)