public class MicrosoftCalendarSource
- Object
- CalendarSource
- OAuthCalendarSource
- MicrosoftCalendarSource
Microsoft Graph calendar and Microsoft To Do source. No client secret or
refresh token is stored by this class.
Fields
public static final String SCOPE_CALENDARS = "Calendars.ReadWrite" | |
public static final String SCOPE_TASKS = "Tasks.ReadWrite" |
Constructors
public MicrosoftCalendarSource(CalendarTokenProvider tokens) | |
public MicrosoftCalendarSource(CalendarTokenProvider tokens, CalendarHttpTransport transport) |
Methods
Inherited methods
Field details
SCOPE_CALENDARS
public static final String SCOPE_CALENDARS = "Calendars.ReadWrite"SCOPE_TASKS
public static final String SCOPE_TASKS = "Tasks.ReadWrite"Constructor details
MicrosoftCalendarSource
public MicrosoftCalendarSource(CalendarTokenProvider tokens)MicrosoftCalendarSource
public MicrosoftCalendarSource(CalendarTokenProvider tokens, CalendarHttpTransport transport)Method details
getCapabilities
public CalendarCapabilities getCapabilities()listCalendars
public AsyncResource<CalendarPage<CalendarInfo>> listCalendars(CalendarInfo.ContentType type, String pageToken)saveCalendar
public AsyncResource<CalendarInfo> saveCalendar(CalendarInfo calendar)deleteCalendar
public AsyncResource<Boolean> deleteCalendar(String calendarId)deleteCalendar
public AsyncResource<Boolean> deleteCalendar(CalendarInfo calendar)Deletes a calendar or task list. Sources that expose both use the
content type to select the correct provider endpoint.
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)respondToEvent
public AsyncResource<CalendarEvent> respondToEvent(String calendarId, String eventId, CalendarAttendee.Response response, String comment)queryFreeBusy
public AsyncResource<List<FreeBusyInterval>> queryFreeBusy(List<String> ids, Instant start, Instant end)queryTasks
public AsyncResource<CalendarPage<CalendarTask>> queryTasks(CalendarQuery query)getTask
public AsyncResource<CalendarTask> getTask(String list, String id)saveTask
public AsyncResource<CalendarTask> saveTask(CalendarTask task, CalendarMutationScope scope)deleteTask
public AsyncResource<Boolean> deleteTask(String list, String id, CalendarMutationScope scope, String version)