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 CommerceDiscountRuleaddCommerceDiscountRule(long commerceDiscountId, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceDiscountRuleaddCommerceDiscountRule(long commerceDiscountId, String name, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voiddeleteCommerceDiscountRule(long commerceDiscountRuleId) static CommerceDiscountRulefetchCommerceDiscountRule(long commerceDiscountRuleId) static CommerceDiscountRulegetCommerceDiscountRule(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 intgetCommerceDiscountRulesCount(long commerceDiscountId) static intgetCommerceDiscountRulesCount(long commerceDiscountId, String name) static StringReturns the OSGi service identifier.static CommerceDiscountRuleServicestatic CommerceDiscountRuleupdateCommerceDiscountRule(long commerceDiscountRuleId, String type, String typeSettings) static CommerceDiscountRuleupdateCommerceDiscountRule(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
-