
com.liferay.commerce.data.integration.service.http.CommerceDataIntegrationProcessServiceSoap Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Liferay Enterprise
* Subscription License ("License"). You may not use this file except in
* compliance with the License. You can obtain a copy of the License by
* contacting Liferay, Inc. See the License for the specific language governing
* permissions and limitations under the License, including but not limited to
* distribution rights of the Software.
*
*
*
*/
package com.liferay.commerce.data.integration.service.http;
import com.liferay.commerce.data.integration.service.CommerceDataIntegrationProcessServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import java.rmi.RemoteException;
/**
* Provides the SOAP utility for the
* CommerceDataIntegrationProcessServiceUtil
service
* utility. The static methods of this class call the same methods of the
* service utility. However, the signatures are different because it is
* difficult for SOAP to support certain types.
*
*
* ServiceBuilder follows certain rules in translating the methods. For example,
* if the method in the service utility returns a java.util.List
,
* that is translated to an array of
* com.liferay.commerce.data.integration.model.CommerceDataIntegrationProcessSoap
. If the method in the
* service utility returns a
* com.liferay.commerce.data.integration.model.CommerceDataIntegrationProcess
, that is translated to a
* com.liferay.commerce.data.integration.model.CommerceDataIntegrationProcessSoap
. Methods that SOAP
* cannot safely wire are skipped.
*
*
*
* The benefits of using the SOAP utility is that it is cross platform
* compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
* even Perl, to call the generated services. One drawback of SOAP is that it is
* slow because it needs to serialize all calls into a text format (XML).
*
*
*
* You can see a list of services at http://localhost:8080/api/axis. Set the
* property axis.servlet.hosts.allowed in portal.properties to configure
* security.
*
*
*
* The SOAP utility is only generated for remote services.
*
*
* @author Alessio Antonio Rendina
* @see CommerceDataIntegrationProcessServiceHttp
* @generated
*/
public class CommerceDataIntegrationProcessServiceSoap {
public static void deleteCommerceDataIntegrationProcess(
long commerceDataIntegrationProcessId)
throws RemoteException {
try {
CommerceDataIntegrationProcessServiceUtil.
deleteCommerceDataIntegrationProcess(
commerceDataIntegrationProcessId);
}
catch (Exception exception) {
_log.error(exception, exception);
throw new RemoteException(exception.getMessage());
}
}
public static com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap fetchCommerceDataIntegrationProcess(
long commerceDataIntegrationProcessId)
throws RemoteException {
try {
com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcess returnValue =
CommerceDataIntegrationProcessServiceUtil.
fetchCommerceDataIntegrationProcess(
commerceDataIntegrationProcessId);
return com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap.toSoapModel(returnValue);
}
catch (Exception exception) {
_log.error(exception, exception);
throw new RemoteException(exception.getMessage());
}
}
public static com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap getCommerceDataIntegrationProcess(
long commerceDataIntegrationProcessId)
throws RemoteException {
try {
com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcess returnValue =
CommerceDataIntegrationProcessServiceUtil.
getCommerceDataIntegrationProcess(
commerceDataIntegrationProcessId);
return com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap.toSoapModel(returnValue);
}
catch (Exception exception) {
_log.error(exception, exception);
throw new RemoteException(exception.getMessage());
}
}
public static com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap[]
getCommerceDataIntegrationProcesses(
long companyId, int start, int end)
throws RemoteException {
try {
java.util.List
returnValue =
CommerceDataIntegrationProcessServiceUtil.
getCommerceDataIntegrationProcesses(
companyId, start, end);
return com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap.toSoapModels(returnValue);
}
catch (Exception exception) {
_log.error(exception, exception);
throw new RemoteException(exception.getMessage());
}
}
public static int getCommerceDataIntegrationProcessesCount(long companyId)
throws RemoteException {
try {
int returnValue =
CommerceDataIntegrationProcessServiceUtil.
getCommerceDataIntegrationProcessesCount(companyId);
return returnValue;
}
catch (Exception exception) {
_log.error(exception, exception);
throw new RemoteException(exception.getMessage());
}
}
public static com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap
updateCommerceDataIntegrationProcessTrigger(
long commerceDataIntegrationProcessId, boolean active,
String cronExpression, int startDateMonth, int startDateDay,
int startDateYear, int startDateHour, int startDateMinute,
int endDateMonth, int endDateDay, int endDateYear,
int endDateHour, int endDateMinute, boolean neverEnd)
throws RemoteException {
try {
com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcess returnValue =
CommerceDataIntegrationProcessServiceUtil.
updateCommerceDataIntegrationProcessTrigger(
commerceDataIntegrationProcessId, active,
cronExpression, startDateMonth, startDateDay,
startDateYear, startDateHour, startDateMinute,
endDateMonth, endDateDay, endDateYear, endDateHour,
endDateMinute, neverEnd);
return com.liferay.commerce.data.integration.model.
CommerceDataIntegrationProcessSoap.toSoapModel(returnValue);
}
catch (Exception exception) {
_log.error(exception, exception);
throw new RemoteException(exception.getMessage());
}
}
private static Log _log = LogFactoryUtil.getLog(
CommerceDataIntegrationProcessServiceSoap.class);
}