public class CalendarTemplate extends AbstractGoogleApiOperations implements CalendarOperations
CalendarOperations implementation.isAuthorized, restTemplatePRIMARY_CALENDAR_ID| Constructor and Description |
|---|
CalendarTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorized) |
| 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.
|
deleteEntity, deleteEntity, getEntity, patch, requireAuthorization, saveEntity, saveEntitypublic CalendarTemplate(org.springframework.web.client.RestTemplate restTemplate,
boolean isAuthorized)
public CalendarListQueryBuilder calendarListQuery()
CalendarOperationscalendarListQuery in interface CalendarOperationspublic EventListQueryBuilder eventListQuery(java.lang.String calendarId)
CalendarOperationseventListQuery in interface CalendarOperationscalendarId - the calendar's identifier. The special identifier "primary"
(CalendarOperations.PRIMARY_CALENDAR_ID) may be used.public Calendar getCalendar(java.lang.String calendarId)
CalendarOperationsgetCalendar in interface CalendarOperationscalendarId - the calendar's identifier. The special identifier "primary"
(CalendarOperations.PRIMARY_CALENDAR_ID) may be used.public Event getEvent(java.lang.String calendarId, java.lang.String eventId)
CalendarOperationsgetEvent in interface CalendarOperationscalendarId - the calendar's identifier. The special identifier "primary"
(CalendarOperations.PRIMARY_CALENDAR_ID) may be used.eventId - the event's identifier.public Event quickAddEvent(java.lang.String calendarId, java.lang.String specification, boolean sendNotifications)
CalendarOperationsquickAddEvent in interface CalendarOperationscalendarId - the calendar's identifier. The special identifier "primary"
(CalendarOperations.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.public void deleteEvent(java.lang.String calendarId,
java.lang.String eventId,
boolean sendNotifications)
CalendarOperationsdeleteEvent in interface CalendarOperationscalendarId - the identifier of the calendar containing the event. The special
identifier "primary" (CalendarOperations.PRIMARY_CALENDAR_ID) may be used.eventId - the event's identifier.sendNotifications - whether to send notifications about the deletion of the event.public void updateEvent(java.lang.String calendarId,
Event event,
boolean sendNotifications)
CalendarOperationsupdateEvent in interface CalendarOperationscalendarId - The identifier of the calendar containing the event.
The special identifier "primary" (CalendarOperations.PRIMARY_CALENDAR_ID) may be used.event - The event to update.sendNotifications - Whether to send notifications about the update to the event.