public class

SalesforceConnectorConnectionManager

extends Object
implements Capabilities ConnectionManager<K, C extends Connection> MetadataAware MuleContextAware Initialisable ProcessAdapter<O> Testable ConnectorMetaDataEnabled
java.lang.Object
   ↳ org.mule.modules.salesforce.connectivity.SalesforceConnectorConnectionManager

Class Overview

A SalesforceConnectorConnectionManager is a wrapper around SalesforceConnector that adds connection 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 Boolean allowFieldTruncationSupport
private String assignmentRuleId
private String clientId
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
protected FlowConstruct flowConstruct Flow Construct
protected MuleContext muleContext Mule Context
private String password
private String proxyHost
private String proxyPassword
private int proxyPort
private String proxyUsername
protected RetryPolicyTemplate retryPolicyTemplate
private String securityToken
private ObjectStore timeObjectStore
private String url
private Boolean useDefaultRule
private String username
Public Constructors
SalesforceConnectorConnectionManager()
Public Methods
SalesforceConnectorConnectionIdentifierAdapter acquireConnection(SalesforceConnectorConnectionKey key)
DefaultTestResult buildFailureTestResult(Exception exception)
void destroyConnection(SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)
Boolean getAllowFieldTruncationSupport()
Retrieves allowFieldTruncationSupport
String getAssignmentRuleId()
Retrieves assignmentRuleId
String getClientId()
Retrieves clientId
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
SalesforceConnectorConnectionKey getDefaultConnectionKey()
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
Result<MetaData> getMetaData(MetaDataKey metaDataKey)
Result<List<MetaDataKey>> getMetaDataKeys()
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
String getPassword()
Retrieves password
<P> ProcessTemplate<P, SalesforceConnectorConnectionIdentifierAdapter> getProcessTemplate()
String getProxyHost()
Retrieves proxyHost
String getProxyPassword()
Retrieves proxyPassword
int getProxyPort()
Retrieves proxyPort
String getProxyUsername()
Retrieves proxyUsername
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getSecurityToken()
Retrieves securityToken
ObjectStore getTimeObjectStore()
Retrieves timeObjectStore
String getUrl()
Retrieves url
Boolean getUseDefaultRule()
Retrieves useDefaultRule
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)
void setAllowFieldTruncationSupport(Boolean value)
Sets allowFieldTruncationSupport
void setAssignmentRuleId(String value)
Sets assignmentRuleId
void setClientId(String value)
Sets clientId
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setMuleContext(MuleContext value)
Sets muleContext
void setPassword(String value)
Sets password
void setProxyHost(String value)
Sets proxyHost
void setProxyPassword(String value)
Sets proxyPassword
void setProxyPort(int value)
Sets proxyPort
void setProxyUsername(String value)
Sets proxyUsername
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setSecurityToken(String value)
Sets securityToken
void setTimeObjectStore(ObjectStore value)
Sets timeObjectStore
void setUrl(String value)
Sets url
void setUseDefaultRule(Boolean value)
Sets useDefaultRule
void setUsername(String value)
Sets username
TestResult test()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.Capabilities
From interface org.mule.api.ConnectionManager
From interface org.mule.api.MetadataAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.process.ProcessAdapter
From interface org.mule.common.Testable
From interface org.mule.common.metadata.ConnectorMetaDataEnabled

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: "Salesforce"

private static final String MODULE_VERSION

Constant Value: "5.3.0-SNAPSHOT"

Fields

private Boolean allowFieldTruncationSupport

private String assignmentRuleId

private String clientId

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

protected FlowConstruct flowConstruct

Flow Construct

protected MuleContext muleContext

Mule Context

private String password

private String proxyHost

private String proxyPassword

private int proxyPort

private String proxyUsername

protected RetryPolicyTemplate retryPolicyTemplate

private String securityToken

private ObjectStore timeObjectStore

private String url

private Boolean useDefaultRule

private String username

Public Constructors

public SalesforceConnectorConnectionManager ()

Public Methods

public SalesforceConnectorConnectionIdentifierAdapter acquireConnection (SalesforceConnectorConnectionKey key)

Parameters
key
Throws
Exception

public DefaultTestResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public Boolean getAllowFieldTruncationSupport ()

Retrieves allowFieldTruncationSupport

public String getAssignmentRuleId ()

Retrieves assignmentRuleId

public String getClientId ()

Retrieves clientId

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

public SalesforceConnectorConnectionKey getDefaultConnectionKey ()

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public Result<MetaData> getMetaData (MetaDataKey metaDataKey)

Parameters
metaDataKey

public Result<List<MetaDataKey>> getMetaDataKeys ()

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public String getPassword ()

Retrieves password

public ProcessTemplate<P, SalesforceConnectorConnectionIdentifierAdapter> getProcessTemplate ()

public String getProxyHost ()

Retrieves proxyHost

public String getProxyPassword ()

Retrieves proxyPassword

public int getProxyPort ()

Retrieves proxyPort

public String getProxyUsername ()

Retrieves proxyUsername

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

public String getSecurityToken ()

Retrieves securityToken

public ObjectStore getTimeObjectStore ()

Retrieves timeObjectStore

public String getUrl ()

Retrieves url

public Boolean getUseDefaultRule ()

Retrieves useDefaultRule

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (SalesforceConnectorConnectionKey key, SalesforceConnectorConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setAllowFieldTruncationSupport (Boolean value)

Sets allowFieldTruncationSupport

Parameters
value Value to set

public void setAssignmentRuleId (String value)

Sets assignmentRuleId

Parameters
value Value to set

public void setClientId (String value)

Sets clientId

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setPassword (String value)

Sets password

Parameters
value Value to set

public void setProxyHost (String value)

Sets proxyHost

Parameters
value Value to set

public void setProxyPassword (String value)

Sets proxyPassword

Parameters
value Value to set

public void setProxyPort (int value)

Sets proxyPort

Parameters
value Value to set

public void setProxyUsername (String value)

Sets proxyUsername

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setSecurityToken (String value)

Sets securityToken

Parameters
value Value to set

public void setTimeObjectStore (ObjectStore value)

Sets timeObjectStore

Parameters
value Value to set

public void setUrl (String value)

Sets url

Parameters
value Value to set

public void setUseDefaultRule (Boolean value)

Sets useDefaultRule

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set

public TestResult test ()