public class ForceApi extends Object
| Constructor and Description |
|---|
ForceApi(ApiConfig apiConfig) |
ForceApi(ApiConfig config,
ApiSession session) |
ForceApi(ApiSession session) |
public ForceApi(ApiConfig config, ApiSession session)
public ForceApi(ApiSession session)
public ForceApi(ApiConfig apiConfig)
public ApiSession getSession()
public String curlHelper()
public ResourceRepresentation get(String path)
public ResourceRepresentation delete(String path)
path - service path to be called - i.e. /process/approvals/public ResourceRepresentation post(String path, Object input)
path - service path to be called - i.e. /process/approvals/input - this object will be serialized as JSON and sent in tbe body of the requestpublic ResourceRepresentation put(String path, Object input)
path - service path to be called - i.e. /process/approvals/input - this object will be serialized as JSON and sent in tbe body of the requestpublic ResourceRepresentation patch(String path, Object input)
path - service path to be called - i.e. /process/approvals/input - this object will be serialized as JSON and sent in tbe body of the requestpublic ResourceRepresentation request(String method, String path, Object input)
public Identity getIdentity()
public ResourceRepresentation getSObject(String type, String id) throws ResourceException
ResourceExceptionpublic CreateOrUpdateResult createOrUpdateSObject(String type, String externalIdField, String externalIdValue, Object sObject)
public <T> QueryResult<T> query(String query, Class<T> clazz)
public QueryResult<Map> query(String query)
public <T> QueryResult<T> queryMore(String nextRecordsUrl, Class<T> clazz)
public QueryResult<Map> queryMore(String nextRecordsUrl)
public <T> QueryResult<T> queryAll(String query, Class<T> clazz)
public DescribeGlobal describeGlobal()
public SupportedVersions getSupportedVersions()
public <T> DiscoverSObject<T> discoverSObject(String sobject, Class<T> clazz)
public DescribeSObject describeSObject(String sobject)
Copyright © 2017. All rights reserved.