Class DefaultCompositeSObjectCollectionsApiClient
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.component.salesforce.internal.client.AbstractClientBase
-
- org.apache.camel.component.salesforce.internal.client.DefaultCompositeSObjectCollectionsApiClient
-
- All Implemented Interfaces:
AutoCloseable
,CompositeSObjectCollectionsApiClient
,HttpClientHolder
,SalesforceSession.SalesforceSessionListener
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
public class DefaultCompositeSObjectCollectionsApiClient extends AbstractClientBase implements CompositeSObjectCollectionsApiClient
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.camel.component.salesforce.internal.client.AbstractClientBase
AbstractClientBase.ClientResponseCallback
-
Nested classes/interfaces inherited from interface org.apache.camel.component.salesforce.internal.client.CompositeSObjectCollectionsApiClient
CompositeSObjectCollectionsApiClient.ResponseCallback<T>
-
-
Field Summary
-
Fields inherited from class org.apache.camel.component.salesforce.internal.client.AbstractClientBase
accessToken, APPLICATION_JSON_UTF8, APPLICATION_XML_UTF8, httpClient, instanceUrl, log, loginConfig, session, version
-
-
Constructor Summary
Constructors Constructor Description DefaultCompositeSObjectCollectionsApiClient(SalesforceEndpointConfig configuration, String version, SalesforceSession session, SalesforceHttpClient httpClient, SalesforceLoginConfig loginConfig)
-
Method Summary
-
Methods inherited from class org.apache.camel.component.salesforce.internal.client.AbstractClientBase
createRestException, doHttpRequest, doStart, doStop, getHttpClient, getRequest, getRequest, onLogin, onLogout, setAccessToken, setInstanceUrl
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
DefaultCompositeSObjectCollectionsApiClient
public DefaultCompositeSObjectCollectionsApiClient(SalesforceEndpointConfig configuration, String version, SalesforceSession session, SalesforceHttpClient httpClient, SalesforceLoginConfig loginConfig) throws SalesforceException
- Throws:
SalesforceException
-
-
Method Detail
-
submitRetrieveCompositeCollections
public <T> void submitRetrieveCompositeCollections(RetrieveSObjectCollectionsDto retrieveDto, Map<String,List<String>> headers, CompositeSObjectCollectionsApiClient.ResponseCallback<List<T>> callback, String sObjectName, Class<T> sobjectType) throws SalesforceException
- Specified by:
submitRetrieveCompositeCollections
in interfaceCompositeSObjectCollectionsApiClient
- Throws:
SalesforceException
-
createCompositeCollections
public void createCompositeCollections(SObjectCollection collection, Map<String,List<String>> headers, CompositeSObjectCollectionsApiClient.ResponseCallback<List<SaveSObjectResult>> callback) throws SalesforceException
- Specified by:
createCompositeCollections
in interfaceCompositeSObjectCollectionsApiClient
- Throws:
SalesforceException
-
updateCompositeCollections
public void updateCompositeCollections(SObjectCollection collection, Map<String,List<String>> headers, CompositeSObjectCollectionsApiClient.ResponseCallback<List<SaveSObjectResult>> callback) throws SalesforceException
- Specified by:
updateCompositeCollections
in interfaceCompositeSObjectCollectionsApiClient
- Throws:
SalesforceException
-
upsertCompositeCollections
public void upsertCompositeCollections(SObjectCollection collection, Map<String,List<String>> headers, CompositeSObjectCollectionsApiClient.ResponseCallback<List<UpsertSObjectResult>> callback, String sObjectName, String externalIdFieldName) throws SalesforceException
- Specified by:
upsertCompositeCollections
in interfaceCompositeSObjectCollectionsApiClient
- Throws:
SalesforceException
-
submitDeleteCompositeCollections
public void submitDeleteCompositeCollections(List<String> ids, Boolean allOrNone, Map<String,List<String>> headers, CompositeSObjectCollectionsApiClient.ResponseCallback<List<DeleteSObjectResult>> callback)
- Specified by:
submitDeleteCompositeCollections
in interfaceCompositeSObjectCollectionsApiClient
-
setAccessToken
protected void setAccessToken(org.eclipse.jetty.client.api.Request request)
- Specified by:
setAccessToken
in classAbstractClientBase
-
-