public class CommerceDiscountRuleServiceUtil
extends java.lang.Object
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.CommerceDiscountRuleService
Constructor and Description |
---|
CommerceDiscountRuleServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceDiscountRule |
addCommerceDiscountRule(long commerceDiscountId,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscountRule |
addCommerceDiscountRule(long commerceDiscountId,
java.lang.String name,
java.lang.String type,
java.lang.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 java.util.List<CommerceDiscountRule> |
getCommerceDiscountRules(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) |
static java.util.List<CommerceDiscountRule> |
getCommerceDiscountRules(long commerceDiscountId,
java.lang.String name,
int start,
int end) |
static int |
getCommerceDiscountRulesCount(long commerceDiscountId) |
static int |
getCommerceDiscountRulesCount(long commerceDiscountId,
java.lang.String name) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CommerceDiscountRuleService |
getService() |
static void |
setService(CommerceDiscountRuleService service) |
static CommerceDiscountRule |
updateCommerceDiscountRule(long commerceDiscountRuleId,
java.lang.String type,
java.lang.String typeSettings) |
static CommerceDiscountRule |
updateCommerceDiscountRule(long commerceDiscountRuleId,
java.lang.String name,
java.lang.String type,
java.lang.String typeSettings) |
public static CommerceDiscountRule addCommerceDiscountRule(long commerceDiscountId, java.lang.String type, java.lang.String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceDiscountRule addCommerceDiscountRule(long commerceDiscountId, java.lang.String name, java.lang.String type, java.lang.String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceDiscountRule fetchCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceDiscountRule getCommerceDiscountRule(long commerceDiscountRuleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceDiscountRule> getCommerceDiscountRules(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CommerceDiscountRule> getCommerceDiscountRules(long commerceDiscountId, java.lang.String name, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceDiscountRulesCount(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getCommerceDiscountRulesCount(long commerceDiscountId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static CommerceDiscountRule updateCommerceDiscountRule(long commerceDiscountRuleId, java.lang.String type, java.lang.String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceDiscountRule updateCommerceDiscountRule(long commerceDiscountRuleId, java.lang.String name, java.lang.String type, java.lang.String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceDiscountRuleService getService()
public static void setService(CommerceDiscountRuleService service)