Class CommerceInventoryWarehouseItemServiceUtil
java.lang.Object
com.liferay.commerce.inventory.service.CommerceInventoryWarehouseItemServiceUtil
Provides the remote service utility for CommerceInventoryWarehouseItem. This utility wraps
com.liferay.commerce.inventory.service.impl.CommerceInventoryWarehouseItemServiceImpl 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 TypeMethodDescriptionaddCommerceInventoryWarehouseItem(String externalReferenceCode, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) addOrUpdateCommerceInventoryWarehouseItem(String externalReferenceCode, long companyId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) static voiddeleteCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) static voiddeleteCommerceInventoryWarehouseItems(long companyId, String sku, String unitOfMeasureKey) fetchCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) fetchCommerceInventoryWarehouseItemByExternalReferenceCode(String externalReferenceCode, long companyId) getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) static List<CommerceInventoryWarehouseItem>getCommerceInventoryWarehouseItems(long commerceInventoryWarehouseId, int start, int end) static List<CommerceInventoryWarehouseItem>getCommerceInventoryWarehouseItemsByCompanyId(long companyId, int start, int end) static List<CommerceInventoryWarehouseItem>getCommerceInventoryWarehouseItemsByCompanyIdSkuAndUnitOfMeasureKey(long companyId, String sku, String unitOfMeasureKey, int start, int end) static intgetCommerceInventoryWarehouseItemsCount(long commerceInventoryWarehouseId) static intgetCommerceInventoryWarehouseItemsCount(long companyId, long accountEntryId, long groupId, String sku, String unitOfMeasureKey) static intgetCommerceInventoryWarehouseItemsCount(long companyId, String sku, String unitOfMeasureKey) static intgetCommerceInventoryWarehouseItemsCountByCompanyId(long companyId) static intgetCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId, Date startDate, Date endDate) static List<CommerceInventoryWarehouseItem>getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId, Date startDate, Date endDate, int start, int end) static StringReturns the OSGi service identifier.static BigDecimalgetStockQuantity(long companyId, long accountEntryId, long groupId, String sku, String unitOfMeasureKey) static BigDecimalgetStockQuantity(long companyId, String sku, String unitOfMeasureKey) increaseCommerceInventoryWarehouseItemQuantity(long commerceInventoryWarehouseItemId, BigDecimal quantity) static voidmoveQuantitiesBetweenWarehouses(long fromCommerceInventoryWarehouseId, long toCommerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId, long mvccVersion, BigDecimal quantity, String unitOfMeasureKey) updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId, BigDecimal quantity, BigDecimal reservedQuantity, long mvccVersion)
-
Constructor Details
-
CommerceInventoryWarehouseItemServiceUtil
public CommerceInventoryWarehouseItemServiceUtil()
-
-
Method Details
-
addCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem addCommerceInventoryWarehouseItem(String externalReferenceCode, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem addOrUpdateCommerceInventoryWarehouseItem(String externalReferenceCode, long companyId, long commerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceInventoryWarehouseItem
public static void deleteCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceInventoryWarehouseItems
public static void deleteCommerceInventoryWarehouseItems(long companyId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem fetchCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceInventoryWarehouseItemByExternalReferenceCode
public static CommerceInventoryWarehouseItem fetchCommerceInventoryWarehouseItemByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItems
public static List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItems(long commerceInventoryWarehouseId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemsByCompanyId
public static List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItemsByCompanyId(long companyId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemsByCompanyIdSkuAndUnitOfMeasureKey
public static List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItemsByCompanyIdSkuAndUnitOfMeasureKey(long companyId, String sku, String unitOfMeasureKey, int start, int end) throws com.liferay.portal.kernel.security.auth.PrincipalException - Throws:
com.liferay.portal.kernel.security.auth.PrincipalException
-
getCommerceInventoryWarehouseItemsCount
public static int getCommerceInventoryWarehouseItemsCount(long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemsCount
public static int getCommerceInventoryWarehouseItemsCount(long companyId, long accountEntryId, long groupId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemsCount
public static int getCommerceInventoryWarehouseItemsCount(long companyId, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemsCountByCompanyId
public static int getCommerceInventoryWarehouseItemsCountByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemsCountByModifiedDate
public static int getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId, Date startDate, Date endDate) throws com.liferay.portal.kernel.security.auth.PrincipalException - Throws:
com.liferay.portal.kernel.security.auth.PrincipalException
-
getCommerceInventoryWarehouseItemsCountByModifiedDate
public static List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId, Date startDate, Date endDate, int start, int end) throws com.liferay.portal.kernel.security.auth.PrincipalException - Throws:
com.liferay.portal.kernel.security.auth.PrincipalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getStockQuantity
public static BigDecimal getStockQuantity(long companyId, long accountEntryId, long groupId, String sku, String unitOfMeasureKey) -
getStockQuantity
-
increaseCommerceInventoryWarehouseItemQuantity
public static CommerceInventoryWarehouseItem increaseCommerceInventoryWarehouseItemQuantity(long commerceInventoryWarehouseItemId, BigDecimal quantity) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveQuantitiesBetweenWarehouses
public static void moveQuantitiesBetweenWarehouses(long fromCommerceInventoryWarehouseId, long toCommerceInventoryWarehouseId, BigDecimal quantity, String sku, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId, BigDecimal quantity, BigDecimal reservedQuantity, long mvccVersion) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceInventoryWarehouseItem
public static CommerceInventoryWarehouseItem updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId, long mvccVersion, BigDecimal quantity, String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-