All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.petra.salesforce.client.partner.SalesforcePartnerClient Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.petra.salesforce.client.partner;

import aQute.bnd.annotation.ProviderType;

import com.liferay.petra.salesforce.client.SalesforceClient;

import com.sforce.soap.partner.DeleteResult;
import com.sforce.soap.partner.DescribeGlobalResult;
import com.sforce.soap.partner.DescribeSObjectResult;
import com.sforce.soap.partner.GetDeletedResult;
import com.sforce.soap.partner.GetUpdatedResult;
import com.sforce.soap.partner.GetUserInfoResult;
import com.sforce.soap.partner.LoginResult;
import com.sforce.soap.partner.QueryResult;
import com.sforce.soap.partner.SaveResult;
import com.sforce.soap.partner.UpsertResult;
import com.sforce.soap.partner.sobject.SObject;
import com.sforce.ws.ConnectionException;

import java.util.Calendar;
import java.util.List;

/**
 * @author Brian Wing Shun Chan
 * @author Peter Shin
 */
@ProviderType
public interface SalesforcePartnerClient extends SalesforceClient {

	public List create(SObject[] sObjects)
		throws ConnectionException;

	public List delete(String[] salesforceKeys)
		throws ConnectionException;

	public DescribeGlobalResult describeGlobal(int retryCount)
		throws ConnectionException;

	public List describeSObjects(
			String[] typeNames, int retryCount)
		throws ConnectionException;

	public GetDeletedResult getDeleted(
			String typeName, Calendar startCalendar, Calendar endCalendar,
			int retryCount)
		throws ConnectionException;

	public GetUpdatedResult getUpdated(
			String typeName, Calendar startCalendar, Calendar endCalendar,
			int retryCount)
		throws ConnectionException;

	public GetUserInfoResult getUserInfo() throws ConnectionException;

	public LoginResult login(String username, String password, int retryCount)
		throws ConnectionException;

	public QueryResult query(String queryString, int retryCount)
		throws ConnectionException;

	public QueryResult queryAll(String queryString, int retryCount)
		throws ConnectionException;

	public QueryResult queryMore(String queryLocator, int retryCount)
		throws ConnectionException;

	public List retrieve(
			String fieldNames, String typeName, String[] salesforceKeys,
			int retryCount)
		throws ConnectionException;

	public List update(SObject[] sObjects)
		throws ConnectionException;

	public List upsert(
			String salesforceExternalKeyFieldName, SObject[] sObjects)
		throws ConnectionException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy