public class CommerceInventoryWarehouseItemServiceUtil
extends java.lang.Object
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.CommerceInventoryWarehouseItemService
Constructor and Description |
---|
CommerceInventoryWarehouseItemServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceInventoryWarehouseItem |
addCommerceInventoryWarehouseItem(java.lang.String externalReferenceCode,
long commerceInventoryWarehouseId,
java.math.BigDecimal quantity,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static CommerceInventoryWarehouseItem |
addOrUpdateCommerceInventoryWarehouseItem(java.lang.String externalReferenceCode,
long companyId,
long commerceInventoryWarehouseId,
java.math.BigDecimal quantity,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static void |
deleteCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) |
static void |
deleteCommerceInventoryWarehouseItems(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static CommerceInventoryWarehouseItem |
fetchCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static CommerceInventoryWarehouseItem |
fetchCommerceInventoryWarehouseItemByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommerceInventoryWarehouseItem |
getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) |
static CommerceInventoryWarehouseItem |
getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static java.util.List<CommerceInventoryWarehouseItem> |
getCommerceInventoryWarehouseItems(long commerceInventoryWarehouseId,
int start,
int end) |
static java.util.List<CommerceInventoryWarehouseItem> |
getCommerceInventoryWarehouseItemsByCompanyId(long companyId,
int start,
int end) |
static java.util.List<CommerceInventoryWarehouseItem> |
getCommerceInventoryWarehouseItemsByCompanyIdSkuAndUnitOfMeasureKey(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey,
int start,
int end) |
static int |
getCommerceInventoryWarehouseItemsCount(long commerceInventoryWarehouseId) |
static int |
getCommerceInventoryWarehouseItemsCount(long companyId,
long accountEntryId,
long groupId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static int |
getCommerceInventoryWarehouseItemsCount(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static int |
getCommerceInventoryWarehouseItemsCountByCompanyId(long companyId) |
static int |
getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId,
java.util.Date startDate,
java.util.Date endDate) |
static java.util.List<CommerceInventoryWarehouseItem> |
getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId,
java.util.Date startDate,
java.util.Date endDate,
int start,
int end) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceInventoryWarehouseItemService |
getService() |
static java.math.BigDecimal |
getStockQuantity(long companyId,
long accountEntryId,
long groupId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static java.math.BigDecimal |
getStockQuantity(long companyId,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static CommerceInventoryWarehouseItem |
increaseCommerceInventoryWarehouseItemQuantity(long commerceInventoryWarehouseItemId,
java.math.BigDecimal quantity) |
static void |
moveQuantitiesBetweenWarehouses(long fromCommerceInventoryWarehouseId,
long toCommerceInventoryWarehouseId,
java.math.BigDecimal quantity,
java.lang.String sku,
java.lang.String unitOfMeasureKey) |
static CommerceInventoryWarehouseItem |
updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId,
java.math.BigDecimal quantity,
java.math.BigDecimal reservedQuantity,
long mvccVersion) |
static CommerceInventoryWarehouseItem |
updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId,
long mvccVersion,
java.math.BigDecimal quantity,
java.lang.String unitOfMeasureKey) |
public CommerceInventoryWarehouseItemServiceUtil()
public static CommerceInventoryWarehouseItem addCommerceInventoryWarehouseItem(java.lang.String externalReferenceCode, long commerceInventoryWarehouseId, java.math.BigDecimal quantity, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem addOrUpdateCommerceInventoryWarehouseItem(java.lang.String externalReferenceCode, long companyId, long commerceInventoryWarehouseId, java.math.BigDecimal quantity, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceInventoryWarehouseItems(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem fetchCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem fetchCommerceInventoryWarehouseItemByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem getCommerceInventoryWarehouseItem(long commerceInventoryWarehouseId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItems(long commerceInventoryWarehouseId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItemsByCompanyId(long companyId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItemsByCompanyIdSkuAndUnitOfMeasureKey(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey, int start, int end) throws com.liferay.portal.kernel.security.auth.PrincipalException
com.liferay.portal.kernel.security.auth.PrincipalException
public static int getCommerceInventoryWarehouseItemsCount(long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceInventoryWarehouseItemsCount(long companyId, long accountEntryId, long groupId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceInventoryWarehouseItemsCount(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceInventoryWarehouseItemsCountByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId, java.util.Date startDate, java.util.Date endDate) throws com.liferay.portal.kernel.security.auth.PrincipalException
com.liferay.portal.kernel.security.auth.PrincipalException
public static java.util.List<CommerceInventoryWarehouseItem> getCommerceInventoryWarehouseItemsCountByModifiedDate(long companyId, java.util.Date startDate, java.util.Date endDate, int start, int end) throws com.liferay.portal.kernel.security.auth.PrincipalException
com.liferay.portal.kernel.security.auth.PrincipalException
public static java.lang.String getOSGiServiceIdentifier()
public static java.math.BigDecimal getStockQuantity(long companyId, long accountEntryId, long groupId, java.lang.String sku, java.lang.String unitOfMeasureKey)
public static java.math.BigDecimal getStockQuantity(long companyId, java.lang.String sku, java.lang.String unitOfMeasureKey)
public static CommerceInventoryWarehouseItem increaseCommerceInventoryWarehouseItemQuantity(long commerceInventoryWarehouseItemId, java.math.BigDecimal quantity) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void moveQuantitiesBetweenWarehouses(long fromCommerceInventoryWarehouseId, long toCommerceInventoryWarehouseId, java.math.BigDecimal quantity, java.lang.String sku, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId, java.math.BigDecimal quantity, java.math.BigDecimal reservedQuantity, long mvccVersion) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItem updateCommerceInventoryWarehouseItem(long commerceInventoryWarehouseItemId, long mvccVersion, java.math.BigDecimal quantity, java.lang.String unitOfMeasureKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceInventoryWarehouseItemService getService()