java.lang.Object | ||
↳ | org.mule.modules.google.AbstractGoogleOAuthConnector | |
↳ | org.mule.modules.google.contact.GoogleContactsConnector |
![]() |
![]() |
Cloud connector for the Google Contacts API v3 using OAuth2 for initialization. Uses OAuth2 for authentication
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BATCH_REQUEST | ||||||||||
String | CONTACT_BATCH_FEED_URL | ||||||||||
String | CONTACT_FEED_URL | ||||||||||
String | GROUP_BATCH_FEED_URL | ||||||||||
String | GROUP_FEED_URL | ||||||||||
int | MAX_BATCH_OPERATIONS |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
accessToken | |||||||||||
applicationName | Application name registered on Google API console | ||||||||||
consumerKey | The OAuth2 consumer key | ||||||||||
consumerSecret | The OAuth2 consumer secret | ||||||||||
contactBatchUrl | Contacts batch atom feed url | ||||||||||
contactFeedURL | Contacts atom feed url | ||||||||||
contactsService | The actual instance of the com.google.gdata.client.contacts.ContactsService | ||||||||||
groupBatchUrl | Groups batch atom feed url | ||||||||||
groupFeedURL | Groups atom feed url | ||||||||||
scope | The OAuth2 scopes you want to request |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a group to a given contact
| |||||||||||
This tag encloses a series of nested processors that perform operations on contacts entities
| |||||||||||
The function of this sub processor is to add updated operations into the current batch for the given entries
This processor is intended to be used nested inside batch-contacts or batch-groups, although there's no syntactic
validation inside the connector's XSD enforcing that.
| |||||||||||
This tag encloses a series of nested processors that perform operations on group entities.
| |||||||||||
The function of this sub processor is to add insert operations into the current batch for the given entries
This processor is intended to be used nested inside batch-contacts or batch-groups, although there's no syntactic
validation inside the connector's XSD enforcing that.
| |||||||||||
The function of this sub processor is to add updated operations into the current batch for the given entries
This processor is intended to be used nested inside batch-contacts or batch-groups, although there's no syntactic
validation inside the connector's XSD enforcing that.
| |||||||||||
Inserts a new group
| |||||||||||
Deletes a given contact
| |||||||||||
Deletes a contact signaled by its id
| |||||||||||
Deletes the photo associated to a given contact
| |||||||||||
Deletes the photo of a contact signaled by its id
| |||||||||||
Deletes the given group
| |||||||||||
Deletes a group signaled by its id
| |||||||||||
Downloads the photo of a given contact
| |||||||||||
Downloads the photo of a contact signaled by its id contact and returns it as an input stream
| |||||||||||
Retrieves a contact by id
| |||||||||||
Retrieves all the contacts matching the given criterias.
| |||||||||||
Retrieves a group by id
| |||||||||||
Retrieves a group with the given name
| |||||||||||
Returns all the groups the authenticated user has access to
| |||||||||||
Inserts a new contact
| |||||||||||
Updates a contact entry
| |||||||||||
Updates the photo of a contact signaled by its id taken a java.io.InputStream as an input
| |||||||||||
Updates the state of a group
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Application name registered on Google API console
The OAuth2 consumer key
The OAuth2 consumer secret
Contacts batch atom feed url
Contacts atom feed url
The actual instance of the com.google.gdata.client.contacts.ContactsService
Groups batch atom feed url
Groups atom feed url
The OAuth2 scopes you want to request
Adds a group to a given contact
contact | An instance of com.google.gdata.data.contacts.ContactEntry representing the contact to be updated |
---|---|
groupId | The id of the group |
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
This tag encloses a series of nested processors that perform operations on contacts entities
batchId | An id to identify the batch |
---|---|
operations | A list with instances of org.mule.api.NestedProcessor representing the operations to be performed in the batch |
Exception | if an error is encountered |
---|
The function of this sub processor is to add updated operations into the current batch for the given entries
This processor is intended to be used nested inside batch-contacts or batch-groups, although there's no syntactic validation inside the connector's XSD enforcing that. However, if you don't use it that way, then it's most likely to throw a java.lang.IllegalStateExceptionmessage | The current mule message |
---|---|
operationId | Id to identify this particular operation inside the batch |
entries | A collection with instances of com.google.gdata.data.BaseEntry to be batch deleted |
IllegalStateException | if not nested in batch-contact or batch-group |
---|
This tag encloses a series of nested processors that perform operations on group entities. According to the API's specification the maximum number of operations allowed in one batch is 100. Thus, this processor will automatically group the operations in batches of 100.
According to the API's specification the maximum number of operations allowed in one batch is 100. Thus, this processor will automatically group the operations in batches of 100.batchId | An id to identify the batch |
---|---|
operations | A list with instances of org.mule.api.NestedProcessor representing the operations to be performed in the batch |
Exception | if an error is encountered |
---|
The function of this sub processor is to add insert operations into the current batch for the given entries
This processor is intended to be used nested inside batch-contacts or batch-groups, although there's no syntactic validation inside the connector's XSD enforcing that. However, if you don't use it that way, then it's most likely to throw a java.lang.IllegalStateExceptionmessage | The current mule message |
---|---|
operationId | Id to identify this particular operation inside the batch |
entries | A collection with instances of com.google.gdata.data.BaseEntry to be batch inserted |
IllegalStateException | if not nested in batch-contact or batch-group |
---|
The function of this sub processor is to add updated operations into the current batch for the given entries
This processor is intended to be used nested inside batch-contacts or batch-groups, although there's no syntactic validation inside the connector's XSD enforcing that. However, if you don't use it that way, then it's most likely to throw a java.lang.IllegalStateExceptionmessage | The current mule message |
---|---|
operationId | Id to identify this particular operation inside the batch |
entries | A collection with instances of com.google.gdata.data.BaseEntry to be batch updated |
IllegalStateException | if not nested in batch-contact or batch-group |
---|
Inserts a new group
group | An instance of com.google.gdata.data.contacts.ContactGroupEntry representing the group to be inserted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Deletes a given contact
contact | The contact to be deleted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Deletes a contact signaled by its id
contactId | The id of the contact to be deleted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Deletes the photo associated to a given contact
contact | An instance of com.google.gdata.data.contacts.ContactEntry representing the contact whose photo we want deleted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Deletes the photo of a contact signaled by its id
contactId | The id of the contact whose photo we want to delete |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Deletes the given group
group | An instance of com.google.gdata.data.contacts.ContactGroupEntry representing the group to be deleted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Deletes a group signaled by its id
groupId | The id of the group to be deleted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Downloads the photo of a given contact
contact | The contact whose photo we want |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Downloads the photo of a contact signaled by its id contact and returns it as an input stream
id | The id of the contact whose photo we want |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Retrieves a contact by id
id | The id of the contact |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Retrieves all the contacts matching the given criterias. If a criteria is not provided then it's not used in the filtering. Thus, providing no criteria equals getting all contacts
updatedMin | Sets the minimum updated timestamp used for the query. Only entries with an updated timestamp equal to or later than the specified timestamp will be returned. |
---|---|
updatedMax | Sets the maximum updated timestamp used for the query. Only entries with an updated timestamp earlier than the specified timestamp will be returned. |
datetimeFormat | The pattern to be used for parsing updatedMin and updatedMax |
fullTextQuery | Sets the full text query string that will be used for the query. |
sortOrder | Valid values are NONE, ASCENDING and DESCENDING |
showDeleted | Wether to show deleted entries or not |
orderBy | The field to be used when sorting. Valid values are NONE, LAST_MODIFIED and EDITED |
groupId | Only show contacts from a given group |
pagingConfiguration | The paging configuration object |
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Retrieves a group by id
id | The id of the group to be returned |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Retrieves a group with the given name
groupName | The name of the group you want |
---|
null
if the group doesn't existIOException | if there's a communication error with google's servers |
---|---|
Exception | if the operation raises an error on google's end |
Returns all the groups the authenticated user has access to
updatedMin | Sets the minimum updated timestamp used for the query. Only entries with an updated timestamp equal to or later than the specified timestamp will be returned. |
---|---|
updatedMax | Sets the maximum updated timestamp used for the query. Only entries with an updated timestamp earlier than the specified timestamp will be returned. |
datetimeFormat | The date pattern used to parse updatedMin and updatedMax |
pagingConfiguration | The pagingConfiguration object |
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Inserts a new contact
contact | An instance of com.google.gdata.data.contacts.ContactEntry representing the contact to be inserted |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
accessToken |
---|
applicationName |
---|
consumerKey |
---|
consumerSecret |
---|
scope |
---|
contactsService |
---|
Updates a contact entry
contact | An instance of com.google.gdata.data.contacts.ContactEntry representing the contact to be updated |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
URISyntaxException | If the generation of the URL for the update endpoint fails |
IllegalArgumentException | If the generation of the URL for the update endpoint fails |
Updates the photo of a contact signaled by its id taken a java.io.InputStream as an input
contactId | The id of the contact whose photo we want to update |
---|---|
in | A java.io.InputStream with the photo's binary content |
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |
Updates the state of a group
group | An instance of com.google.gdata.data.contacts.ContactGroupEntry with the group's new state |
---|
IOException | if there's a communication error with google's servers |
---|---|
ServiceException | if the operation raises an error on google's end |