public interface CalendarOperations
Interface defining operations for integrating with Google Calendar.
See the reference documentation at
http://developers.google.com/google-apps/calendar/v3/reference/.
Requires one of the following OAuth scope(s):
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PRIMARY_CALENDAR_ID
The identifier for the user's primary calendar.
|
| Modifier and Type | Method and Description |
|---|---|
CalendarListQueryBuilder |
calendarListQuery()
Create a builder pattern object for refining a query that lists the calendars
that are accessible to the authenticated user.
|
void |
deleteEvent(java.lang.String calendarId,
java.lang.String eventId,
boolean sendNotifications)
Delete an existing event.
|
EventListQueryBuilder |
eventListQuery(java.lang.String calendarId)
Create a builder pattern object for refining a query that lists the events that
are accessible to the authenticated user.
|
Calendar |
getCalendar(java.lang.String calendarId)
Fetch a calendar from the user's calendar list.
|
Event |
getEvent(java.lang.String calendarId,
java.lang.String eventId)
Fetch an event from the specified calendar.
|
Event |
quickAddEvent(java.lang.String calendarId,
java.lang.String specification,
boolean sendNotifications)
Create a new event in the specified calendar, based on the specification text.
|
void |
updateEvent(java.lang.String calendarId,
Event event,
boolean sendNotifications)
Update an existing event.
|
static final java.lang.String PRIMARY_CALENDAR_ID
CalendarListQueryBuilder calendarListQuery()
Calendar getCalendar(java.lang.String calendarId)
calendarId - the calendar's identifier. The special identifier "primary"
(PRIMARY_CALENDAR_ID) may be used.EventListQueryBuilder eventListQuery(java.lang.String calendarId)
calendarId - the calendar's identifier. The special identifier "primary"
(PRIMARY_CALENDAR_ID) may be used.Event getEvent(java.lang.String calendarId, java.lang.String eventId)
calendarId - the calendar's identifier. The special identifier "primary"
(PRIMARY_CALENDAR_ID) may be used.eventId - the event's identifier.Event quickAddEvent(java.lang.String calendarId, java.lang.String specification, boolean sendNotifications)
calendarId - the calendar's identifier. The special identifier "primary"
(PRIMARY_CALENDAR_ID) may be used.specification - text describing the event to be created.sendNotifications - whether to send notifications about the creation of the event.void deleteEvent(java.lang.String calendarId,
java.lang.String eventId,
boolean sendNotifications)
calendarId - the identifier of the calendar containing the event. The special
identifier "primary" (PRIMARY_CALENDAR_ID) may be used.eventId - the event's identifier.sendNotifications - whether to send notifications about the deletion of the event.void updateEvent(java.lang.String calendarId,
Event event,
boolean sendNotifications)
calendarId - The identifier of the calendar containing the event.
The special identifier "primary" (PRIMARY_CALENDAR_ID) may be used.event - The event to update.sendNotifications - Whether to send notifications about the update to the event.