Interface CompositeApiClient
-
- All Known Implementing Classes:
DefaultCompositeApiClient
public interface CompositeApiClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CompositeApiClient.Operation<T,R>
static interface
CompositeApiClient.ResponseCallback<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
submitComposite(SObjectComposite composite, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<SObjectCompositeResponse> callback)
void
submitCompositeBatch(SObjectBatch batch, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<SObjectBatchResponse> callback)
void
submitCompositeRaw(InputStream raw, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<InputStream> callback, String method)
void
submitCompositeTree(SObjectTree tree, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<SObjectTreeResponse> callback)
Submits given nodes (records) of SObjects and their children as a tree in a single request.
-
-
-
Method Detail
-
submitCompositeRaw
void submitCompositeRaw(InputStream raw, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<InputStream> callback, String method) throws SalesforceException
- Throws:
SalesforceException
-
submitComposite
void submitComposite(SObjectComposite composite, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<SObjectCompositeResponse> callback) throws SalesforceException
- Throws:
SalesforceException
-
submitCompositeBatch
void submitCompositeBatch(SObjectBatch batch, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<SObjectBatchResponse> callback) throws SalesforceException
- Throws:
SalesforceException
-
submitCompositeTree
void submitCompositeTree(SObjectTree tree, Map<String,List<String>> headers, CompositeApiClient.ResponseCallback<SObjectTreeResponse> callback) throws SalesforceException
Submits given nodes (records) of SObjects and their children as a tree in a single request. And updates theId
parameter of each object to the value returned from the API call.- Parameters:
tree
- SObject tree to submitcallback
-CompositeApiClient.ResponseCallback
to handle response or exception- Throws:
SalesforceException
-
-