Class CommerceDiscountRuleServiceUtil
java.lang.Object
com.liferay.commerce.discount.service.CommerceDiscountRuleServiceUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommerceDiscountRule
addCommerceDiscountRule
(long commerceDiscountId, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceDiscountRule
addCommerceDiscountRule
(long commerceDiscountId, String name, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteCommerceDiscountRule
(long commerceDiscountRuleId) static CommerceDiscountRule
fetchCommerceDiscountRule
(long commerceDiscountRuleId) static CommerceDiscountRule
getCommerceDiscountRule
(long commerceDiscountRuleId) static List<CommerceDiscountRule>
getCommerceDiscountRules
(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) static List<CommerceDiscountRule>
getCommerceDiscountRules
(long commerceDiscountId, String name, int start, int end) static int
getCommerceDiscountRulesCount
(long commerceDiscountId) static int
getCommerceDiscountRulesCount
(long commerceDiscountId, String name) static String
Returns the OSGi service identifier.static CommerceDiscountRuleService
static CommerceDiscountRule
updateCommerceDiscountRule
(long commerceDiscountRuleId, String type, String typeSettings) static CommerceDiscountRule
updateCommerceDiscountRule
(long commerceDiscountRuleId, String name, String type, String typeSettings)
-
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
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
-