com.springml.salesforce.wave.api.ForceAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of salesforce-wave-api Show documentation
Show all versions of salesforce-wave-api Show documentation
Java client for Salesforce Wave API
package com.springml.salesforce.wave.api;
import com.springml.salesforce.wave.model.AddTaskRequest;
import com.springml.salesforce.wave.model.AddTaskResponse;
import com.springml.salesforce.wave.model.ForceResponse;
import com.springml.salesforce.wave.model.QueryResult;
import com.springml.salesforce.wave.model.SOQLResult;
/**
* JAVA client for Salesforce REST API calls
*/
public interface ForceAPI {
/**
* Execute the given SOQL by using "/query" API
* @param soql - SOQL to be executed.
* @return {@link QueryResult}
* @throws Exception
*/
public SOQLResult query(String soql) throws Exception;
/**
* Query further records using nextRecordsURL
* @param oldResult
* @return
* @throws Exception
*/
public SOQLResult queryMore(SOQLResult oldResult) throws Exception;
/**
* Creates task with given details in salesforce
* @return
*/
public AddTaskResponse addTask(AddTaskRequest addTask) throws Exception;
/**
* Insert a salesforce object
* @param object - Name of the salesforce object
* @param content - Json content of the object to be saved
*/
public ForceResponse insertObject(String object, String content) throws Exception;
/**
* Insert a salesforce object
* @param object - Name of the salesforce object
* @param content - Json content of the object to be saved
*/
// public InsertObjectsResponse insertObjects(String object, List objects) throws Exception;
public String getSFEndpoint() throws Exception;
}