Class CalendarSource
java.lang.Object
com.codename1.calendar.CalendarSource
- Direct Known Subclasses:
CalDavCalendarSource, LocalCalendarSource, OAuthCalendarSource
Base contract shared by local stores and online providers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddChangeListener(CalendarChangeListener listener) protected static <T> AsyncResource<T> completed(T value) deleteCalendar(String calendarId) deleteEvent(String calendarId, String eventId, CalendarMutationScope scope, String version) deleteTask(String calendarId, String taskId, CalendarMutationScope scope, String version) protected final voidfireChange(CalendarChange change) getAuthorizationStatus(CalendarAccess access) final Stringfinal StringgetId()booleanlistCalendars(CalendarInfo.ContentType type, String pageToken) queryEvents(CalendarQuery query) queryFreeBusy(List<String> calendarIds, Instant startTime, Instant endTime) queryTasks(CalendarQuery query) final voidremoveChangeListener(CalendarChangeListener listener) requestAuthorization(CalendarAccess access) respondToEvent(String calendarId, String eventId, CalendarAttendee.Response response, String comment) saveCalendar(CalendarInfo calendar) saveEvent(CalendarEvent event, CalendarMutationScope scope) saveTask(CalendarTask task, CalendarMutationScope scope) protected static <T> AsyncResource<T> unavailable(String message) protected static <T> AsyncResource<T> unsupported(String operation)
-
Constructor Details
-
CalendarSource
-
-
Method Details
-
getId
-
getDisplayName
-
isAvailable
public boolean isAvailable() -
getCapabilities
-
getAuthorizationStatus
-
requestAuthorization
-
listCalendars
public AsyncResource<CalendarPage<CalendarInfo>> listCalendars(CalendarInfo.ContentType type, String pageToken) -
saveCalendar
-
deleteCalendar
-
queryEvents
-
getEvent
-
saveEvent
-
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> calendarIds, Instant startTime, Instant endTime) -
queryTasks
-
getTask
-
saveTask
-
deleteTask
public AsyncResource<Boolean> deleteTask(String calendarId, String taskId, CalendarMutationScope scope, String version) -
addChangeListener
-
removeChangeListener
-
fireChange
-
unsupported
-
completed
-