com.liferay.commerce.service.http.CommerceShipmentServiceHttp 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.CommerceShipmentServiceUtil;
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
* CommerceShipmentServiceUtil
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 CommerceShipmentServiceSoap
* @generated
*/
public class CommerceShipmentServiceHttp {
public static com.liferay.commerce.model.CommerceShipment
addCommerceShipment(
HttpPrincipal httpPrincipal, long groupId,
long commerceAccountId, long commerceAddressId,
long commerceShippingMethodId,
String commerceShippingOptionName,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "addCommerceShipment",
_addCommerceShipmentParameterTypes0);
MethodHandler methodHandler = new MethodHandler(
methodKey, groupId, commerceAccountId, commerceAddressId,
commerceShippingMethodId, commerceShippingOptionName,
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment
addCommerceShipment(
HttpPrincipal httpPrincipal, long commerceOrderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "addCommerceShipment",
_addCommerceShipmentParameterTypes1);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, 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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static void deleteCommerceShipment(
HttpPrincipal httpPrincipal, long commerceShipmentId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "deleteCommerceShipment",
_deleteCommerceShipmentParameterTypes2);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId);
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 void deleteCommerceShipment(
HttpPrincipal httpPrincipal, long commerceShipmentId,
boolean restoreStockQuantity)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "deleteCommerceShipment",
_deleteCommerceShipmentParameterTypes3);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, restoreStockQuantity);
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.CommerceShipment
getCommerceShipment(
HttpPrincipal httpPrincipal, long commerceShipmentId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipment",
_getCommerceShipmentParameterTypes4);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static java.util.List
getCommerceShipments(
HttpPrincipal httpPrincipal, long companyId, int status,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipments",
_getCommerceShipmentsParameterTypes5);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, status, 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
getCommerceShipments(
HttpPrincipal httpPrincipal, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipments",
_getCommerceShipmentsParameterTypes6);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, 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
getCommerceShipments(
HttpPrincipal httpPrincipal, long companyId,
long commerceAddressId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipments",
_getCommerceShipmentsParameterTypes7);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, commerceAddressId, 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
getCommerceShipments(
HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
long[] commerceAccountIds, String keywords,
int[] shipmentStatuses, boolean excludeShipmentStatus,
int start, int end)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipments",
_getCommerceShipmentsParameterTypes8);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupIds, commerceAccountIds, keywords,
shipmentStatuses, excludeShipmentStatus, 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
getCommerceShipmentsByOrderId(
HttpPrincipal httpPrincipal, long commerceOrderId, int start,
int end) {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class,
"getCommerceShipmentsByOrderId",
_getCommerceShipmentsByOrderIdParameterTypes9);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId, start, end);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception 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 getCommerceShipmentsCount(
HttpPrincipal httpPrincipal, long companyId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipmentsCount",
_getCommerceShipmentsCountParameterTypes10);
MethodHandler methodHandler = new MethodHandler(
methodKey, 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 ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceShipmentsCount(
HttpPrincipal httpPrincipal, long companyId, int status)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipmentsCount",
_getCommerceShipmentsCountParameterTypes11);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, status);
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 getCommerceShipmentsCount(
HttpPrincipal httpPrincipal, long companyId, long commerceAddressId)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipmentsCount",
_getCommerceShipmentsCountParameterTypes12);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, 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 ((Integer)returnObj).intValue();
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static int getCommerceShipmentsCount(
HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
long[] commerceAccountIds, String keywords, int[] shipmentStatuses,
boolean excludeShipmentStatus)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "getCommerceShipmentsCount",
_getCommerceShipmentsCountParameterTypes13);
MethodHandler methodHandler = new MethodHandler(
methodKey, companyId, groupIds, commerceAccountIds, keywords,
shipmentStatuses, excludeShipmentStatus);
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 getCommerceShipmentsCountByOrderId(
HttpPrincipal httpPrincipal, long commerceOrderId) {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class,
"getCommerceShipmentsCountByOrderId",
_getCommerceShipmentsCountByOrderIdParameterTypes14);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceOrderId);
Object returnObj = null;
try {
returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
}
catch (Exception 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.CommerceShipment updateAddress(
HttpPrincipal httpPrincipal, long commerceShipmentId, String name,
String description, String street1, String street2, String street3,
String city, String zip, long commerceRegionId,
long commerceCountryId, String phoneNumber)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateAddress",
_updateAddressParameterTypes15);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, name, description, street1,
street2, street3, city, zip, commerceRegionId,
commerceCountryId, phoneNumber);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment
updateCarrierDetails(
HttpPrincipal httpPrincipal, long commerceShipmentId,
String carrier, String trackingNumber)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateCarrierDetails",
_updateCarrierDetailsParameterTypes16);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, carrier, trackingNumber);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment
updateCommerceShipment(
HttpPrincipal httpPrincipal, long commerceShipmentId,
String carrier, String trackingNumber, int status,
int shippingDateMonth, int shippingDateDay,
int shippingDateYear, int shippingDateHour,
int shippingDateMinute, int expectedDateMonth,
int expectedDateDay, int expectedDateYear, int expectedDateHour,
int expectedDateMinute)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateCommerceShipment",
_updateCommerceShipmentParameterTypes17);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, carrier, trackingNumber, status,
shippingDateMonth, shippingDateDay, shippingDateYear,
shippingDateHour, shippingDateMinute, expectedDateMonth,
expectedDateDay, expectedDateYear, expectedDateHour,
expectedDateMinute);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment
updateCommerceShipment(
HttpPrincipal httpPrincipal, long commerceShipmentId,
String name, String description, String street1, String street2,
String street3, String city, String zip, long commerceRegionId,
long commerceCountryId, String phoneNumber, String carrier,
String trackingNumber, int status, int shippingDateMonth,
int shippingDateDay, int shippingDateYear, int shippingDateHour,
int shippingDateMinute, int expectedDateMonth,
int expectedDateDay, int expectedDateYear, int expectedDateHour,
int expectedDateMinute)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateCommerceShipment",
_updateCommerceShipmentParameterTypes18);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, name, description, street1,
street2, street3, city, zip, commerceRegionId,
commerceCountryId, phoneNumber, carrier, trackingNumber, status,
shippingDateMonth, shippingDateDay, shippingDateYear,
shippingDateHour, shippingDateMinute, expectedDateMonth,
expectedDateDay, expectedDateYear, expectedDateHour,
expectedDateMinute);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment
updateExpectedDate(
HttpPrincipal httpPrincipal, long commerceShipmentId,
int expectedDateMonth, int expectedDateDay,
int expectedDateYear, int expectedDateHour,
int expectedDateMinute)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateExpectedDate",
_updateExpectedDateParameterTypes19);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, expectedDateMonth,
expectedDateDay, expectedDateYear, expectedDateHour,
expectedDateMinute);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment
updateShippingDate(
HttpPrincipal httpPrincipal, long commerceShipmentId,
int shippingDateMonth, int shippingDateDay,
int shippingDateYear, int shippingDateHour,
int shippingDateMinute)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateShippingDate",
_updateShippingDateParameterTypes20);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, shippingDateMonth,
shippingDateDay, shippingDateYear, shippingDateHour,
shippingDateMinute);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
public static com.liferay.commerce.model.CommerceShipment updateStatus(
HttpPrincipal httpPrincipal, long commerceShipmentId, int status)
throws com.liferay.portal.kernel.exception.PortalException {
try {
MethodKey methodKey = new MethodKey(
CommerceShipmentServiceUtil.class, "updateStatus",
_updateStatusParameterTypes21);
MethodHandler methodHandler = new MethodHandler(
methodKey, commerceShipmentId, status);
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.CommerceShipment)returnObj;
}
catch (com.liferay.portal.kernel.exception.SystemException
systemException) {
_log.error(systemException, systemException);
throw systemException;
}
}
private static Log _log = LogFactoryUtil.getLog(
CommerceShipmentServiceHttp.class);
private static final Class>[] _addCommerceShipmentParameterTypes0 =
new Class[] {
long.class, long.class, long.class, long.class, String.class,
com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _addCommerceShipmentParameterTypes1 =
new Class[] {
long.class, com.liferay.portal.kernel.service.ServiceContext.class
};
private static final Class>[] _deleteCommerceShipmentParameterTypes2 =
new Class[] {long.class};
private static final Class>[] _deleteCommerceShipmentParameterTypes3 =
new Class[] {long.class, boolean.class};
private static final Class>[] _getCommerceShipmentParameterTypes4 =
new Class[] {long.class};
private static final Class>[] _getCommerceShipmentsParameterTypes5 =
new Class[] {
long.class, int.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceShipmentsParameterTypes6 =
new Class[] {
long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceShipmentsParameterTypes7 =
new Class[] {
long.class, long.class, int.class, int.class,
com.liferay.portal.kernel.util.OrderByComparator.class
};
private static final Class>[] _getCommerceShipmentsParameterTypes8 =
new Class[] {
long.class, long[].class, long[].class, String.class, int[].class,
boolean.class, int.class, int.class
};
private static final Class>[]
_getCommerceShipmentsByOrderIdParameterTypes9 = new Class[] {
long.class, int.class, int.class
};
private static final Class>[] _getCommerceShipmentsCountParameterTypes10 =
new Class[] {long.class};
private static final Class>[] _getCommerceShipmentsCountParameterTypes11 =
new Class[] {long.class, int.class};
private static final Class>[] _getCommerceShipmentsCountParameterTypes12 =
new Class[] {long.class, long.class};
private static final Class>[] _getCommerceShipmentsCountParameterTypes13 =
new Class[] {
long.class, long[].class, long[].class, String.class, int[].class,
boolean.class
};
private static final Class>[]
_getCommerceShipmentsCountByOrderIdParameterTypes14 = new Class[] {
long.class
};
private static final Class>[] _updateAddressParameterTypes15 =
new Class[] {
long.class, String.class, String.class, String.class, String.class,
String.class, String.class, String.class, long.class, long.class,
String.class
};
private static final Class>[] _updateCarrierDetailsParameterTypes16 =
new Class[] {long.class, String.class, String.class};
private static final Class>[] _updateCommerceShipmentParameterTypes17 =
new Class[] {
long.class, String.class, String.class, int.class, int.class,
int.class, int.class, int.class, int.class, int.class, int.class,
int.class, int.class, int.class
};
private static final Class>[] _updateCommerceShipmentParameterTypes18 =
new Class[] {
long.class, String.class, String.class, String.class, String.class,
String.class, String.class, String.class, long.class, long.class,
String.class, String.class, String.class, int.class, int.class,
int.class, int.class, int.class, int.class, int.class, int.class,
int.class, int.class, int.class
};
private static final Class>[] _updateExpectedDateParameterTypes19 =
new Class[] {
long.class, int.class, int.class, int.class, int.class, int.class
};
private static final Class>[] _updateShippingDateParameterTypes20 =
new Class[] {
long.class, int.class, int.class, int.class, int.class, int.class
};
private static final Class>[] _updateStatusParameterTypes21 =
new Class[] {long.class, int.class};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy