public class

LinkedInConnectorOAuth1Adapter

extends LinkedInConnectorProcessAdapter
implements OAuth1Adapter OAuth1Connector
java.lang.Object
   ↳ org.mule.module.linkedin.LinkedInConnector
     ↳ org.mule.module.linkedin.adapters.LinkedInConnectorCapabilitiesAdapter
       ↳ org.mule.module.linkedin.adapters.LinkedInConnectorMetadataAdapater
         ↳ org.mule.module.linkedin.adapters.LinkedInConnectorLifecycleAdapter
           ↳ org.mule.module.linkedin.adapters.LinkedInConnectorProcessAdapter
             ↳ org.mule.module.linkedin.adapters.LinkedInConnectorOAuth1Adapter

Class Overview

A LinkedInConnectorOAuth1Adapter is a wrapper around LinkedInConnector that adds OAuth capabilites to the pojo.

Summary

[Expand]
Inherited Constants
From class org.mule.module.linkedin.adapters.LinkedInConnectorMetadataAdapater
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
Fields
private String accessTokenUrl
private String authorizationUrl
private OAuthConsumer consumer
String name
private OAuth1Manager oauthManager
private RestoreAccessTokenCallback oauthRestoreAccessToken
private SaveAccessTokenCallback oauthSaveAccessToken
private String oauthVerifier
private OnNoTokenPolicy onNoTokenPolicy
private String requestToken
private String requestTokenSecret
private String requestTokenUrl
[Expand]
Inherited Fields
From class org.mule.module.linkedin.LinkedInConnector
Public Constructors
LinkedInConnectorOAuth1Adapter(OAuth1Manager oauthManager)
Public Methods
String authorize(Map<String, String> extraParameters, String requestTokenUrl, String accessTokenUrl, String authorizationUrl, String redirectUri)
void fetchAccessToken(String requestTokenUrl, String accessTokenUrl, String authorizationUrl, String redirectUri)
String getAccessTokenUrl()
Retrieves accessTokenUrl
Boolean getAsync()
String getAuthorizationUrl()
Retrieves authorizationUrl
Connector getConnector()
OAuthConsumer getConsumer()
Retrieves consumer
String getConsumerKey()
String getConsumerSecret()
String getDomain()
Integer getLocalPort()
OAuthMessageSigner getMessageSigner()
String getName()
OAuth1Manager getOauth1Manager()
OAuth1Manager getOauthManager()
Retrieves oauthManager
RestoreAccessTokenCallback getOauthRestoreAccessToken()
Retrieves oauthRestoreAccessToken
SaveAccessTokenCallback getOauthSaveAccessToken()
Retrieves oauthSaveAccessToken
String getOauthVerifier()
Retrieves oauthVerifier
OnNoTokenPolicy getOnNoTokenPolicy()
Retrieves onNoTokenPolicy
String getPath()
<P> ProcessTemplate<P, LinkedInConnectorCapabilitiesAdapter> getProcessTemplate()
Integer getRemotePort()
String getRequestToken()
Retrieves requestToken
String getRequestTokenSecret()
Retrieves requestTokenSecret
String getRequestTokenUrl()
Retrieves requestTokenUrl
SigningStrategy getSigningStrategy()
String getVerifierRegex()
void hasBeenAuthorized()
void reset()
boolean restoreAccessToken()
void setAccessTokenUrl(String value)
Sets accessTokenUrl
void setAsync(Boolean async)
void setAuthorizationUrl(String value)
Sets authorizationUrl
void setConnector(Connector value)
void setConsumer(OAuthConsumer value)
Sets consumer
void setDomain(String value)
void setLocalPort(Integer value)
void setName(String name)
void setOauthManager(OAuth1Manager value)
Sets oauthManager
void setOauthRestoreAccessToken(RestoreAccessTokenCallback value)
Sets oauthRestoreAccessToken
void setOauthSaveAccessToken(SaveAccessTokenCallback value)
Sets oauthSaveAccessToken
void setOauthVerifier(String value)
Sets oauthVerifier
void setOnNoToken(OnNoTokenPolicy value)
void setOnNoTokenPolicy(OnNoTokenPolicy value)
Sets onNoTokenPolicy
void setPath(String value)
void setRemotePort(Integer value)
void setRequestToken(String value)
Sets requestToken
void setRequestTokenSecret(String value)
Sets requestTokenSecret
void setRequestTokenUrl(String value)
Sets requestTokenUrl
[Expand]
Inherited Methods
From class org.mule.module.linkedin.adapters.LinkedInConnectorProcessAdapter
From class org.mule.module.linkedin.adapters.LinkedInConnectorLifecycleAdapter
From class org.mule.module.linkedin.adapters.LinkedInConnectorMetadataAdapater
From class org.mule.module.linkedin.adapters.LinkedInConnectorCapabilitiesAdapter
From class org.mule.module.linkedin.LinkedInConnector
From class java.lang.Object
From interface org.mule.api.MetadataAware
From interface org.mule.api.devkit.ProcessAdapter
From interface org.mule.api.devkit.capability.Capabilities
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
From interface org.mule.security.oauth.OAuth1Adapter
From interface org.mule.security.oauth.OAuth1Connector
From interface org.mule.security.oauth.OAuthAdapter
From interface org.mule.security.oauth.OnNoTokenPolicyAware

