Class CommerceDiscountRuleServiceUtil

java.lang.Object
com.liferay.commerce.discount.service.CommerceDiscountRuleServiceUtil

public class CommerceDiscountRuleServiceUtil extends Object
Provides the remote service utility for CommerceDiscountRule. This utility wraps com.liferay.commerce.discount.service.impl.CommerceDiscountRuleServiceImpl 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

    • CommerceDiscountRuleServiceUtil

      public CommerceDiscountRuleServiceUtil()
  • Method Details

    • addCommerceDiscountRule

      public static CommerceDiscountRule addCommerceDiscountRule(long commerceDiscountId, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommerceDiscountRule

      public static CommerceDiscountRule addCommerceDiscountRule(long commerceDiscountId, String name, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceDiscountRule

      public static void deleteCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCommerceDiscountRule

      public static CommerceDiscountRule fetchCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceDiscountRule

      public static CommerceDiscountRule getCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceDiscountRules

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

      public static List<CommerceDiscountRule> getCommerceDiscountRules(long commerceDiscountId, String name, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceDiscountRulesCount

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

      public static int getCommerceDiscountRulesCount(long commerceDiscountId, String name) 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
    • updateCommerceDiscountRule

      public static CommerceDiscountRule updateCommerceDiscountRule(long commerceDiscountRuleId, String type, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceDiscountRule

      public static CommerceDiscountRule updateCommerceDiscountRule(long commerceDiscountRuleId, String name, String type, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static CommerceDiscountRuleService getService()