public class

SalesforceOAuthConnector

extends BaseSalesforceConnector
java.lang.Object
   ↳ org.mule.modules.salesforce.BaseSalesforceConnector
     ↳ org.mule.modules.salesforce.SalesforceOAuthConnector
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The Salesforce Connector will allow to connect to the Salesforce application using OAuth as the authentication mechanism. Almost every operation that can be done via the Salesforce's API can be done thru this connector. This connector will also work if your Salesforce objects are customized with additional fields or even you are working with custom objects.

Integrating with Salesforce consists of web service calls utilizing XML request/response setup over an HTTPS connection. The technical details of this connection such as request headers, error handling, HTTPS connection, etc. are all abstracted from the user to make implementation quick and easy.

This version of the connector allows you to use OAuth for authentication instead of the username/password/securityToken combination.

{@sample.config INCLUDE_ERROR}

Summary

Fields
private static final Logger LOGGER
private String accessToken
private BulkConnection bulkConnection REST connection to the bulk API
private String consumerKey Your application's client identifier (consumer key in Remote Access Detail).
private String consumerSecret Your application's client secret (consumer secret in Remote Access Detail).
private String instanceId
private PartnerConnection partnerConnection Connection to the SOAP API
private String userId
[Expand]
Inherited Fields
From class org.mule.modules.salesforce.BaseSalesforceConnector
Public Constructors
SalesforceOAuthConnector()
Public Methods
String getAccessToken()
String getConsumerKey()
String getConsumerSecret()
String getInstanceId()
String getUserId()
void postAuthorize()
void setAccessToken(String accessToken)
void setConsumerKey(String consumerKey)
void setConsumerSecret(String consumerSecret)
void setInstanceId(String instanceId)
void setUserId(String userId)
Protected Methods
BulkConnection getBulkConnection()
PartnerConnection getConnection()
String getSessionId()
[Expand]
Inherited Methods
From class org.mule.modules.salesforce.BaseSalesforceConnector
From class java.lang.Object
From interface org.mule.api.context.MuleContextAware

Fields

private static final Logger LOGGER

private String accessToken

private BulkConnection bulkConnection

REST connection to the bulk API

private String consumerKey

Your application's client identifier (consumer key in Remote Access Detail).

private String consumerSecret

Your application's client secret (consumer secret in Remote Access Detail).

private String instanceId

private PartnerConnection partnerConnection

Connection to the SOAP API

private String userId

Public Constructors

public SalesforceOAuthConnector ()

Public Methods

public String getAccessToken ()

public String getConsumerKey ()

public String getConsumerSecret ()

public String getInstanceId ()

public String getUserId ()

public void postAuthorize ()

Throws
AsyncApiException
ConnectionException
MalformedURLException

public void setAccessToken (String accessToken)

Parameters
accessToken

public void setConsumerKey (String consumerKey)

Parameters
consumerKey

public void setConsumerSecret (String consumerSecret)

Parameters
consumerSecret

public void setInstanceId (String instanceId)

Parameters
instanceId

public void setUserId (String userId)

Parameters
userId

Protected Methods

protected BulkConnection getBulkConnection ()

protected PartnerConnection getConnection ()

protected String getSessionId ()