public class CommerceShipmentServiceUtil
extends java.lang.Object
com.liferay.commerce.service.impl.CommerceShipmentServiceImpl
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.CommerceShipmentService
Constructor and Description |
---|
CommerceShipmentServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceShipment |
addCommerceShipment(long groupId,
long commerceAccountId,
long commerceAddressId,
long commerceShippingMethodId,
java.lang.String commerceShippingOptionName,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceShipment |
addCommerceShipment(long commerceOrderId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
deleteCommerceShipment(long commerceShipmentId)
Deprecated.
As of Mueller (7.2.x), pass boolean for restoring stock
|
static void |
deleteCommerceShipment(long commerceShipmentId,
boolean restoreStockQuantity) |
static CommerceShipment |
getCommerceShipment(long commerceShipmentId) |
static java.util.List<CommerceShipment> |
getCommerceShipments(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) |
static java.util.List<CommerceShipment> |
getCommerceShipments(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) |
static java.util.List<CommerceShipment> |
getCommerceShipments(long companyId,
long[] groupIds,
long[] commerceAccountIds,
java.lang.String keywords,
int[] shipmentStatuses,
boolean excludeShipmentStatus,
int start,
int end) |
static java.util.List<CommerceShipment> |
getCommerceShipments(long companyId,
long commerceAddressId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) |
static java.util.List<CommerceShipment> |
getCommerceShipmentsByOrderId(long commerceOrderId,
int start,
int end) |
static int |
getCommerceShipmentsCount(long companyId) |
static int |
getCommerceShipmentsCount(long companyId,
int status) |
static int |
getCommerceShipmentsCount(long companyId,
long commerceAddressId) |
static int |
getCommerceShipmentsCount(long companyId,
long[] groupIds,
long[] commerceAccountIds,
java.lang.String keywords,
int[] shipmentStatuses,
boolean excludeShipmentStatus) |
static int |
getCommerceShipmentsCountByOrderId(long commerceOrderId) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceShipmentService |
getService() |
static CommerceShipment |
reprocessCommerceShipment(long commerceShipmentId) |
static CommerceShipment |
updateAddress(long commerceShipmentId,
java.lang.String name,
java.lang.String description,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long regionId,
long countryId,
java.lang.String phoneNumber)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
updateAddress(long, String, String, String, String, String, String,
String, long, long, String, ServiceContext) |
static CommerceShipment |
updateAddress(long commerceShipmentId,
java.lang.String name,
java.lang.String description,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long regionId,
long countryId,
java.lang.String phoneNumber,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceShipment |
updateCarrierDetails(long commerceShipmentId,
java.lang.String carrier,
java.lang.String trackingNumber) |
static CommerceShipment |
updateCommerceShipment(long commerceShipmentId,
java.lang.String carrier,
java.lang.String trackingNumber,
int status,
int shippingDateMonth,
int shippingDateDay,
int shippingDateYear,
int shippingDateHour,
int shippingDateMinute,
int expectedDateMonth,
int expectedDateDay,
int expectedDateYear,
int expectedDateHour,
int expectedDateMinute) |
static CommerceShipment |
updateCommerceShipment(long commerceShipmentId,
java.lang.String name,
java.lang.String description,
java.lang.String street1,
java.lang.String street2,
java.lang.String street3,
java.lang.String city,
java.lang.String zip,
long regionId,
long countryId,
java.lang.String phoneNumber,
java.lang.String carrier,
java.lang.String trackingNumber,
int status,
int shippingDateMonth,
int shippingDateDay,
int shippingDateYear,
int shippingDateHour,
int shippingDateMinute,
int expectedDateMonth,
int expectedDateDay,
int expectedDateYear,
int expectedDateHour,
int expectedDateMinute) |
static CommerceShipment |
updateExpectedDate(long commerceShipmentId,
int expectedDateMonth,
int expectedDateDay,
int expectedDateYear,
int expectedDateHour,
int expectedDateMinute) |
static CommerceShipment |
updateShippingDate(long commerceShipmentId,
int shippingDateMonth,
int shippingDateDay,
int shippingDateYear,
int shippingDateHour,
int shippingDateMinute) |
static CommerceShipment |
updateStatus(long commerceShipmentId,
int status) |
public static CommerceShipment addCommerceShipment(long groupId, long commerceAccountId, long commerceAddressId, long commerceShippingMethodId, java.lang.String commerceShippingOptionName, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment addCommerceShipment(long commerceOrderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static void deleteCommerceShipment(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceShipment(long commerceShipmentId, boolean restoreStockQuantity) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment getCommerceShipment(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceShipment> getCommerceShipments(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceShipment> getCommerceShipments(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceShipment> getCommerceShipments(long companyId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceShipment> getCommerceShipments(long companyId, long[] groupIds, long[] commerceAccountIds, java.lang.String keywords, int[] shipmentStatuses, boolean excludeShipmentStatus, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceShipment> getCommerceShipmentsByOrderId(long commerceOrderId, int start, int end)
public static int getCommerceShipmentsCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceShipmentsCount(long companyId, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceShipmentsCount(long companyId, long commerceAddressId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceShipmentsCount(long companyId, long[] groupIds, long[] commerceAccountIds, java.lang.String keywords, int[] shipmentStatuses, boolean excludeShipmentStatus) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceShipmentsCountByOrderId(long commerceOrderId)
public static java.lang.String getOSGiServiceIdentifier()
public static CommerceShipment reprocessCommerceShipment(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public static CommerceShipment updateAddress(long commerceShipmentId, java.lang.String name, java.lang.String description, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long regionId, long countryId, java.lang.String phoneNumber) throws com.liferay.portal.kernel.exception.PortalException
updateAddress(long, String, String, String, String, String, String,
String, long, long, String, ServiceContext)
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateAddress(long commerceShipmentId, java.lang.String name, java.lang.String description, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long regionId, long countryId, java.lang.String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateCarrierDetails(long commerceShipmentId, java.lang.String carrier, java.lang.String trackingNumber) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateCommerceShipment(long commerceShipmentId, java.lang.String carrier, java.lang.String trackingNumber, int status, int shippingDateMonth, int shippingDateDay, int shippingDateYear, int shippingDateHour, int shippingDateMinute, int expectedDateMonth, int expectedDateDay, int expectedDateYear, int expectedDateHour, int expectedDateMinute) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateCommerceShipment(long commerceShipmentId, java.lang.String name, java.lang.String description, java.lang.String street1, java.lang.String street2, java.lang.String street3, java.lang.String city, java.lang.String zip, long regionId, long countryId, java.lang.String phoneNumber, java.lang.String carrier, java.lang.String trackingNumber, int status, int shippingDateMonth, int shippingDateDay, int shippingDateYear, int shippingDateHour, int shippingDateMinute, int expectedDateMonth, int expectedDateDay, int expectedDateYear, int expectedDateHour, int expectedDateMinute) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateExpectedDate(long commerceShipmentId, int expectedDateMonth, int expectedDateDay, int expectedDateYear, int expectedDateHour, int expectedDateMinute) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateShippingDate(long commerceShipmentId, int shippingDateMonth, int shippingDateDay, int shippingDateYear, int shippingDateHour, int shippingDateMinute) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipment updateStatus(long commerceShipmentId, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceShipmentService getService()