public class

GoogleContactsConnectorOAuthManager

extends GoogleContactsConnectorHttpCallbackAdapter
implements Capabilities MetadataAware MuleContextAware Initialisable OAuthManager<C extends OAuthAdapter> ProcessAdapter<O>
java.lang.Object
   ↳ org.mule.modules.google.contact.adapters.GoogleContactsConnectorHttpCallbackAdapter
     ↳ org.mule.modules.google.contact.oauth.GoogleContactsConnectorOAuthManager

Class Overview

A GoogleContactsConnectorOAuthManager is a wrapper around GoogleContactsConnector that adds access token management capabilities to the pojo.

Summary

Constants
String DEVKIT_BUILD
String DEVKIT_VERSION
String MODULE_NAME
String MODULE_VERSION
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
Fields
private ObjectStore accessTokenObjectStore
private GenericKeyedObjectPool accessTokenPool Access Token Pool
private KeyedPoolableObjectFactory accessTokenPoolFactory Access Token Pool Factory
private String accessTokenUrl
private String applicationName
private String authorizationUrl
private String consumerKey
private String consumerSecret
private GoogleContactsConnectorOAuth2Adapter defaultUnauthorizedConnector
protected FlowConstruct flowConstruct Flow Construct
private IdentifierPolicy identifierPolicy
private static Logger logger
protected MuleContext muleContext muleContext
private String scope
[Expand]
Inherited Fields
From class org.mule.modules.google.contact.adapters.GoogleContactsConnectorHttpCallbackAdapter
Public Constructors
GoogleContactsConnectorOAuthManager()
Public Methods
GoogleContactsConnectorOAuth2Adapter acquireAccessToken(String userId)
String authorize(Map<String, String> extraParameters, String authorizationUrl, String redirectUri)
GoogleContactsConnectorOAuth2Adapter createAccessToken(String verifier)
void destroyAccessToken(String userId, GoogleContactsConnectorOAuth2Adapter connector)
void dispose()
ObjectStore getAccessTokenObjectStore()
Retrieves accessTokenObjectStore
KeyedPoolableObjectFactory getAccessTokenPoolFactory()
Retrieves accessTokenPoolFactory
String getAccessTokenUrl()
Retrieves accessTokenUrl
String getApplicationName()
Retrieves applicationName
String getAuthorizationUrl()
Retrieves authorizationUrl
String getConsumerKey()
Retrieves consumerKey
String getConsumerSecret()
Retrieves consumerSecret
GoogleContactsConnectorOAuth2Adapter getDefaultUnauthorizedConnector()
Retrieves defaultUnauthorizedConnector
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
IdentifierPolicy getIdentifierPolicy()
Retrieves identifierPolicy
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
<P> ProcessTemplate<P, GoogleContactsConnectorOAuth2Adapter> getProcessTemplate()
String getScope()
Retrieves scope
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseAccessToken(String userId, GoogleContactsConnectorOAuth2Adapter connector)
void setAccessTokenObjectStore(ObjectStore value)
Sets accessTokenObjectStore
void setAccessTokenUrl(String value)
Sets accessTokenUrl
void setApplicationName(String value)
Sets applicationName
void setAuthorizationUrl(String value)
Sets authorizationUrl
void setConsumerKey(String value)
Sets consumerKey
void setConsumerSecret(String value)
Sets consumerSecret
void setFlowConstruct(FlowConstruct flowConstruct)
void setIdentifierPolicy(IdentifierPolicy value)
Sets identifierPolicy
void setMuleContext(MuleContext muleContext)
void setScope(String value)
Sets scope
void start()
void stop()
[Expand]
Inherited Methods
From class org.mule.modules.google.contact.adapters.GoogleContactsConnectorHttpCallbackAdapter
From class java.lang.Object
From interface org.mule.api.Capabilities
From interface org.mule.api.MetadataAware
From interface org.mule.api.adapter.HttpCallbackAdapter
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.oauth.OAuthManager
From interface org.mule.api.process.ProcessAdapter

Constants

private static final String DEVKIT_BUILD

Constant Value: "master.1476.47e461c"

private static final String DEVKIT_VERSION

Constant Value: "3.4.0-RC1"

private static final String MODULE_NAME

Constant Value: "Google Contacts"

private static final String MODULE_VERSION

Constant Value: "1.0.5-SNAPSHOT"

Fields

private ObjectStore accessTokenObjectStore

private GenericKeyedObjectPool accessTokenPool

Access Token Pool

private KeyedPoolableObjectFactory accessTokenPoolFactory

Access Token Pool Factory

private String accessTokenUrl

private String applicationName

private String authorizationUrl

private String consumerKey

private String consumerSecret

private GoogleContactsConnectorOAuth2Adapter defaultUnauthorizedConnector

protected FlowConstruct flowConstruct

Flow Construct

private IdentifierPolicy identifierPolicy

private static Logger logger

protected MuleContext muleContext

muleContext

private String scope

Public Constructors

public GoogleContactsConnectorOAuthManager ()

Public Methods

public GoogleContactsConnectorOAuth2Adapter acquireAccessToken (String userId)

Parameters
userId
Throws
Exception

public String authorize (Map<String, String> extraParameters, String authorizationUrl, String redirectUri)

Parameters
extraParameters
authorizationUrl
redirectUri

public GoogleContactsConnectorOAuth2Adapter createAccessToken (String verifier)

Parameters
verifier
Throws
Exception

public void destroyAccessToken (String userId, GoogleContactsConnectorOAuth2Adapter connector)

Parameters
userId
connector
Throws
Exception

public void dispose ()

public ObjectStore getAccessTokenObjectStore ()

Retrieves accessTokenObjectStore

public KeyedPoolableObjectFactory getAccessTokenPoolFactory ()

Retrieves accessTokenPoolFactory

public String getAccessTokenUrl ()

Retrieves accessTokenUrl

public String getApplicationName ()

Retrieves applicationName

public String getAuthorizationUrl ()

Retrieves authorizationUrl

public String getConsumerKey ()

Retrieves consumerKey

public String getConsumerSecret ()

Retrieves consumerSecret

public GoogleContactsConnectorOAuth2Adapter getDefaultUnauthorizedConnector ()

Retrieves defaultUnauthorizedConnector

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public IdentifierPolicy getIdentifierPolicy ()

Retrieves identifierPolicy

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public ProcessTemplate<P, GoogleContactsConnectorOAuth2Adapter> getProcessTemplate ()

public String getScope ()

Retrieves scope

public void initialise ()

Throws
InitialisationException

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseAccessToken (String userId, GoogleContactsConnectorOAuth2Adapter connector)

Parameters
userId
connector
Throws
Exception

public void setAccessTokenObjectStore (ObjectStore value)

Sets accessTokenObjectStore

Parameters
value Value to set

public void setAccessTokenUrl (String value)

Sets accessTokenUrl

Parameters
value Value to set

public void setApplicationName (String value)

Sets applicationName

Parameters
value Value to set

public void setAuthorizationUrl (String value)

Sets authorizationUrl

Parameters
value Value to set

public void setConsumerKey (String value)

Sets consumerKey

Parameters
value Value to set

public void setConsumerSecret (String value)

Sets consumerSecret

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct flowConstruct)

Parameters
flowConstruct

public void setIdentifierPolicy (IdentifierPolicy value)

Sets identifierPolicy

Parameters
value Value to set

public void setMuleContext (MuleContext muleContext)

Parameters
muleContext

public void setScope (String value)

Sets scope

Parameters
value Value to set

public void start ()

Throws
MuleException

public void stop ()

Throws
MuleException