Package com.liferay.commerce.service
Class CommerceOrderItemServiceWrapper
java.lang.Object
com.liferay.commerce.service.CommerceOrderItemServiceWrapper
- All Implemented Interfaces:
CommerceOrderItemService
,com.liferay.portal.kernel.service.BaseService
,com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemService>
public class CommerceOrderItemServiceWrapper
extends Object
implements CommerceOrderItemService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemService>
Provides a wrapper for
CommerceOrderItemService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommerceOrderItemServiceWrapper
(CommerceOrderItemService commerceOrderItemService) -
Method Summary
Modifier and TypeMethodDescriptionaddCommerceOrderItem
(long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) addOrUpdateCommerceOrderItem
(long commerceOrderId, long cpInstanceId, String json, BigDecimal quantity, long replacedCPInstanceId, BigDecimal shippedQuantity, String unitOfMeasureKey, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) int
countSubscriptionCommerceOrderItems
(long commerceOrderId) void
deleteCommerceOrderItem
(long commerceOrderItemId) void
deleteCommerceOrderItem
(long commerceOrderItemId, CommerceContext commerceContext) void
deleteCommerceOrderItems
(long commerceOrderId) void
deleteMissingCommerceOrderItems
(long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) fetchCommerceOrderItem
(long commerceOrderItemId) fetchCommerceOrderItemByExternalReferenceCode
(String externalReferenceCode, long companyId) getAvailableForShipmentCommerceOrderItems
(long commerceOrderId) getChildCommerceOrderItems
(long parentCommerceOrderItemId) getCommerceInventoryWarehouseItemQuantity
(long commerceOrderItemId, long commerceInventoryWarehouseId) getCommerceOrderItem
(long commerceOrderItemId) getCommerceOrderItems
(long commerceOrderId, int start, int end) getCommerceOrderItems
(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) int
getCommerceOrderItemsCount
(long commerceOrderId) int
getCommerceOrderItemsCount
(long commerceOrderId, long cpInstanceId) int
getCommerceOrderItemsCount
(long groupId, long commerceAccountId, int[] orderStatuses) getCommerceOrderItemsQuantity
(long commerceOrderId) Returns the OSGi service identifier.getSupplierCommerceOrderItems
(long customerCommerceOrderItemId, int start, int end) 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) 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) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceOrderItem>
searchCommerceOrderItems
(long commerceOrderId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) 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) void
setWrappedService
(CommerceOrderItemService commerceOrderItemService) updateCommerceOrderItem
(long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long commerceOrderItemId, String json, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItem
(long commerceOrderItemId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateCommerceOrderItemDeliveryDate
(long commerceOrderItemId, Date requestedDeliveryDate) updateCommerceOrderItemInfo
(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote) updateCommerceOrderItemInfo
(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) 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) Deprecated.As of Athanasius (7.3.x)updateCommerceOrderItemPrices
(long commerceOrderItemId, BigDecimal discountAmount, BigDecimal discountPercentageLevel1, BigDecimal discountPercentageLevel2, BigDecimal discountPercentageLevel3, BigDecimal discountPercentageLevel4, BigDecimal finalPrice, BigDecimal promoPrice, BigDecimal unitPrice) 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) updateCommerceOrderItemUnitPrice
(long commerceOrderItemId, BigDecimal unitPrice) Deprecated.As of Athanasius (7.3.x)updateCommerceOrderItemUnitPrice
(long commerceOrderItemId, BigDecimal quantity, BigDecimal unitPrice) updateCustomFields
(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateExternalReferenceCode
(long commerceOrderItemId, String externalReferenceCode)
-
Constructor Details
-
CommerceOrderItemServiceWrapper
public CommerceOrderItemServiceWrapper() -
CommerceOrderItemServiceWrapper
-
-
Method Details
-
addCommerceOrderItem
public 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 - Specified by:
addCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceOrderItem
public 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 - Specified by:
addOrUpdateCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
countSubscriptionCommerceOrderItems
public int countSubscriptionCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
countSubscriptionCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
public void deleteCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItem
public void deleteCommerceOrderItem(long commerceOrderItemId, CommerceContext commerceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceOrderItems
public void deleteCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteMissingCommerceOrderItems
public void deleteMissingCommerceOrderItems(long commerceOrderId, Long[] commerceOrderItemIds, String[] externalReferenceCodes) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteMissingCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceOrderItem
public CommerceOrderItem fetchCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCommerceOrderItemByExternalReferenceCode
public CommerceOrderItem fetchCommerceOrderItemByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchCommerceOrderItemByExternalReferenceCode
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAvailableForShipmentCommerceOrderItems
public List<CommerceOrderItem> getAvailableForShipmentCommerceOrderItems(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAvailableForShipmentCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getChildCommerceOrderItems
public List<CommerceOrderItem> getChildCommerceOrderItems(long parentCommerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getChildCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceInventoryWarehouseItemQuantity
public BigDecimal getCommerceInventoryWarehouseItemQuantity(long commerceOrderItemId, long commerceInventoryWarehouseId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceInventoryWarehouseItemQuantity
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItem
public CommerceOrderItem getCommerceOrderItem(long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long commerceOrderId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItems
public List<CommerceOrderItem> getCommerceOrderItems(long groupId, long commerceAccountId, int[] orderStatuses, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long commerceOrderId, long cpInstanceId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemsCount
public int getCommerceOrderItemsCount(long groupId, long commerceAccountId, int[] orderStatuses) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItemsCount
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceOrderItemsQuantity
public BigDecimal getCommerceOrderItemsQuantity(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceOrderItemsQuantity
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCommerceOrderItemService
- Returns:
- the OSGi service identifier
-
getSupplierCommerceOrderItems
public List<CommerceOrderItem> getSupplierCommerceOrderItems(long customerCommerceOrderItemId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getSupplierCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
importCommerceOrderItem
public 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 - Specified by:
importCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
public 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 - Specified by:
searchCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
public 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 - Specified by:
searchCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceOrderItems
public 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 - Specified by:
searchCommerceOrderItems
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, long cpMeasurementUnitId, BigDecimal quantity, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItem
public CommerceOrderItem updateCommerceOrderItem(long commerceOrderItemId, String json, BigDecimal quantity, CommerceContext commerceContext, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItem
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemDeliveryDate
public CommerceOrderItem updateCommerceOrderItemDeliveryDate(long commerceOrderItemId, Date requestedDeliveryDate) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemDeliveryDate
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemInfo
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
public CommerceOrderItem updateCommerceOrderItemInfo(long commerceOrderItemId, long shippingAddressId, String deliveryGroupName, String printedNote, int requestedDeliveryDateMonth, int requestedDeliveryDateDay, int requestedDeliveryDateYear) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemInfo
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemInfo
@Deprecated public 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)- Specified by:
updateCommerceOrderItemInfo
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrices
public 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 - Specified by:
updateCommerceOrderItemPrices
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemPrices
public 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 - Specified by:
updateCommerceOrderItemPrices
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemUnitPrice
@Deprecated public CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Athanasius (7.3.x)- Specified by:
updateCommerceOrderItemUnitPrice
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceOrderItemUnitPrice
public CommerceOrderItem updateCommerceOrderItemUnitPrice(long commerceOrderItemId, BigDecimal quantity, BigDecimal unitPrice) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceOrderItemUnitPrice
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCustomFields
public CommerceOrderItem updateCustomFields(long commerceOrderItemId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCustomFields
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public CommerceOrderItem updateExternalReferenceCode(long commerceOrderItemId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateExternalReferenceCode
in interfaceCommerceOrderItemService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderItemService>
-