Fields

private String accessTokenUrl

private String authorizationUrl

private OAuthConsumer consumer

String name

private OAuth1Manager oauthManager

private RestoreAccessTokenCallback oauthRestoreAccessToken

private SaveAccessTokenCallback oauthSaveAccessToken

private String oauthVerifier

private OnNoTokenPolicy onNoTokenPolicy

private String requestToken

private String requestTokenSecret

private String requestTokenUrl

Public Constructors

public LinkedInConnectorOAuth1Adapter (OAuth1Manager oauthManager)

Parameters
oauthManager

Public Methods

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

Parameters
extraParameters
requestTokenUrl
accessTokenUrl
authorizationUrl
redirectUri
Throws
UnableToAcquireRequestTokenException

public void fetchAccessToken (String requestTokenUrl, String accessTokenUrl, String authorizationUrl, String redirectUri)

Parameters
requestTokenUrl
accessTokenUrl
authorizationUrl
redirectUri
Throws
UnableToAcquireAccessTokenException

public String getAccessTokenUrl ()

Retrieves accessTokenUrl

public Boolean getAsync ()

public String getAuthorizationUrl ()

Retrieves authorizationUrl

public Connector getConnector ()

public OAuthConsumer getConsumer ()

Retrieves consumer

public String getConsumerKey ()

public String getConsumerSecret ()

public String getDomain ()

public Integer getLocalPort ()

public OAuthMessageSigner getMessageSigner ()

public String getName ()

public OAuth1Manager getOauth1Manager ()

public OAuth1Manager getOauthManager ()

Retrieves oauthManager

public RestoreAccessTokenCallback getOauthRestoreAccessToken ()

Retrieves oauthRestoreAccessToken

public SaveAccessTokenCallback getOauthSaveAccessToken ()

Retrieves oauthSaveAccessToken

public String getOauthVerifier ()

Retrieves oauthVerifier

public OnNoTokenPolicy getOnNoTokenPolicy ()

Retrieves onNoTokenPolicy

public String getPath ()

public ProcessTemplate<P, LinkedInConnectorCapabilitiesAdapter> getProcessTemplate ()

public Integer getRemotePort ()

public String getRequestToken ()

Retrieves requestToken

public String getRequestTokenSecret ()

Retrieves requestTokenSecret

public String getRequestTokenUrl ()

Retrieves requestTokenUrl

public SigningStrategy getSigningStrategy ()

public String getVerifierRegex ()

public void hasBeenAuthorized ()

Throws
NotAuthorizedException

public void reset ()

public boolean restoreAccessToken ()

public void setAccessTokenUrl (String value)

Sets accessTokenUrl

Parameters
value Value to set

public void setAsync (Boolean async)

Parameters
async

public void setAuthorizationUrl (String value)

Sets authorizationUrl

Parameters
value Value to set

public void setConnector (Connector value)

Parameters
value

public void setConsumer (OAuthConsumer value)

Sets consumer

Parameters
value Value to set

public void setDomain (String value)

Parameters
value

public void setLocalPort (Integer value)

Parameters
value

public void setName (String name)

Parameters
name

public void setOauthManager (OAuth1Manager value)

Sets oauthManager

Parameters
value Value to set

public void setOauthRestoreAccessToken (RestoreAccessTokenCallback value)

Sets oauthRestoreAccessToken

Parameters
value Value to set

public void setOauthSaveAccessToken (SaveAccessTokenCallback value)

Sets oauthSaveAccessToken

Parameters
value Value to set

public void setOauthVerifier (String value)

Sets oauthVerifier

Parameters
value Value to set

public void setOnNoToken (OnNoTokenPolicy value)

Parameters
value

public void setOnNoTokenPolicy (OnNoTokenPolicy value)

Sets onNoTokenPolicy

Parameters
value Value to set

public void setPath (String value)

Parameters
value

public void setRemotePort (Integer value)

Parameters
value

public void setRequestToken (String value)

Sets requestToken

Parameters
value Value to set

public void setRequestTokenSecret (String value)

Sets requestTokenSecret

Parameters
value Value to set

public void setRequestTokenUrl (String value)

Sets requestTokenUrl

Parameters
value Value to set