Class CommerceShippingMethodServiceUtil

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

public class CommerceShippingMethodServiceUtil extends Object
Provides the remote service utility for CommerceShippingMethod. This utility wraps com.liferay.commerce.service.impl.CommerceShippingMethodServiceImpl 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

    • CommerceShippingMethodServiceUtil

      public CommerceShippingMethodServiceUtil()
  • Method Details

    • addCommerceAddressRestriction

      public static CommerceAddressRestriction addCommerceAddressRestriction(long groupId, long commerceShippingMethodId, long countryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceAddressRestriction

      @Deprecated public static CommerceAddressRestriction addCommerceAddressRestriction(long commerceShippingMethodId, long countryId, 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
    • addCommerceShippingMethod

      public static CommerceShippingMethod addCommerceShippingMethod(long groupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, boolean active, String engineKey, File imageFile, double priority, String trackingURL) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommerceShippingMethod

      public static CommerceShippingMethod createCommerceShippingMethod(long commerceShippingMethodId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceAddressRestriction

      public static void deleteCommerceAddressRestriction(long commerceAddressRestrictionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceAddressRestrictions

      public static void deleteCommerceAddressRestrictions(long commerceShippingMethodId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceShippingMethod

      public static void deleteCommerceShippingMethod(long commerceShippingMethodId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceShippingMethod

      public static CommerceShippingMethod fetchCommerceShippingMethod(long groupId, String engineKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceAddressRestrictions

      public static List<CommerceAddressRestriction> getCommerceAddressRestrictions(long commerceShippingMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceAddressRestrictionsCount

      public static int getCommerceAddressRestrictionsCount(long commerceShippingMethodId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShippingMethod

      public static CommerceShippingMethod getCommerceShippingMethod(long commerceShippingMethodId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShippingMethods

      public static List<CommerceShippingMethod> getCommerceShippingMethods(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShippingMethods

      public static List<CommerceShippingMethod> getCommerceShippingMethods(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShippingMethod> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShippingMethods

      public static List<CommerceShippingMethod> getCommerceShippingMethods(long groupId, long countryId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceShippingMethodsCount

      public static int getCommerceShippingMethodsCount(long groupId) 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
    • setActive

      public static CommerceShippingMethod setActive(long commerceShippingMethodId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceShippingMethod

      public static CommerceShippingMethod updateCommerceShippingMethod(CommerceShippingMethod commerceShippingMethod) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceShippingMethod

      public static CommerceShippingMethod updateCommerceShippingMethod(long commerceShippingMethodId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, boolean active, File imageFile, double priority, String trackingURL) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static CommerceShippingMethodService getService()