public abstract class AbstractConfig extends Object implements Config, SessionControl
Modifier and Type | Field and Description |
---|---|
static double |
RECOMMENDED_API_VERSION |
Constructor and Description |
---|
AbstractConfig() |
Modifier and Type | Method and Description |
---|---|
String |
computeBaseUrl(String url) |
void |
destroySession()
End the current session
|
Boolean |
getAllowFieldTruncationSupport() |
List<String> |
getApexClassNames()
Getter method for apex class names.
|
ApexClient |
getApexClient()
Getter method for apex client.
|
String |
getAssignmentRuleId() |
Integer |
getBatchSobjectMaxDepth() |
com.sforce.async.BulkConnection |
getBulkConnection() |
boolean |
getClearNullFields() |
String |
getClientId() |
Integer |
getConnectionTimeout()
Getter method for connection timeout.
|
boolean |
getFetchAllApexRestMetadata() |
boolean |
getFetchAllApexSoapMetadata() |
com.sforce.soap.metadata.MetadataConnection |
getMetadataConnection() |
org.mule.api.MuleContext |
getMuleContext()
Getter method for mule context.
|
com.sforce.soap.partner.PartnerConnection |
getPartnerConnection()
Getter method for { com.sforce.soap.partner.PartnerConnection}.
|
String |
getProxyHost()
Getter method for proxy host.
|
String |
getProxyPassword()
Getter method for proxy password.
|
String |
getProxyPort()
Getter method for proxy port.
|
Integer |
getProxyPortAsInteger() |
String |
getProxyUsername()
Getter method for proxy username.
|
PushEventRestClient |
getPushEventRestClient() |
Integer |
getReadTimeout()
Getter method for read timeout.
|
abstract String |
getSessionId() |
org.mule.api.store.ObjectStore<? extends Serializable> |
getTimeObjectStore() |
Map<String,String> |
getUrls() |
Boolean |
getUseDefaultRule() |
String |
getUsername() |
protected void |
initConnectionConfig(com.sforce.ws.ConnectorConfig connectorConfig) |
boolean |
isConnected()
Check if connection is already established.
|
protected abstract boolean |
isDisableSessionInvalidationActive() |
void |
logoutPartnerConnection() |
void |
setAllowFieldTruncationSupport(Boolean allowFieldTruncationSupport) |
void |
setApexClassNames(List<String> apexClassNames)
Setter method for apex class names.
|
void |
setAssignmentRuleId(String assignmentRuleId) |
void |
setBatchSobjectMaxDepth(Integer batchSobjectMaxDepth) |
void |
setClearNullFields(boolean clearNullFields) |
void |
setClientId(String clientId) |
void |
setConnectionOptions(com.sforce.soap.partner.PartnerConnection connection) |
void |
setConnectionTimeout(Integer connectionTimeout) |
void |
setFetchAllApexRestMetadata(boolean fetchAllApexRestMetadata) |
void |
setFetchAllApexSoapMetadata(boolean fetchAllApexMetadata) |
void |
setMuleContext(org.mule.api.MuleContext muleContext)
Setter method for mule context.
|
void |
setPartnerConnection(com.sforce.soap.partner.PartnerConnection partnerConnection)
Setter method for { com.sforce.soap.partner.PartnerConnection}.
|
void |
setProxyHost(String proxyHost)
Setter method for proxy host.
|
void |
setProxyPassword(String proxyPassword)
Setter method for proxy password.
|
void |
setProxyPort(String proxyPort)
Setter method for proxy port.
|
void |
setProxyUsername(String proxyUsername)
Setter method for proxy username.
|
void |
setReadTimeout(Integer readTimeout) |
void |
setTimeObjectStore(org.mule.api.store.ObjectStore<? extends Serializable> timeObjectStore) |
void |
setUseDefaultRule(Boolean useDefaultRule) |
void |
setUsername(String username) |
org.mule.api.callback.StopSourceCallback |
subscribe(SubscribeParams params) |
protected void |
validateApexClassesConfiguration() |
protected void |
validateCurrentSession() |
protected void |
validatePartnerConnection() |
protected void |
validateProxyConfiguration() |
protected void |
verifyApiVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApiVersion
recreateSession
public static final double RECOMMENDED_API_VERSION
@ValidateConnection public boolean isConnected()
@Disconnect public void destroySession()
@NotNull public Map<String,String> getUrls() throws SalesforceException
getUrls
in interface Config
SalesforceException
@Nullable public String getProxyHost()
getProxyHost
in interface Config
public void setProxyHost(String proxyHost)
proxyHost
- - proxy hostpublic String getProxyPort()
getProxyPort
in interface Config
public Integer getProxyPortAsInteger()
public void setProxyPort(String proxyPort)
proxyPort
- - proxy port@Nullable public String getProxyUsername()
getProxyUsername
in interface Config
public void setProxyUsername(String proxyUsername)
proxyUsername
- - proxy username@Nullable public String getProxyPassword()
getProxyPassword
in interface Config
public void setProxyPassword(String proxyPassword)
proxyPassword
- - proxy passwordpublic org.mule.api.MuleContext getMuleContext()
public void setMuleContext(org.mule.api.MuleContext muleContext)
muleContext
- - mule contextpublic Integer getReadTimeout()
Config
getReadTimeout
in interface Config
public void setReadTimeout(Integer readTimeout)
readTimeout
- the readTimeout to setpublic Integer getConnectionTimeout()
Config
getConnectionTimeout
in interface Config
public void setConnectionTimeout(Integer connectionTimeout)
connectionTimeout
- the connectionTimeout to setpublic com.sforce.soap.partner.PartnerConnection getPartnerConnection()
getPartnerConnection
in interface Config
public void setPartnerConnection(@NotNull com.sforce.soap.partner.PartnerConnection partnerConnection) throws SalesforceException
partnerConnection
- - partner connection instance to be setSalesforceException
- if subscription failspublic String getClientId()
getClientId
in interface Config
public void setClientId(String clientId)
setClientId
in interface Config
public String getAssignmentRuleId()
getAssignmentRuleId
in interface Config
public void setAssignmentRuleId(String assignmentRuleId)
setAssignmentRuleId
in interface Config
public Boolean getUseDefaultRule()
getUseDefaultRule
in interface Config
public void setUseDefaultRule(Boolean useDefaultRule)
setUseDefaultRule
in interface Config
public Boolean getAllowFieldTruncationSupport()
getAllowFieldTruncationSupport
in interface Config
public void setAllowFieldTruncationSupport(Boolean allowFieldTruncationSupport)
setAllowFieldTruncationSupport
in interface Config
@NotNull public List<String> getApexClassNames()
getApexClassNames
in interface Config
public void setApexClassNames(@Nullable List<String> apexClassNames)
setApexClassNames
in interface Config
apexClassNames
- - list of apex class namespublic boolean getFetchAllApexSoapMetadata()
getFetchAllApexSoapMetadata
in interface Config
public void setFetchAllApexSoapMetadata(boolean fetchAllApexMetadata)
setFetchAllApexSoapMetadata
in interface Config
fetchAllApexMetadata
- the fetchAllApexMetadata to setpublic boolean getClearNullFields()
public void setClearNullFields(boolean clearNullFields)
clearNullFields
- the clearNullFields value to set@Nullable public abstract String getSessionId()
getSessionId
in interface SessionControl
protected void verifyApiVersion() throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
public boolean getFetchAllApexRestMetadata()
getFetchAllApexRestMetadata
in interface Config
public void setFetchAllApexRestMetadata(boolean fetchAllApexRestMetadata)
setFetchAllApexRestMetadata
in interface Config
fetchAllApexRestMetadata
- the fetchAllApexRestMetadata to setpublic String getUsername()
getUsername
in interface SessionControl
public void setUsername(String username)
username
- the username to be set@NotNull public String computeBaseUrl(String url) throws SalesforceException
SalesforceException
@NotNull public com.sforce.async.BulkConnection getBulkConnection() throws SalesforceException
getBulkConnection
in interface Config
SalesforceException
protected void validatePartnerConnection()
protected void validateApexClassesConfiguration() throws SalesforceException
SalesforceException
protected void validateCurrentSession() throws SalesforceException
SalesforceException
protected void validateProxyConfiguration() throws SalesforceException
SalesforceException
@NotNull public final ApexClient getApexClient() throws SalesforceException
getApexClient
in interface Config
SalesforceException
public final PushEventRestClient getPushEventRestClient() throws SalesforceException
SalesforceException
@NotNull public final com.sforce.soap.metadata.MetadataConnection getMetadataConnection() throws com.sforce.ws.ConnectionException
getMetadataConnection
in interface Config
com.sforce.ws.ConnectionException
public void logoutPartnerConnection() throws SalesforceException
SalesforceException
protected abstract boolean isDisableSessionInvalidationActive()
protected void initConnectionConfig(@NotNull com.sforce.ws.ConnectorConfig connectorConfig)
public void setConnectionOptions(@NotNull com.sforce.soap.partner.PartnerConnection connection)
setConnectionOptions
in interface Config
public org.mule.api.callback.StopSourceCallback subscribe(SubscribeParams params) throws SalesforceException
SalesforceException
public org.mule.api.store.ObjectStore<? extends Serializable> getTimeObjectStore()
public void setTimeObjectStore(org.mule.api.store.ObjectStore<? extends Serializable> timeObjectStore)
timeObjectStore
- the timeObjectStore to setpublic Integer getBatchSobjectMaxDepth()
public void setBatchSobjectMaxDepth(Integer batchSobjectMaxDepth)
batchSobjectMaxDepth
- the batchSobjectMaxDepth to setCopyright © 2010–2020. All rights reserved.