Interface CommerceShipmentLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
CommerceShipmentLocalServiceWrapper

@ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface CommerceShipmentLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for CommerceShipment. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Method Details

    • addCommerceDeliverySubscriptionShipment

      @Deprecated @Indexable(type=REINDEX) CommerceShipment addCommerceDeliverySubscriptionShipment(long userId, long commerceOrderId, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, String phoneNumber) throws com.liferay.portal.kernel.exception.PortalException
      Deprecated.
      As of Cavanaugh (7.4.x), replaced by addDeliverySubscriptionCommerceShipment(long, long)
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceShipment

      @Indexable(type=REINDEX) CommerceShipment addCommerceShipment(CommerceShipment commerceShipment)
      Adds the commerce shipment to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceShipmentLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      commerceShipment - the commerce shipment
      Returns:
      the commerce shipment that was added
    • addCommerceShipment

      CommerceShipment addCommerceShipment(long commerceOrderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceShipment

      @Indexable(type=REINDEX) CommerceShipment addCommerceShipment(String externalReferenceCode, long groupId, long commerceAccountId, long commerceAddressId, long commerceShippingMethodId, String commerceShippingOptionName, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDeliverySubscriptionCommerceShipment

      @Indexable(type=REINDEX) CommerceShipment addDeliverySubscriptionCommerceShipment(long userId, long commerceOrderItemId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommerceShipment

      @Transactional(enabled=false) CommerceShipment createCommerceShipment(long commerceShipmentId)
      Creates a new commerce shipment with the primary key. Does not add the commerce shipment to the database.
      Parameters:
      commerceShipmentId - the primary key for the new commerce shipment
      Returns:
      the new commerce shipment
    • createPersistedModel

      com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceShipment

      @Indexable(type=DELETE) CommerceShipment deleteCommerceShipment(CommerceShipment commerceShipment)
      Deletes the commerce shipment from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceShipmentLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      commerceShipment - the commerce shipment
      Returns:
      the commerce shipment that was removed
    • deleteCommerceShipment

      @Indexable(type=DELETE) @SystemEvent(type=1) CommerceShipment deleteCommerceShipment(CommerceShipment commerceShipment, boolean restoreStockQuantity) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceShipment

      @Indexable(type=DELETE) CommerceShipment deleteCommerceShipment(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce shipment with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceShipmentLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      commerceShipmentId - the primary key of the commerce shipment
      Returns:
      the commerce shipment that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a commerce shipment with the primary key could not be found
    • deletePersistedModel

      com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceShipmentModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceShipmentModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCommerceShipment

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceShipment fetchCommerceShipment(long commerceShipmentId)
    • fetchCommerceShipmentByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceShipment fetchCommerceShipmentByExternalReferenceCode(String externalReferenceCode, long companyId)
    • fetchCommerceShipmentByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceShipment fetchCommerceShipmentByUuidAndGroupId(String uuid, long groupId)
      Returns the commerce shipment matching the UUID and group.
      Parameters:
      uuid - the commerce shipment's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce shipment, or null if a matching commerce shipment could not be found
    • getActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getCommerceShipment

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceShipment getCommerceShipment(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce shipment with the primary key.
      Parameters:
      commerceShipmentId - the primary key of the commerce shipment
      Returns:
      the commerce shipment
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a commerce shipment with the primary key could not be found
    • getCommerceShipmentByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceShipment getCommerceShipmentByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShipmentByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) CommerceShipment getCommerceShipmentByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce shipment matching the UUID and group.
      Parameters:
      uuid - the commerce shipment's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce shipment
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching commerce shipment could not be found
    • getCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipments(int start, int end)
      Returns a range of all the commerce shipments.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceShipmentModelImpl.

      Parameters:
      start - the lower bound of the range of commerce shipments
      end - the upper bound of the range of commerce shipments (not inclusive)
      Returns:
      the range of commerce shipments
    • getCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipments(long commerceOrderId, int start, int end)
    • getCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipments(long companyId, long[] groupIds, long[] commerceAccountIds, String keywords, int[] shipmentStatuses, boolean excludeShipmentStatus, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipments(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
    • getCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipments(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
    • getCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipments(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
    • getCommerceShipmentsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipmentsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the commerce shipments matching the UUID and company.
      Parameters:
      uuid - the UUID of the commerce shipments
      companyId - the primary key of the company
      Returns:
      the matching commerce shipments, or an empty list if no matches were found
    • getCommerceShipmentsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<CommerceShipment> getCommerceShipmentsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator)
      Returns a range of commerce shipments matching the UUID and company.
      Parameters:
      uuid - the UUID of the commerce shipments
      companyId - the primary key of the company
      start - the lower bound of the range of commerce shipments
      end - the upper bound of the range of commerce shipments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching commerce shipments, or an empty list if no matches were found
    • getCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceShipmentsCount()
      Returns the number of commerce shipments.
      Returns:
      the number of commerce shipments
    • getCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceShipmentsCount(long commerceOrderId)
    • getCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceShipmentsCount(long companyId, long[] groupIds, long[] commerceAccountIds, String keywords, int[] shipmentStatuses, boolean excludeShipmentStatus) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceShipmentsCount(long[] groupIds)
    • getCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceShipmentsCount(long[] groupIds, int status)
    • getCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getCommerceShipmentsCount(long[] groupIds, long commerceAddressId)
    • getCommerceShipmentStatusesByCommerceOrderId

      @Transactional(propagation=SUPPORTS, readOnly=true) int[] getCommerceShipmentStatusesByCommerceOrderId(long commerceOrderId)
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • reprocessCommerceShipment

      @Indexable(type=REINDEX) CommerceShipment reprocessCommerceShipment(long commerceShipmentId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommerceShipments

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceShipment> searchCommerceShipments(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCommerceShipmentsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long searchCommerceShipmentsCount(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAddress

      @Indexable(type=REINDEX) CommerceShipment updateAddress(String externalReferenceCode, long commerceShipmentId, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCarrierDetails

      @Indexable(type=REINDEX) CommerceShipment updateCarrierDetails(long commerceShipmentId, long commerceShippingMethodId, String carrier, String trackingNumber, String trackingURL) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceShipment

      @Indexable(type=REINDEX) CommerceShipment updateCommerceShipment(CommerceShipment commerceShipment)
      Updates the commerce shipment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommerceShipmentLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      commerceShipment - the commerce shipment
      Returns:
      the commerce shipment that was updated
    • updateCommerceShipment

      CommerceShipment updateCommerceShipment(long commerceShipmentId, long commerceShippingMethodId, String carrier, int expectedDateMonth, int expectedDateDay, int expectedDateYear, int expectedDateHour, int expectedDateMinute, int shippingDateMonth, int shippingDateDay, int shippingDateYear, int shippingDateHour, int shippingDateMinute, String trackingNumber, String trackingURL, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceShipment

      @Indexable(type=REINDEX) CommerceShipment updateCommerceShipment(long commerceShipmentId, long commerceShippingMethodId, String carrier, int expectedDateMonth, int expectedDateDay, int expectedDateYear, int expectedDateHour, int expectedDateMinute, int shippingDateMonth, int shippingDateDay, int shippingDateYear, int shippingDateHour, int shippingDateMinute, String trackingNumber, String trackingURL, int status, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExpectedDate

      @Indexable(type=REINDEX) CommerceShipment updateExpectedDate(long commerceShipmentId, int expectedDateMonth, int expectedDateDay, int expectedDateYear, int expectedDateHour, int expectedDateMinute) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      @Indexable(type=REINDEX) CommerceShipment updateExternalReferenceCode(long commerceShipmentId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateShippingDate

      @Indexable(type=REINDEX) CommerceShipment updateShippingDate(long commerceShipmentId, int shippingDateMonth, int shippingDateDay, int shippingDateYear, int shippingDateHour, int shippingDateMinute) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      @Indexable(type=REINDEX) CommerceShipment updateStatus(long commerceShipmentId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException