Class EventListQueryBuilderImpl
- java.lang.Object
-
- org.springframework.social.google.api.query.impl.QueryBuilderImpl<Q,T>
-
- org.springframework.social.google.api.query.impl.ApiQueryBuilderImpl<EventListQueryBuilder,EventPage>
-
- org.springframework.social.google.api.calendar.impl.EventListQueryBuilderImpl
-
- All Implemented Interfaces:
EventListQueryBuilder,ApiQueryBuilder<EventListQueryBuilder,EventPage>,QueryBuilder<EventListQueryBuilder,EventPage>
public class EventListQueryBuilderImpl extends ApiQueryBuilderImpl<EventListQueryBuilder,EventPage> implements EventListQueryBuilder
EventListQueryBuilderimplementation.- Author:
- Martin Wink
-
-
Field Summary
-
Fields inherited from class org.springframework.social.google.api.query.impl.QueryBuilderImpl
feedUrl
-
-
Constructor Summary
Constructors Constructor Description EventListQueryBuilderImpl(String urlTemplate, String calendarId, Class<EventPage> type, org.springframework.web.client.RestTemplate restTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventListQueryBuilderalwaysIncludeEmail(boolean alwaysIncludeEmail)Specifies whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e.EventListQueryBuilderfromPage(String pageToken)EventListQueryBuilderiCalUid(String iCalUid)Specifies event ID in the iCalendar format to be included in the response.EventListQueryBuildermaxAttendees(int maxAttendees)The maximum number of attendees to include in the response.EventListQueryBuilderorderBy(OrderBy orderBy)The order of the events returned in the result.EventListQueryBuildershowDeleted(boolean showDeleted)Whether to include deleted events (with status equals "cancelled") in the result.EventListQueryBuildershowHiddenInvitations(boolean showHiddenInvitations)Whether to include hidden invitations in the result.EventListQueryBuildersingleEvents(boolean singleEvents)Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves.EventListQueryBuildertimeMax(int year, int month, int day)Upper bound (exclusive) for an event's start time to filter by.EventListQueryBuildertimeMax(Date timeMax)Upper bound (exclusive) for an event's start time to filter by.EventListQueryBuildertimeMin(int year, int month, int day)Lower bound (inclusive) for an event's end time to filter by.EventListQueryBuildertimeMin(Date timeMin)Lower bound (inclusive) for an event's end time to filter by.EventListQueryBuildertimeZone(TimeZone timeZone)Time zone used in the response.EventListQueryBuilderupdatedMin(Date updatedMin)Lower bound for an event's last modification time to filter by.-
Methods inherited from class org.springframework.social.google.api.query.impl.ApiQueryBuilderImpl
getPage
-
Methods inherited from class org.springframework.social.google.api.query.impl.QueryBuilderImpl
appendQueryParam, appendQueryParam, appendQueryParam, appendQueryParam, appendQueryParam, appendQueryParam, build, castThis, encode, maxResultsNumber
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.social.google.api.query.ApiQueryBuilder
getPage
-
Methods inherited from interface org.springframework.social.google.api.query.QueryBuilder
maxResultsNumber
-
-
-
-
Method Detail
-
fromPage
public EventListQueryBuilder fromPage(String pageToken)
- Specified by:
fromPagein interfaceApiQueryBuilder<EventListQueryBuilder,EventPage>- Overrides:
fromPagein classApiQueryBuilderImpl<EventListQueryBuilder,EventPage>
-
timeMin
public EventListQueryBuilder timeMin(Date timeMin)
Description copied from interface:EventListQueryBuilderLower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.- Specified by:
timeMinin interfaceEventListQueryBuilder- Parameters:
timeMin- the detailed time.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
timeMin
public EventListQueryBuilder timeMin(int year, int month, int day)
Description copied from interface:EventListQueryBuilderLower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.- Specified by:
timeMinin interfaceEventListQueryBuilder- Parameters:
year- the full year, for example 2014.month- the month, for example 1 for January.day- the day in the month, starting at 1.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
timeMax
public EventListQueryBuilder timeMax(Date timeMax)
Description copied from interface:EventListQueryBuilderUpper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.- Specified by:
timeMaxin interfaceEventListQueryBuilder- Parameters:
timeMax- the detailed time.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
timeMax
public EventListQueryBuilder timeMax(int year, int month, int day)
Description copied from interface:EventListQueryBuilderUpper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.- Specified by:
timeMaxin interfaceEventListQueryBuilder- Parameters:
year- the full year, for example 2014.month- the month, for example 1 for January.day- the day in the month, starting at 1.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
orderBy
public EventListQueryBuilder orderBy(OrderBy orderBy)
Description copied from interface:EventListQueryBuilderThe order of the events returned in the result. Optional. The default is an unspecified, stable order.- Specified by:
orderByin interfaceEventListQueryBuilder- Parameters:
orderBy- the required order.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
singleEvents
public EventListQueryBuilder singleEvents(boolean singleEvents)
Description copied from interface:EventListQueryBuilderWhether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default isfalse.- Specified by:
singleEventsin interfaceEventListQueryBuilder- Parameters:
singleEvents- whether to expand recurring events into single events.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
showDeleted
public EventListQueryBuilder showDeleted(boolean showDeleted)
Description copied from interface:EventListQueryBuilderWhether to include deleted events (with status equals "cancelled") in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included ifEventListQueryBuilder.showDeleted(boolean)andEventListQueryBuilder.singleEvents(boolean)are bothfalse. IfEventListQueryBuilder.showDeleted(boolean)andEventListQueryBuilder.singleEvents(boolean)are bothtrue, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default isfalse.- Specified by:
showDeletedin interfaceEventListQueryBuilder- Parameters:
showDeleted- whether to include deleted events.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
showHiddenInvitations
public EventListQueryBuilder showHiddenInvitations(boolean showHiddenInvitations)
Description copied from interface:EventListQueryBuilderWhether to include hidden invitations in the result. Optional. The default isfalse.- Specified by:
showHiddenInvitationsin interfaceEventListQueryBuilder- Parameters:
showHiddenInvitations- whether to include hidden invitations.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
timeZone
public EventListQueryBuilder timeZone(TimeZone timeZone)
Description copied from interface:EventListQueryBuilderTime zone used in the response. Optional. The default is the time zone of the calendar.- Specified by:
timeZonein interfaceEventListQueryBuilder- Parameters:
timeZone- the time zone.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
updatedMin
public EventListQueryBuilder updatedMin(Date updatedMin)
Description copied from interface:EventListQueryBuilderLower bound for an event's last modification time to filter by. When specified, entries deleted since this time will always be included regardless of showDeleted. Optional. The default is not to filter by last modification time.- Specified by:
updatedMinin interfaceEventListQueryBuilder- Parameters:
updatedMin- the lower bound for an event's last modification time.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
alwaysIncludeEmail
public EventListQueryBuilder alwaysIncludeEmail(boolean alwaysIncludeEmail)
Description copied from interface:EventListQueryBuilderSpecifies whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default isfalse.- Specified by:
alwaysIncludeEmailin interfaceEventListQueryBuilder- Parameters:
alwaysIncludeEmail- whether to always include email.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
iCalUid
public EventListQueryBuilder iCalUid(String iCalUid)
Description copied from interface:EventListQueryBuilderSpecifies event ID in the iCalendar format to be included in the response. Optional.- Specified by:
iCalUidin interfaceEventListQueryBuilder- Parameters:
iCalUid- the event ID in the iCalendar format.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
maxAttendees
public EventListQueryBuilder maxAttendees(int maxAttendees)
Description copied from interface:EventListQueryBuilderThe maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.- Specified by:
maxAttendeesin interfaceEventListQueryBuilder- Parameters:
maxAttendees- the maximum number of attendees to include.- Returns:
- this
EventListQueryBuilder, for refining the query.
-
-