Package com.liferay.commerce.service
Class CommerceShipmentItemServiceUtil
java.lang.Object
com.liferay.commerce.service.CommerceShipmentItemServiceUtil
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommerceShipmentItem
addCommerceShipmentItem
(String externalReferenceCode, long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId, BigDecimal quantity, String unitOfMeasureKey, boolean validateInventory, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceShipmentItem
addOrUpdateCommerceShipmentItem
(String externalReferenceCode, long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId, BigDecimal quantity, String unitOfMeasureKey, boolean validateInventory, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteCommerceShipmentItem
(long commerceShipmentItemId) Deprecated.As of Mueller (7.2.x), pass boolean for restoring stockstatic void
deleteCommerceShipmentItem
(long commerceShipmentItemId, boolean restoreStockQuantity) static void
deleteCommerceShipmentItems
(long commerceShipmentId, boolean restoreStockQuantity) static CommerceShipmentItem
fetchCommerceShipmentItem
(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId) static CommerceShipmentItem
fetchCommerceShipmentItemByExternalReferenceCode
(long companyId, String externalReferenceCode) static CommerceShipmentItem
getCommerceShipmentItem
(long commerceShipmentItemId) static List<CommerceShipmentItem>
getCommerceShipmentItems
(long commerceOrderItemId) Deprecated.As of Athanasius (7.3.x)static List<CommerceShipmentItem>
getCommerceShipmentItems
(long commerceShipmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) static List<CommerceShipmentItem>
getCommerceShipmentItemsByCommerceOrderItemId
(long commerceOrderItemId) static int
getCommerceShipmentItemsCount
(long commerceShipmentId) static int
getCommerceShipmentItemsCountByCommerceOrderItemId
(long commerceOrderItemId) static BigDecimal
getCommerceShipmentOrderItemsQuantity
(long commerceShipmentId, long commerceOrderItemId) static String
Returns the OSGi service identifier.static CommerceShipmentItemService
static CommerceShipmentItem
updateCommerceShipmentItem
(long commerceShipmentItemId, long commerceInventoryWarehouseId, BigDecimal quantity, boolean validateInventory) static CommerceShipmentItem
updateExternalReferenceCode
(long commerceShipmentItemId, String externalReferenceCode)
-
Constructor Details
-
CommerceShipmentItemServiceUtil
public CommerceShipmentItemServiceUtil()
-
-
Method Details
-
addCommerceShipmentItem
public static CommerceShipmentItem addCommerceShipmentItem(String externalReferenceCode, long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId, BigDecimal quantity, String unitOfMeasureKey, boolean validateInventory, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceShipmentItem
public static CommerceShipmentItem addOrUpdateCommerceShipmentItem(String externalReferenceCode, long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId, BigDecimal quantity, String unitOfMeasureKey, boolean validateInventory, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceShipmentItem
@Deprecated public static void deleteCommerceShipmentItem(long commerceShipmentItemId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Mueller (7.2.x), pass boolean for restoring stock- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceShipmentItem
public static void deleteCommerceShipmentItem(long commerceShipmentItemId, boolean restoreStockQuantity) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceShipmentItems
public static void deleteCommerceShipmentItems(long commerceShipmentId, boolean restoreStockQuantity) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceShipmentItem
public static CommerceShipmentItem fetchCommerceShipmentItem(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceShipmentItemByExternalReferenceCode
public static CommerceShipmentItem fetchCommerceShipmentItemByExternalReferenceCode(long companyId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentItem
public static CommerceShipmentItem getCommerceShipmentItem(long commerceShipmentItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentItems
@Deprecated public static List<CommerceShipmentItem> getCommerceShipmentItems(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentItems
public static List<CommerceShipmentItem> getCommerceShipmentItems(long commerceShipmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentItemsByCommerceOrderItemId
public static List<CommerceShipmentItem> getCommerceShipmentItemsByCommerceOrderItemId(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentItemsCount
public static int getCommerceShipmentItemsCount(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentItemsCountByCommerceOrderItemId
public static int getCommerceShipmentItemsCountByCommerceOrderItemId(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceShipmentOrderItemsQuantity
public static BigDecimal getCommerceShipmentOrderItemsQuantity(long commerceShipmentId, long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
updateCommerceShipmentItem
public static CommerceShipmentItem updateCommerceShipmentItem(long commerceShipmentItemId, long commerceInventoryWarehouseId, BigDecimal quantity, boolean validateInventory) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public static CommerceShipmentItem updateExternalReferenceCode(long commerceShipmentItemId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-