Class CommerceOrderItemServiceUtil

java.lang.Object
com.liferay.commerce.service.CommerceOrderItemServiceUtil

public class CommerceOrderItemServiceUtil extends Object
Provides the remote service utility for CommerceOrderItem. This utility wraps com.liferay.commerce.service.impl.CommerceOrderItemServiceImpl 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 Details

    • CommerceOrderItemServiceUtil

      public CommerceOrderItemServiceUtil()
  • Method Details

    • addCommerceOrderItem

      public static CommerceOrderItem addCommerceOrderItem(long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCommerceOrderItem

      public static CommerceOrderItem addOrUpdateCommerceOrderItem(long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • countSubscriptionCommerceOrderItems

      public static int countSubscriptionCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceOrderItem

      public static void deleteCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceOrderItem

      public static void deleteCommerceOrderItem(long commerceOrderItemId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceOrderItems

      public static void deleteCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteMissingCommerceOrderItems

      public static void deleteMissingCommerceOrderItems(long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceOrderItem

      public static CommerceOrderItem fetchCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceOrderItemByExternalReferenceCode

      public static CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAvailableForShipmentCommerceOrderItems

      public static List<CommerceOrderItem> getAvailableForShipmentCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getChildCommerceOrderItems

      public static List<CommerceOrderItem> getChildCommerceOrderItems(long parentCommerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceInventoryWarehouseItemQuantity

      public static BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItem

      public static CommerceOrderItem getCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItems

      public static List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItems

      public static List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItemsCount

      public static int getCommerceOrderItemsCount(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItemsCount

      public static int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItemsCount

      public static int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderItemsQuantity

      public static BigDecimal getCommerceOrderItemsQuantity(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getSupplierCommerceOrderItems

      public static List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • importCommerceOrderItem

      public static CommerceOrderItem importCommerceOrderItem(String externalReferenceCode, long commerceOrderItemId, long commerceOrderId, long cpInstanceId, String cpMeasurementUnitKey, BigDecimal quantity, BigDecimal shippedQuantity, BigDecimal unitOfMeasureIncrementalOrderQuantity, String unitOfMeasureKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommerceOrderItems

      public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, long parentCommerceOrderItemId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommerceOrderItems

      public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommerceOrderItems

      public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem> searchCommerceOrderItems(long commerceOrderId, String name, String sku, boolean andOperator, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItem

      public static CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItem

      public static CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItem

      public static CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItem

      public static CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, String json, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemDeliveryDate

      public static CommerceOrderItem updateCommerceOrderItemDeliveryDate(long commerceOrderItemId, Date requestedDeliveryDate) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemInfo

      public static CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemInfo

      public static CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemInfo

      @Deprecated public static CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, String deliveryGroupName, long shippingAddressId, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear, int requestedDeliveryDateHour, int requestedDeliveryDateMinute, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemPrices

      public static CommerceOrderItem updateCommerceOrderItemPrices(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel4, BigDecimal finalPrice, BigDecimal promoPrice, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemPrices

      public static CommerceOrderItem updateCommerceOrderItemPrices(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountAmountWithTaxAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel1WithTaxAmount, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel2WithTaxAmount, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel3WithTaxAmount, BigDecimal discountPercentageLevel4, BigDecimal discountPercentageLevel4WithTaxAmount, BigDecimal finalPrice, BigDecimal finalPriceWithTaxAmount, BigDecimal promoPrice, BigDecimal promoPriceWithTaxAmount, BigDecimal unitPrice, BigDecimal unitPriceWithTaxAmount) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemUnitPrice

      @Deprecated public static CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Athanasius (7.3.x)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceOrderItemUnitPrice

      public static CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, BigDecimal quantity, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCustomFields

      public static CommerceOrderItem updateCustomFields(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public static CommerceOrderItem updateExternalReferenceCode(long commerceOrderItemId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static CommerceOrderItemService getService()