public class ForceAPIImpl extends AbstractAPIImpl implements ForceAPI
| Constructor and Description |
|---|
ForceAPIImpl(SFConfig sfConfig) |
| Modifier and Type | Method and Description |
|---|---|
AddTaskResponse |
addTask(AddTaskRequest addTask)
Creates task with given details in salesforce
|
DescribeSObjectResult |
describeSalesforceObject(String object)
Returns list of the salesforce object column names
|
String |
getSFEndpoint()
Insert a salesforce object
|
ForceResponse |
insertObject(String object,
String jsonContent)
Insert a salesforce object
|
SOQLResult |
query(String soql)
Execute the given SOQL by using "/query" API
|
SOQLResult |
query(String soql,
boolean all)
Execute the given SOQL by using either the "/query" API
or the "/queryAll" API
|
SOQLResult |
queryMore(SOQLResult soqlResult)
Query further records using nextRecordsURL
|
getHttpHelper, getObjectMapper, getSfConfig, getXmlMapper, setHttpHelper, setObjectMapper, setSfConfig, setXmlMapperpublic SOQLResult query(String soql) throws Exception
ForceAPIquery in interface ForceAPIsoql - - SOQL to be executed.QueryResultExceptionpublic SOQLResult query(String soql, boolean all) throws Exception
ForceAPIquery in interface ForceAPIsoql - - SOQL to be executed.all - - Toggle for /query or /queryAllQueryResultExceptionpublic SOQLResult queryMore(SOQLResult soqlResult) throws Exception
ForceAPIpublic AddTaskResponse addTask(AddTaskRequest addTask) throws Exception
ForceAPIpublic ForceResponse insertObject(String object, String jsonContent) throws Exception
ForceAPIinsertObject in interface ForceAPIobject - - Name of the salesforce objectjsonContent - - Json content of the object to be savedExceptionpublic String getSFEndpoint() throws Exception
ForceAPIgetSFEndpoint in interface ForceAPIExceptionpublic DescribeSObjectResult describeSalesforceObject(String object) throws Exception
ForceAPIdescribeSalesforceObject in interface ForceAPIobject - Name of the salesforce objectExceptionCopyright © 2019. All rights reserved.