public class

GmailConnector

extends BaseGmailConnector
java.lang.Object
   ↳ org.mule.modules.google.AbstractGoogleOAuthConnector
     ↳ org.mule.module.gmail.BaseGmailConnector
       ↳ org.mule.module.gmail.GmailConnector
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Gmail cloud connector. This connector covers the standard IMAP protocol plus Google's extensions for Gmail. This implementation uses OAuth2 for authentication

Summary

[Expand]
Inherited Constants
From class org.mule.modules.google.AbstractGoogleOAuthConnector
Fields
private String accessToken
private String applicationName Application name registered on Google API console
private String consumerKey The OAuth2 consumer key
private String consumerSecret The OAuth2 consumer secret
private IdentifierPolicy identifierPolicy This policy represents which id we want to use to represent each google account.
private static Boolean providerInited
private String scope The OAuth scopes you want to request
[Expand]
Inherited Fields
From class org.mule.modules.google.AbstractGoogleOAuthConnector
Public Constructors
GmailConnector()
Public Methods
String getAccessToken()
String getAccessTokenId()
String getApplicationName()
String getConsumerKey()
String getConsumerSecret()
IdentifierPolicy getIdentifierPolicy()
String getScope()
void init()
void setAccessToken(String accessToken)
void setApplicationName(String applicationName)
void setConsumerKey(String consumerKey)
void setConsumerSecret(String consumerSecret)
void setIdentifierPolicy(IdentifierPolicy identifierPolicy)
void setScope(String scope)
Protected Methods
Store getStore(String username, String password)
[Expand]
Inherited Methods
From class org.mule.module.gmail.BaseGmailConnector
From class org.mule.modules.google.AbstractGoogleOAuthConnector
From class java.lang.Object

Fields

private String accessToken

private String applicationName

Application name registered on Google API console

private String consumerKey

The OAuth2 consumer key

private String consumerSecret

The OAuth2 consumer secret

private IdentifierPolicy identifierPolicy

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

private static Boolean providerInited

private String scope

The OAuth scopes you want to request

Public Constructors

public GmailConnector ()

Public Methods

public String getAccessToken ()

public String getAccessTokenId ()

public String getApplicationName ()

public String getConsumerKey ()

public String getConsumerSecret ()

public IdentifierPolicy getIdentifierPolicy ()

public String getScope ()

public void init ()

public void setAccessToken (String accessToken)

Parameters
accessToken

public void setApplicationName (String applicationName)

Parameters
applicationName

public void setConsumerKey (String consumerKey)

Parameters
consumerKey

public void setConsumerSecret (String consumerSecret)

Parameters
consumerSecret

public void setIdentifierPolicy (IdentifierPolicy identifierPolicy)

Parameters
identifierPolicy

public void setScope (String scope)

Parameters
scope

Protected Methods

protected Store getStore (String username, String password)

Parameters
username
password