
com.liferay.commerce.service.http.CommerceAddressServiceHttp Maven / Gradle / Ivy
/**
* 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.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
* @see CommerceAddressServiceSoap
* @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 commerceRegionId,
long commerceCountryId, 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, commerceRegionId,
commerceCountryId, 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 commerceRegionId,
long commerceCountryId, 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, commerceRegionId,
commerceCountryId, 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 className, long classPK,
String name, String description, String street1, String street2,
String street3, String city, String zip, long commerceRegionId,
long commerceCountryId, String phoneNumber, int type,
String externalReferenceCode,
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, className, classPK, name, description, street1,
street2, street3, city, zip, commerceRegionId,
commerceCountryId, phoneNumber, type, externalReferenceCode,
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
fetchByExternalReferenceCode(
HttpPrincipal httpPrincipal, long companyId,
String externalReferenceCode)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"fetchByExternalReferenceCode",
_fetchByExternalReferenceCodeParameterTypes4);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, externalReferenceCode);
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
fetchCommerceAddress(
HttpPrincipal httpPrincipal, long commerceAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class, "fetchCommerceAddress",
_fetchCommerceAddressParameterTypes5);
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
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 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, "getBillingCommerceAddresses",
_getBillingCommerceAddressesParameterTypes7);
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 (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, String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getBillingCommerceAddressesCount",
_getBillingCommerceAddressesCountParameterTypes8);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, 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",
_getCommerceAddressParameterTypes9);
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",
_getCommerceAddressesParameterTypes10);
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",
_getCommerceAddressesParameterTypes11);
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",
_getCommerceAddressesParameterTypes12);
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",
_getCommerceAddressesByCompanyIdParameterTypes13);
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",
_getCommerceAddressesByCompanyIdParameterTypes14);
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",
_getCommerceAddressesCountParameterTypes15);
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",
_getCommerceAddressesCountParameterTypes16);
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",
_getCommerceAddressesCountByCompanyIdParameterTypes17);
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",
_getShippingCommerceAddressesParameterTypes18);
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 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,
"getShippingCommerceAddresses",
_getShippingCommerceAddressesParameterTypes19);
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 (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, String keywords)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceAddressServiceUtil.class,
"getShippingCommerceAddressesCount",
_getShippingCommerceAddressesCountParameterTypes20);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, className, classPK, 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",
_searchCommerceAddressesParameterTypes21);
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",
_searchCommerceAddressesParameterTypes22);
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 commerceRegionId,
long commerceCountryId, 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",
_updateCommerceAddressParameterTypes23);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId, name, description, street1,
street2, street3, city, zip, commerceRegionId,
commerceCountryId, 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 commerceRegionId,
long commerceCountryId, 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",
_updateCommerceAddressParameterTypes24);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceAddressId, name, description, street1,
street2, street3, city, zip, commerceRegionId,
commerceCountryId, 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, long.class, String.class, String.class, String.class,
String.class, String.class, String.class, String.class, long.class,
long.class, String.class, int.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _deleteCommerceAddressParameterTypes3 =
new Class[] {long.class};
private static final Class>[]
_fetchByExternalReferenceCodeParameterTypes4 = new Class[] {
long.class, String.class
};
private static final Class>[] _fetchCommerceAddressParameterTypes5 =
new 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, String.class, int.class,
int.class, com.liferay.portal.kernel.search.Sort.class
};
private static final Class>[]
_getBillingCommerceAddressesCountParameterTypes8 = new Class[] {
long.class, String.class, long.class, String.class
};
private static final Class>[] _getCommerceAddressParameterTypes9 =
new Class[] {long.class};
private static final Class>[] _getCommerceAddressesParameterTypes10 =
new Class[] {long.class, String.class, long.class};
private static final Class>[] _getCommerceAddressesParameterTypes11 =
new Class[] {
long.class, String.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceAddressesParameterTypes12 =
new Class[] {
String.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[]
_getCommerceAddressesByCompanyIdParameterTypes13 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getCommerceAddressesByCompanyIdParameterTypes14 = new Class[] {
long.class, String.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceAddressesCountParameterTypes15 =
new Class[] {long.class, String.class, long.class};
private static final Class>[] _getCommerceAddressesCountParameterTypes16 =
new Class[] {String.class, long.class};
private static final Class>[]
_getCommerceAddressesCountByCompanyIdParameterTypes17 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getShippingCommerceAddressesParameterTypes18 = new Class[] {
long.class, String.class, long.class
};
private static final Class>[]
_getShippingCommerceAddressesParameterTypes19 = 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>[]
_getShippingCommerceAddressesCountParameterTypes20 = new Class[] {
long.class, String.class, long.class, String.class
};
private static final Class>[] _searchCommerceAddressesParameterTypes21 =
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>[] _searchCommerceAddressesParameterTypes22 =
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>[] _updateCommerceAddressParameterTypes23 =
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>[] _updateCommerceAddressParameterTypes24 =
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