Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* 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;
import com.liferay.commerce.model.CommerceShipmentItem;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.module.service.Snapshot;
import com.liferay.portal.kernel.util.OrderByComparator;
import java.util.List;
/**
* Provides the remote service utility for CommerceShipmentItem. This utility wraps
* com.liferay.commerce.service.impl.CommerceShipmentItemServiceImpl and is an
* access point for service operations in application layer code running on a
* remote server. Methods of this service are expected to have security checks
* based on the propagated JAAS credentials because this service can be
* accessed remotely.
*
* @author Alessio Antonio Rendina
* @see CommerceShipmentItemService
* @generated
*/
public class CommerceShipmentItemServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to com.liferay.commerce.service.impl.CommerceShipmentItemServiceImpl and rerun ServiceBuilder to regenerate this class.
*/
public static CommerceShipmentItem addCommerceShipmentItem(
String externalReferenceCode, long commerceShipmentId,
long commerceOrderItemId, long commerceInventoryWarehouseId,
java.math.BigDecimal quantity, String unitOfMeasureKey,
boolean validateInventory,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws PortalException {
return getService().addCommerceShipmentItem(
externalReferenceCode, commerceShipmentId, commerceOrderItemId,
commerceInventoryWarehouseId, quantity, unitOfMeasureKey,
validateInventory, serviceContext);
}
public static CommerceShipmentItem addOrUpdateCommerceShipmentItem(
String externalReferenceCode, long commerceShipmentId,
long commerceOrderItemId, long commerceInventoryWarehouseId,
java.math.BigDecimal quantity, String unitOfMeasureKey,
boolean validateInventory,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws PortalException {
return getService().addOrUpdateCommerceShipmentItem(
externalReferenceCode, commerceShipmentId, commerceOrderItemId,
commerceInventoryWarehouseId, quantity, unitOfMeasureKey,
validateInventory, serviceContext);
}
/**
* @deprecated As of Mueller (7.2.x), pass boolean for restoring stock
*/
@Deprecated
public static void deleteCommerceShipmentItem(long commerceShipmentItemId)
throws PortalException {
getService().deleteCommerceShipmentItem(commerceShipmentItemId);
}
public static void deleteCommerceShipmentItem(
long commerceShipmentItemId, boolean restoreStockQuantity)
throws PortalException {
getService().deleteCommerceShipmentItem(
commerceShipmentItemId, restoreStockQuantity);
}
public static void deleteCommerceShipmentItems(
long commerceShipmentId, boolean restoreStockQuantity)
throws PortalException {
getService().deleteCommerceShipmentItems(
commerceShipmentId, restoreStockQuantity);
}
public static CommerceShipmentItem fetchCommerceShipmentItem(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId)
throws PortalException {
return getService().fetchCommerceShipmentItem(
commerceShipmentId, commerceOrderItemId,
commerceInventoryWarehouseId);
}
public static CommerceShipmentItem
fetchCommerceShipmentItemByExternalReferenceCode(
long companyId, String externalReferenceCode)
throws PortalException {
return getService().fetchCommerceShipmentItemByExternalReferenceCode(
companyId, externalReferenceCode);
}
public static CommerceShipmentItem getCommerceShipmentItem(
long commerceShipmentItemId)
throws PortalException {
return getService().getCommerceShipmentItem(commerceShipmentItemId);
}
/**
* @deprecated As of Athanasius (7.3.x)
*/
@Deprecated
public static List getCommerceShipmentItems(
long commerceOrderItemId)
throws PortalException {
return getService().getCommerceShipmentItems(commerceOrderItemId);
}
public static List getCommerceShipmentItems(
long commerceShipmentId, int start, int end,
OrderByComparator orderByComparator)
throws PortalException {
return getService().getCommerceShipmentItems(
commerceShipmentId, start, end, orderByComparator);
}
public static List
getCommerceShipmentItemsByCommerceOrderItemId(
long commerceOrderItemId)
throws PortalException {
return getService().getCommerceShipmentItemsByCommerceOrderItemId(
commerceOrderItemId);
}
public static int getCommerceShipmentItemsCount(long commerceShipmentId)
throws PortalException {
return getService().getCommerceShipmentItemsCount(commerceShipmentId);
}
public static int getCommerceShipmentItemsCountByCommerceOrderItemId(
long commerceOrderItemId)
throws PortalException {
return getService().getCommerceShipmentItemsCountByCommerceOrderItemId(
commerceOrderItemId);
}
public static java.math.BigDecimal getCommerceShipmentOrderItemsQuantity(
long commerceShipmentId, long commerceOrderItemId)
throws PortalException {
return getService().getCommerceShipmentOrderItemsQuantity(
commerceShipmentId, commerceOrderItemId);
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public static String getOSGiServiceIdentifier() {
return getService().getOSGiServiceIdentifier();
}
public static CommerceShipmentItem updateCommerceShipmentItem(
long commerceShipmentItemId, long commerceInventoryWarehouseId,
java.math.BigDecimal quantity, boolean validateInventory)
throws PortalException {
return getService().updateCommerceShipmentItem(
commerceShipmentItemId, commerceInventoryWarehouseId, quantity,
validateInventory);
}
public static CommerceShipmentItem updateExternalReferenceCode(
long commerceShipmentItemId, String externalReferenceCode)
throws PortalException {
return getService().updateExternalReferenceCode(
commerceShipmentItemId, externalReferenceCode);
}
public static CommerceShipmentItemService getService() {
return _serviceSnapshot.get();
}
private static final Snapshot
_serviceSnapshot = new Snapshot<>(
CommerceShipmentItemServiceUtil.class,
CommerceShipmentItemService.class);
}