public class

GoogleTasksConnectorOAuthManager

extends GoogleTasksConnectorHttpCallbackAdapter
implements Capabilities MetadataAware MuleContextAware Initialisable OAuthManager<C extends OAuthAdapter> ProcessAdapter<O>
java.lang.Object
   ↳ org.mule.module.google.task.adapters.GoogleTasksConnectorHttpCallbackAdapter
     ↳ org.mule.module.google.task.oauth.GoogleTasksConnectorOAuthManager

Class Overview

A GoogleTasksConnectorOAuthManager is a wrapper around GoogleTasksConnector 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 String accessTokenUrl
private String applicationName
private String authorizationUrl
private String consumerKey
private String consumerSecret
private GoogleTasksConnectorOAuth2Adapter defaultUnauthorizedConnector
protected FlowConstruct flowConstruct Flow Construct
private static Logger logger
protected MuleContext muleContext muleContext
private String scope
[Expand]
Inherited Fields
From class org.mule.module.google.task.adapters.GoogleTasksConnectorHttpCallbackAdapter
Public Constructors
GoogleTasksConnectorOAuthManager()
Public Methods
GoogleTasksConnectorOAuth2Adapter acquireAccessToken(String userId)
String authorize(Map<String, String> extraParameters, String authorizationUrl, String redirectUri)
GoogleTasksConnectorOAuth2Adapter createAccessToken(String verifier)
void destroyAccessToken(String userId, GoogleTasksConnectorOAuth2Adapter connector)
void dispose()
ObjectStore getAccessTokenObjectStore()
Retrieves accessTokenObjectStore
String getAccessTokenUrl()
Retrieves accessTokenUrl
String getApplicationName()
Retrieves applicationName
String getAuthorizationUrl()
Retrieves authorizationUrl
String getConsumerKey()
Retrieves consumerKey
String getConsumerSecret()
Retrieves consumerSecret
GoogleTasksConnectorOAuth2Adapter getDefaultUnauthorizedConnector()
Retrieves defaultUnauthorizedConnector
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
<P> ProcessTemplate<P, GoogleTasksConnectorOAuth2Adapter> getProcessTemplate()
String getScope()
Retrieves scope
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseAccessToken(String userId, GoogleTasksConnectorOAuth2Adapter 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 setMuleContext(MuleContext muleContext)
void setScope(String value)
Sets scope
void start()
void stop()
[Expand]
Inherited Methods
From class org.mule.module.google.task.adapters.GoogleTasksConnectorHttpCallbackAdapter
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.1292.1980b66"

private static final String DEVKIT_VERSION

Constant Value: "3.3.1"

private static final String MODULE_NAME

Constant Value: "Google Tasks Connector"

private static final String MODULE_VERSION

Constant Value: "1.0"

Fields

private ObjectStore accessTokenObjectStore

private GenericKeyedObjectPool accessTokenPool

Access Token Pool

private String accessTokenUrl

private String applicationName

private String authorizationUrl

private String consumerKey

private String consumerSecret

private GoogleTasksConnectorOAuth2Adapter defaultUnauthorizedConnector

protected FlowConstruct flowConstruct

Flow Construct

private static Logger logger

protected MuleContext muleContext

muleContext

private String scope

Public Constructors

public GoogleTasksConnectorOAuthManager ()

Public Methods

public GoogleTasksConnectorOAuth2Adapter acquireAccessToken (String userId)

Parameters
userId
Throws
Exception

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

Parameters
extraParameters
authorizationUrl
redirectUri

public GoogleTasksConnectorOAuth2Adapter createAccessToken (String verifier)

Parameters
verifier
Throws
Exception

public void destroyAccessToken (String userId, GoogleTasksConnectorOAuth2Adapter connector)

Parameters
userId
connector
Throws
Exception

public void dispose ()

public ObjectStore getAccessTokenObjectStore ()

Retrieves accessTokenObjectStore

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 GoogleTasksConnectorOAuth2Adapter getDefaultUnauthorizedConnector ()

Retrieves defaultUnauthorizedConnector

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public ProcessTemplate<P, GoogleTasksConnectorOAuth2Adapter> 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, GoogleTasksConnectorOAuth2Adapter 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 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