| java.lang.Object | ||
| ↳ | org.mule.modules.google.AbstractGoogleOAuthConnector | |
| ↳ | org.mule.module.google.calendar.GoogleCalendarConnector | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Google Calendars Cloud connector. This connector covers almost all the Google Calendar API v3 using OAuth2 for authentication.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | NEXT_PAGE_TOKEN | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.mule.modules.google.AbstractGoogleOAuthConnector
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| accessToken | |||||||||||
| applicationName | Application name registered on Google API console | ||||||||||
| client | The google api client | ||||||||||
| clientFactory | Factory to instantiate the underlying google client. | ||||||||||
| consumerKey | The OAuth2 consumer key | ||||||||||
| consumerSecret | The OAuth2 consumer secret | ||||||||||
| identifierPolicy | This policy represents which id we want to use to represent each google account. | ||||||||||
| scope | The OAuth scopes you want to request | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.mule.modules.google.AbstractGoogleOAuthConnector
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Deletes many events in a batch
| |||||||||||
Deletes many events in a batch
| |||||||||||
Inserts many calendars in a batch
| |||||||||||
Inserts many events as a batch
| |||||||||||
Updates many calendars in a batch
| |||||||||||
Updates many events in a batch
| |||||||||||
Clears all the events on the calendar referenced by id
| |||||||||||
Inserts a new calendar associated with the user that owns the current OAuth token
| |||||||||||
Deletes an ACL rule on a calendar
| |||||||||||
Deletes a particular calendar referenced by id
| |||||||||||
Deletes a calendar list referenced by id
| |||||||||||
Deletes an event from a specified calendar
| |||||||||||
Retrieves a Rule by Id
| |||||||||||
Returns all the Acl rules for a particular calendar
| |||||||||||
Returns a particular calendar specified by id
| |||||||||||
Returns an instance of
CalendarList listing the
calendars of the user that owns the OAuth access token. | |||||||||||
Returns a particular calendar list identified by id.
| |||||||||||
Retrieves an event by id
| |||||||||||
Searchs and returns events matching the criteria parameters.
| |||||||||||
Returns the free time the authenticated user has between two times
| |||||||||||
For recurring events, it returns one instance of
Event for each recurrence instance
For supporting google's paging mechanism, the next page token is store on the message property
"GoogleCalendar_NEXT_PAGE_TOKEN". | |||||||||||
Imports the given event into a calendar
| |||||||||||
Initializes the connector.
| |||||||||||
Inserts a new ACL rule in a calendar
| |||||||||||
Inserts the given event into an specified calendar
| |||||||||||
Moves a calendar form one calendar to another
| |||||||||||
Shortcut method for creating an event with nothing but a description text.
| |||||||||||
Updates a rule on a given calendar
| |||||||||||
Updates a calendar referenced by id with the content of one specified or taken from the message payload.
| |||||||||||
Updates a calendar list referenced by id with the content of one specified or taken from the message payload.
| |||||||||||
Updates an event.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.mule.modules.google.AbstractGoogleOAuthConnector
| |||||||||||
From class
java.lang.Object
| |||||||||||
Application name registered on Google API console
The google api client
Factory to instantiate the underlying google client. Usually you don't need to override this. Most common use case of a custom value here is testing.
The OAuth2 consumer key
The OAuth2 consumer secret
This policy represents which id we want to use to represent each google account. PROFILE means that we want the google profile id. That means, the user's primary key in google's DB. This is a long number represented as a string. EMAIL means you want to use the account's email address
The OAuth scopes you want to request
Deletes many events in a batch
| calendars | A collection with instances of @{link org.mule.module.google.calendar.model.Calendar} that are to be deleted |
|---|
| IOException | if there's a communication error |
|---|
Deletes many events in a batch
| calendarId | The id of the calendar containing the events to be deleted |
|---|---|
| calendarEvents | A collection with instances of Event that are to be deleted |
| IOException | if there's a communication error |
|---|
Inserts many calendars in a batch
| calendars | A collection with instances of @{link org.mule.module.google.calendar.model.Calendar} that are to be inserted |
|---|
| IOException | if there's a communication error |
|---|
Inserts many events as a batch
| calendarId | The id of the calendar that's receiving the calendars |
|---|---|
| calendarEvents | A collection with instances of Event that are to be inserted |
| IOException | if there's a communication error |
|---|
Updates many calendars in a batch
| calendars | A collection with instances of @{link org.mule.module.google.calendar.model.Calendar} that are to be updated |
|---|
| IOException | if there's a communication error |
|---|
Updates many events in a batch
| calendarId | The id of the calendar containing the events to be updated |
|---|---|
| calendarEvents | A collection with instances of Event that are to be updated |
| IOException | if there's a communication error |
|---|
Clears all the events on the calendar referenced by id
| id | The id of the calendar you want to clear |
|---|
| IOException | if there's a communication error |
|---|
Inserts a new calendar associated with the user that owns the current OAuth token
| calendar | An instance of Calendar with the information
of the calendar you want to insert |
|---|
Calendar representing the calendar
that was created| IOException | if there's a communication error |
|---|
Deletes an ACL rule on a calendar
| calendarId | The id of the calendar loosing a rule |
|---|---|
| ruleId | The id of the rule to be deleted |
| IOException | if there's a communication error |
|---|
Deletes a particular calendar referenced by id
| id | The id of the calendar you want to delete |
|---|
| IOException | if there's a communication error |
|---|
Deletes a calendar list referenced by id
| id | The id of the calendar list you want to delete |
|---|
| IOException | if there's a communication error |
|---|
Deletes an event from a specified calendar
| calendarId | The id of the calendar containing the event |
|---|---|
| eventId | The event's id |
| IOException | if there's a communication error |
|---|
Retrieves a Rule by Id
| calendarId | The id of the calendar containing the rule |
|---|---|
| ruleId | The id of the rule |
AclRule| IOException | if there's a communication error |
|---|
Returns all the Acl rules for a particular calendar
| calendarId | The id of the calendar containing the rules |
|---|
AclRule| IOException | if there's a communication error |
|---|
Returns a particular calendar specified by id
| id | The id of the calendar you want to get |
|---|
Calendar| IOException | if there's a communication error |
|---|
Returns an instance of CalendarList listing the
calendars of the user that owns the OAuth access token.
Optional parameters are not considered in the search if not specified.
For supporting google's paging mechanism, the next page token is store on the message property
"GoogleCalendar_NEXT_PAGE_TOKEN". If there isn't a next page, then the property is removed
| message | The current mule message |
|---|---|
| maxResults | The max number of results you want to get |
| pageToken | Token specifying which result page to return |
| showHidden | If true, hidden calendars will be returned |
CalendarList| IOException | if there's a communication error |
|---|
Returns a particular calendar list identified by id. The user owning the OAuth token needs to have permissions for reading that list
| id | The id of the calendar list you want to get |
|---|
CalendarList| IOException | if there's a communication error |
|---|
Retrieves an event by id
| calendarId | The id of the calendar containing the event |
|---|---|
| eventId | The event's id |
Event representing the event on google's servers| IOException | if there's a communication error |
|---|
Searchs and returns events matching the criteria parameters. If a criteria is not specified, then it is not applied For supporting google's paging mechanism, the next page token is stored on the message property "GoogleCalendar_NEXT_PAGE_TOKEN". If there isn't a next page, then the property is removed
| message | The current mule message |
|---|---|
| calendarId | The id of the colendar that contains the events |
| icalUID | Specifies iCalendar UID (iCalUID) of events to be included in the response |
| maxAttendees | The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. |
| maxResults | Maximum number of events returned on one result page |
| orderBy | The order of the events returned in the result |
| pageToken | Token specifying which result page to return |
| query | Free text search terms to find events that match these terms in any field, except for extended properties |
| showDeleted | Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. |
| showHiddenInvitations | Whether to include hidden invitations in the result |
| 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. |
| timeMin | Lower bound timestamp (inclusive) for an event's end time to filter by |
| timeMax | Upper bound timestamp (exclusive) for an event's start time to filter by |
| datetimeFormat | The timestamp format for timeMin, timeMax and lastUpdated. It defaults to RFC 3369 (yyyy-MM-dd'T'HH:mm:ssZ) |
| timezone | Timezone in which timeMin, timeMax and lastUpdated is to be considered on |
| lastUpdated | Lower bound timestamp for an event's last modification time to filter by |
Event| IOException | if there's a communication error |
|---|
Returns the free time the authenticated user has between two times
| timeMin | The start of the interval for the query |
|---|---|
| timeMax | The end of the interval for the query |
| ids | List of calendars and/or groups identifiers to query. |
| timezone | Time zone used in the response |
| datetimeFormat | The format to be used to parse timeMin and timeMax |
| maxCalendarExpansion | Maximal number of calendars for which FreeBusy information is to be provided |
FreeBusy| IOException | if there's a communication error |
|---|
For recurring events, it returns one instance of
Event for each recurrence instance
For supporting google's paging mechanism, the next page token is store on the message property
"GoogleCalendar_NEXT_PAGE_TOKEN". If there isn't a next page, then the property is removed
| message | The current mule message |
|---|---|
| calendarId | The id of the calendar containing the recurrent event |
| eventId | The id of a recurrent event |
| maxAttendess | The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. |
| maxResults | Maximum number of events returned on one result page |
| showDeleted | Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. |
| timezone | Time zone used in the response |
| originalStart | The original start time of the instance in the result |
Event| IOException | if there's a communication error |
|---|
Initializes the connector. if no clientFactory was provided, then a default org.mule.module.google.calendar.DefaultGoogleCalendarClientFactory.DefaultGoogleCalendarClientFactor wil be used instead
Inserts a new ACL rule in a calendar
| calendarId | The id of the calendar affected by the rule |
|---|---|
| scope | The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default". |
| scopeType | The type of the scope. Possible values are: - "default" - The public scope. This is the default value. "user" - Limits the scope to a single user. "group" - Limits the scope to a group. "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not. |
| role | The role assigned to the scope. Possible values are: "none" - Provides no access. - "freeBusyReader" Provides read access to free/busy information. "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs. |
AclRule representing the newly created rule| IOException | if there's a communication error |
|---|
Inserts the given event into an specified calendar
| calendarId | The id of the calendar that's to contain the event |
|---|---|
| calendarEvent | An instance of Event representing the event to be inserted |
Event representing the event inserted on google's servers| IOException | if there's a communication error |
|---|
Moves a calendar form one calendar to another
| sourceCalendarId | The id of the calendar that currently has the event |
|---|---|
| eventId | The id of the event to be moved |
| targetCalendarId | The id of the calendar to receive the event |
Event representing the moved event| IOException | if there's a communication error |
|---|
Shortcut method for creating an event with nothing but a description text.
| calendarId | The id of the calendar to contain the new event |
|---|---|
| text | Description of the new event |
Event representing the newly created event| IOException | if there's a communication error |
|---|
| accessToken |
|---|
| applicationName |
|---|
| consumerKey |
|---|
| consumerSecret |
|---|
| identifierPolicy |
|---|
| scope |
|---|
Updates a rule on a given calendar
| calendarId | The id of the calendar containing the rule |
|---|---|
| ruleId | The id of the rule to be modified |
| aclRule | An instance of AclRule containing the new state of the rule |
AclRule representing the new updated state of the rule| IOException | if there's a communication error |
|---|
Updates a calendar referenced by id with the content of one specified or taken from the message payload.
| id | The id of the calendar you want to get |
|---|---|
| calendar | An instance of Calendar with the content you want to have reflected |
Calendar representing the updated calendar's state| IOException | if there's a communication error |
|---|
Updates a calendar list referenced by id with the content of one specified or taken from the message payload.
| id | The id of the calendar list you want to update |
|---|---|
| calendarList | An instance of CalendarList with the content you want to have reflected |
CalendarList with reflecting the calendar's updated state| IOException | if there's a communication error |
|---|
Updates an event.
| calendarId | The id of the calendar that contains the event to be updated |
|---|---|
| eventId | The if of the event to be updated |
| calendarEvent | An instance of Event with the event's new state |
Event representing the updated event| IOException | if there's a communication error |
|---|