
com.liferay.commerce.service.http.CommerceAddressServiceHttp Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.service.http;
import com.liferay.commerce.service.CommerceAddressServiceUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.security.auth.HttpPrincipal;
import com.liferay.portal.kernel.service.http.TunnelUtil;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;
/**
* Provides the HTTP utility for the
* CommerceAddressServiceUtil
service
* utility. The
* static methods of this class calls the same methods of the service utility.
* However, the signatures are different because it requires an additional
* HttpPrincipal
parameter.
*
*
* The benefits of using the HTTP utility is that it is fast and allows for
* tunneling without the cost of serializing to text. The drawback is that it
* only works with Java.
*
*
*
* Set the property tunnel.servlet.hosts.allowed in portal.properties to
* configure security.
*
*
*
* The HTTP utility is only generated for remote services.
*
*
* @author Alessio Antonio Rendina
* @generated
*/
public class CommerceAddressServiceHttp {
public static com.liferay.commerce.model.CommerceAddress addCommerceAddress(
HttpPrincipal httpPrincipal, String className, long classPK,
String name, String description, String street1, String street2,
String street3, String city, String zip, long regionId,
long countryId, String phoneNumber, boolean defaultBilling,
boolean defaultShipping,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "addCommerceAddress",
_addCommerceAddressParameterTypes0);
MethodHandler methodHandler = new MethodHandler(
methodKey, className, classPK, name, description, street1,
street2, street3, city, zip, regionId, countryId, phoneNumber,
defaultBilling, defaultShipping, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress addCommerceAddress(
HttpPrincipal httpPrincipal, String className, long classPK,
String name, String description, String street1, String street2,
String street3, String city, String zip, long regionId,
long countryId, String phoneNumber, int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "addCommerceAddress",
_addCommerceAddressParameterTypes1);
MethodHandler methodHandler = new MethodHandler(
methodKey, className, classPK, name, description, street1,
street2, street3, city, zip, regionId, countryId, phoneNumber,
type, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress addCommerceAddress(
HttpPrincipal httpPrincipal, String externalReferenceCode,
String className, long classPK, String name, String description,
String street1, String street2, String street3, String city,
String zip, long regionId, long countryId, String phoneNumber,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "addCommerceAddress",
_addCommerceAddressParameterTypes2);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, className, classPK, name,
description, street1, street2, street3, city, zip, regionId,
countryId, phoneNumber, type, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static void deleteCommerceAddress(
HttpPrincipal httpPrincipal, long commerceAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "deleteCommerceAddress",
_deleteCommerceAddressParameterTypes3);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId);
try {
TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress
fetchCommerceAddress(
HttpPrincipal httpPrincipal, long commerceAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "fetchCommerceAddress",
_fetchCommerceAddressParameterTypes4);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress
fetchCommerceAddressByExternalReferenceCode(
HttpPrincipal httpPrincipal, String externalReferenceCode,
long companyId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"fetchCommerceAddressByExternalReferenceCode",
_fetchCommerceAddressByExternalReferenceCodeParameterTypes5);
MethodHandler methodHandler = new MethodHandler(
methodKey, externalReferenceCode, companyId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getBillingCommerceAddresses(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getBillingCommerceAddresses",
_getBillingCommerceAddressesParameterTypes6);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getBillingCommerceAddresses(
HttpPrincipal httpPrincipal, long channelId, String className,
long classPK, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getBillingCommerceAddresses",
_getBillingCommerceAddressesParameterTypes7);
MethodHandler methodHandler = new MethodHandler(
methodKey, channelId, className, classPK, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getBillingCommerceAddresses(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK, long commerceChannelId, String keywords,
int start, int end, com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getBillingCommerceAddresses",
_getBillingCommerceAddressesParameterTypes8);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, commerceChannelId,
keywords, start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getBillingCommerceAddressesCount(
HttpPrincipal httpPrincipal, long channelId, String className,
long classPK, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getBillingCommerceAddressesCount",
_getBillingCommerceAddressesCountParameterTypes9);
MethodHandler methodHandler = new MethodHandler(
methodKey, channelId, className, classPK, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getBillingCommerceAddressesCount(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK, long commerceChannelId, String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getBillingCommerceAddressesCount",
_getBillingCommerceAddressesCountParameterTypes10);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, commerceChannelId,
keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress getCommerceAddress(
HttpPrincipal httpPrincipal, long commerceAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getCommerceAddress",
_getCommerceAddressParameterTypes11);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceAddresses(
HttpPrincipal httpPrincipal, long groupId, String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getCommerceAddresses",
_getCommerceAddressesParameterTypes12);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceAddresses(
HttpPrincipal httpPrincipal, long groupId, String className,
long classPK, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getCommerceAddresses",
_getCommerceAddressesParameterTypes13);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, className, classPK, start, end,
orderByComparator);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceAddresses(
HttpPrincipal httpPrincipal, String className, long classPK,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getCommerceAddresses",
_getCommerceAddressesParameterTypes14);
MethodHandler methodHandler = new MethodHandler(
methodKey, className, classPK, start, end, orderByComparator);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceAddressesByCompanyId(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getCommerceAddressesByCompanyId",
_getCommerceAddressesByCompanyIdParameterTypes15);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceAddressesByCompanyId(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getCommerceAddressesByCompanyId",
_getCommerceAddressesByCompanyIdParameterTypes16);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, start, end,
orderByComparator);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceAddressesCount(
HttpPrincipal httpPrincipal, long groupId, String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getCommerceAddressesCount",
_getCommerceAddressesCountParameterTypes17);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceAddressesCount(
HttpPrincipal httpPrincipal, String className, long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "getCommerceAddressesCount",
_getCommerceAddressesCountParameterTypes18);
MethodHandler methodHandler = new MethodHandler(
methodKey, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceAddressesCountByCompanyId(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getCommerceAddressesCountByCompanyId",
_getCommerceAddressesCountByCompanyIdParameterTypes19);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getShippingCommerceAddresses(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getShippingCommerceAddresses",
_getShippingCommerceAddressesParameterTypes20);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getShippingCommerceAddresses(
HttpPrincipal httpPrincipal, long channelId, String className,
long classPK, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getShippingCommerceAddresses",
_getShippingCommerceAddressesParameterTypes21);
MethodHandler methodHandler = new MethodHandler(
methodKey, channelId, className, classPK, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getShippingCommerceAddresses(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK, long commerceChannelId, String keywords,
int start, int end, com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getShippingCommerceAddresses",
_getShippingCommerceAddressesParameterTypes22);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, commerceChannelId,
keywords, start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getShippingCommerceAddressesCount(
HttpPrincipal httpPrincipal, long channelId, String className,
long classPK, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getShippingCommerceAddressesCount",
_getShippingCommerceAddressesCountParameterTypes23);
MethodHandler methodHandler = new MethodHandler(
methodKey, channelId, className, classPK, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (java.util.List)
returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getShippingCommerceAddressesCount(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK, long commerceChannelId, String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getShippingCommerceAddressesCount",
_getShippingCommerceAddressesCountParameterTypes24);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, commerceChannelId,
keywords);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.portal.kernel.search.BaseModelSearchResult
searchCommerceAddresses(
HttpPrincipal httpPrincipal, long companyId, long groupId,
String className, long classPK, String keywords, int start,
int end, com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "searchCommerceAddresses",
_searchCommerceAddressesParameterTypes25);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupId, className, classPK, keywords,
start, end, sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.portal.kernel.search.BaseModelSearchResult
)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.portal.kernel.search.BaseModelSearchResult
searchCommerceAddresses(
HttpPrincipal httpPrincipal, long companyId, String className,
long classPK, String keywords, int start, int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "searchCommerceAddresses",
_searchCommerceAddressesParameterTypes26);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, keywords, start, end,
sort);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.portal.kernel.search.BaseModelSearchResult
)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress
updateCommerceAddress(
HttpPrincipal httpPrincipal, long commerceAddressId,
String name, String description, String street1, String street2,
String street3, String city, String zip, long regionId,
long countryId, String phoneNumber, boolean defaultBilling,
boolean defaultShipping,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "updateCommerceAddress",
_updateCommerceAddressParameterTypes27);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId, name, description, street1,
street2, street3, city, zip, regionId, countryId, phoneNumber,
defaultBilling, defaultShipping, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceAddress
updateCommerceAddress(
HttpPrincipal httpPrincipal, long commerceAddressId,
String name, String description, String street1, String street2,
String street3, String city, String zip, long regionId,
long countryId, String phoneNumber, int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "updateCommerceAddress",
_updateCommerceAddressParameterTypes28);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId, name, description, street1,
street2, street3, city, zip, regionId, countryId, phoneNumber,
type, serviceContext);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception exception) {
if (exception instanceof
com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)
exception;
}
throw new com.liferay.portal.kernel.exception.SystemException(
exception);
}
return (com.liferay.commerce.model.CommerceAddress)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
private static Log _log = LogFactoryUtil.getLog(
CommerceAddressServiceHttp.class);
private static final Class>[] _addCommerceAddressParameterTypes0 =
new Class[] {
String.class, long.class, String.class, String.class, String.class,
String.class, String.class, String.class, String.class, long.class,
long.class, String.class, boolean.class, boolean.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _addCommerceAddressParameterTypes1 =
new Class[] {
String.class, long.class, String.class, String.class, String.class,
String.class, String.class, String.class, String.class, long.class,
long.class, String.class, int.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _addCommerceAddressParameterTypes2 =
new Class[] {
String.class, String.class, long.class, String.class, String.class,
String.class, String.class, String.class, String.class,
String.class, long.class, long.class, String.class, int.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _deleteCommerceAddressParameterTypes3 =
new Class[] {long.class};
private static final Class>[] _fetchCommerceAddressParameterTypes4 =
new Class[] {long.class};
private static final Class>[]
_fetchCommerceAddressByExternalReferenceCodeParameterTypes5 =
new Class[] {String.class, long.class};
private static final Class>[]
_getBillingCommerceAddressesParameterTypes6 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getBillingCommerceAddressesParameterTypes7 = new Class[] {
long.class, String.class, long.class, int.class, int.class
};
private static final Class>[]
_getBillingCommerceAddressesParameterTypes8 = new Class[] {
long.class, String.class, long.class, long.class, String.class,
int.class, int.class, com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[]
_getBillingCommerceAddressesCountParameterTypes9 = new Class[] {
long.class, String.class, long.class, int.class, int.class
};
private static final Class>[]
_getBillingCommerceAddressesCountParameterTypes10 = new Class[] {
long.class, String.class, long.class, long.class, String.class
};
private static final Class>[] _getCommerceAddressParameterTypes11 =
new Class[] {long.class};
private static final Class>[] _getCommerceAddressesParameterTypes12 =
new Class[] {long.class, String.class, long.class};
private static final Class>[] _getCommerceAddressesParameterTypes13 =
new Class[] {
long.class, String.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceAddressesParameterTypes14 =
new Class[] {
String.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[]
_getCommerceAddressesByCompanyIdParameterTypes15 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getCommerceAddressesByCompanyIdParameterTypes16 = new Class[] {
long.class, String.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceAddressesCountParameterTypes17 =
new Class[] {long.class, String.class, long.class};
private static final Class>[] _getCommerceAddressesCountParameterTypes18 =
new Class[] {String.class, long.class};
private static final Class>[]
_getCommerceAddressesCountByCompanyIdParameterTypes19 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getShippingCommerceAddressesParameterTypes20 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getShippingCommerceAddressesParameterTypes21 = new Class[] {
long.class, String.class, long.class, int.class, int.class
};
private static final Class>[]
_getShippingCommerceAddressesParameterTypes22 = new Class[] {
long.class, String.class, long.class, long.class, String.class,
int.class, int.class, com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[]
_getShippingCommerceAddressesCountParameterTypes23 = new Class[] {
long.class, String.class, long.class, int.class, int.class
};
private static final Class>[]
_getShippingCommerceAddressesCountParameterTypes24 = new Class[] {
long.class, String.class, long.class, long.class, String.class
};
private static final Class>[] _searchCommerceAddressesParameterTypes25 =
new Class[] {
long.class, long.class, String.class, long.class, String.class,
int.class, int.class, com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[] _searchCommerceAddressesParameterTypes26 =
new Class[] {
long.class, String.class, long.class, String.class, int.class,
int.class, com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[] _updateCommerceAddressParameterTypes27 =
new Class[] {
long.class, String.class, String.class, String.class, String.class,
String.class, String.class, String.class, long.class, long.class,
String.class, boolean.class, boolean.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _updateCommerceAddressParameterTypes28 =
new Class[] {
long.class, String.class, String.class, String.class, String.class,
String.class, String.class, String.class, long.class, long.class,
String.class, int.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy