Class Calendar
- java.lang.Object
-
- org.springframework.social.google.api.ApiEntity
-
- org.springframework.social.google.api.calendar.Calendar
-
public class Calendar extends ApiEntity
Model class representing a calendar within Google Calendar.See the reference documentation at https://developers.google.com/google-apps/calendar/v3/reference/calendarList#resource.
- Author:
- Martin Wink
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCalendar.EventReminderDetails of event reminders.static classCalendar.NotificationDetails of an individual notification.static classCalendar.NotificationSettingsDetails of notifications.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCalendar()Constructor protected so instances must be retrieved from Google Calendar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionRolegetAccessRole()The effective access role that the authenticated user has on this calendar.StringgetBackgroundColor()The background colour of this calendar in hexadecimal format "#rrggbb".StringgetColorId()The colour of this calendar.List<Calendar.EventReminder>getDefaultReminders()The default reminders that the authenticated user has for this calendar.StringgetDescription()The description of this calendar.StringgetForegroundColor()The foreground colour of this calendar in hexadecimal format "#rrggbb".StringgetLocation()The geographic location of this calendar as free-form text.Calendar.NotificationSettingsgetNotificationSettings()The notifications that the authenticated user is receiving for this calendar.StringgetSummary()The title of this calendar.StringgetSummaryOverride()The overriding summary that the authenticated user has set for this calendar.TimeZonegetTimeZone()The time zone of this calendar.booleanisDeleted()Whether this calendar has been deleted from the calendar list.booleanisHidden()Whether this calendar has been hidden from the list.booleanisPrimary()Whether this calendar is the primary calendar of the authenticated user.booleanisSelected()Whether this calendar's content is displayed in the calendar UI.
-
-
-
Method Detail
-
getSummary
public String getSummary()
The title of this calendar.- Returns:
- the value or
nullif none.
-
getDescription
public String getDescription()
The description of this calendar.- Returns:
- the value or
nullif none.
-
getLocation
public String getLocation()
The geographic location of this calendar as free-form text.- Returns:
- the value or
nullif none.
-
getTimeZone
public TimeZone getTimeZone()
The time zone of this calendar.- Returns:
- the value or
nullif none.
-
getSummaryOverride
public String getSummaryOverride()
The overriding summary that the authenticated user has set for this calendar.- Returns:
- the value or
nullif none.
-
getColorId
public String getColorId()
The colour of this calendar.- Returns:
- the value or
nullif none.
-
getBackgroundColor
public String getBackgroundColor()
The background colour of this calendar in hexadecimal format "#rrggbb".- Returns:
- the value or
nullif none.
-
getForegroundColor
public String getForegroundColor()
The foreground colour of this calendar in hexadecimal format "#rrggbb".- Returns:
- the value or
nullif none.
-
isHidden
public boolean isHidden()
Whether this calendar has been hidden from the list.- Returns:
- the value.
-
isSelected
public boolean isSelected()
Whether this calendar's content is displayed in the calendar UI.- Returns:
- the value.
-
getAccessRole
public PermissionRole getAccessRole()
The effective access role that the authenticated user has on this calendar.- Returns:
- the value or
nullif none.
-
getDefaultReminders
public List<Calendar.EventReminder> getDefaultReminders()
The default reminders that the authenticated user has for this calendar.- Returns:
- the value or
nullif none.
-
getNotificationSettings
public Calendar.NotificationSettings getNotificationSettings()
The notifications that the authenticated user is receiving for this calendar.- Returns:
- the value or
nullif none.
-
isPrimary
public boolean isPrimary()
Whether this calendar is the primary calendar of the authenticated user.- Returns:
- the value.
-
isDeleted
public boolean isDeleted()
Whether this calendar has been deleted from the calendar list.- Returns:
- the value.
-
-