public class CommerceDiscountLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.discount.service.impl.CommerceDiscountLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.CommerceDiscountLocalService| Constructor and Description |
|---|
CommerceDiscountLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static CommerceDiscount |
addCommerceDiscount(CommerceDiscount commerceDiscount)
Adds the commerce discount to the database.
|
static CommerceDiscount |
addCommerceDiscount(long userId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscount |
addCommerceDiscount(long userId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.lang.String level,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean rulesConjunction,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscount |
addCommerceDiscount(long userId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.lang.String level,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean rulesConjunction,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
java.lang.String externalReferenceCode,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
checkCommerceDiscounts() |
static int |
countByCommercePricingClassId(long commercePricingClassId,
java.lang.String title) |
static CommerceDiscount |
createCommerceDiscount(long commerceDiscountId)
Creates a new commerce discount with the primary key.
|
static CommerceDiscount |
deleteCommerceDiscount(CommerceDiscount commerceDiscount)
Deletes the commerce discount from the database.
|
static CommerceDiscount |
deleteCommerceDiscount(long commerceDiscountId)
Deletes the commerce discount with the primary key from the database.
|
static void |
deleteCommerceDiscounts(long companyId) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static CommerceDiscount |
fetchByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode) |
static CommerceDiscount |
fetchCommerceDiscount(long commerceDiscountId) |
static CommerceDiscount |
fetchCommerceDiscountByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce discount with the matching external reference code and company.
|
static CommerceDiscount |
fetchCommerceDiscountByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the commerce discount with the matching UUID and company.
|
static java.util.List<CommerceDiscount> |
getAccountCommerceDiscounts(long commerceAccountId,
long cpDefinitionId) |
static java.util.List<CommerceDiscount> |
getAccountCommerceDiscounts(long commerceAccountId,
java.lang.String commerceDiscountTargetType) |
static java.util.List<CommerceDiscount> |
getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds,
long cpDefinitionId) |
static java.util.List<CommerceDiscount> |
getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds,
java.lang.String commerceDiscountTargetType) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static java.util.List<CommerceDiscount> |
getChannelCommerceDiscounts(long commerceChannelId,
long cpDefinitionId) |
static java.util.List<CommerceDiscount> |
getChannelCommerceDiscounts(long commerceChannelId,
java.lang.String commerceDiscountTargetType) |
static CommerceDiscount |
getCommerceDiscount(long commerceDiscountId)
Returns the commerce discount with the primary key.
|
static CommerceDiscount |
getCommerceDiscountByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the commerce discount with the matching UUID and company.
|
static java.util.List<CommerceDiscount> |
getCommerceDiscounts(int start,
int end)
Returns a range of all the commerce discounts.
|
static java.util.List<CommerceDiscount> |
getCommerceDiscounts(long companyId,
java.lang.String couponCode) |
static int |
getCommerceDiscountsCount()
Returns the number of commerce discounts.
|
static int |
getCommerceDiscountsCount(long companyId,
java.lang.String couponCode) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static java.util.List<CommerceDiscount> |
getPriceListCommerceDiscounts(long[] commerceDiscountIds,
long cpDefinitionId) |
static CommerceDiscountLocalService |
getService() |
static java.util.List<CommerceDiscount> |
getUnqualifiedCommerceDiscounts(long companyId,
long cpDefinitionId) |
static java.util.List<CommerceDiscount> |
getUnqualifiedCommerceDiscounts(long companyId,
java.lang.String commerceDiscountTargetType) |
static CommerceDiscount |
incrementCommerceDiscountNumberOfUse(long commerceDiscountId) |
static java.util.List<CommerceDiscount> |
searchByCommercePricingClassId(long commercePricingClassId,
java.lang.String title,
int start,
int end) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount> |
searchCommerceDiscounts(long companyId,
long[] groupIds,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount> |
searchCommerceDiscounts(com.liferay.portal.kernel.search.SearchContext searchContext) |
static CommerceDiscount |
updateCommerceDiscount(CommerceDiscount commerceDiscount)
Updates the commerce discount in the database or adds it if it does not yet exist.
|
static CommerceDiscount |
updateCommerceDiscount(long commerceDiscountId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscount |
updateCommerceDiscount(long commerceDiscountId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.lang.String level,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean rulesConjunction,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscount |
updateStatus(long userId,
long commerceDiscountId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext,
java.util.Map<java.lang.String,java.io.Serializable> workflowContext) |
static CommerceDiscount |
upsertCommerceDiscount(long userId,
long commerceDiscountId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
java.lang.String externalReferenceCode,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscount |
upsertCommerceDiscount(long userId,
long commerceDiscountId,
java.lang.String title,
java.lang.String target,
boolean useCouponCode,
java.lang.String couponCode,
boolean usePercentage,
java.math.BigDecimal maximumDiscountAmount,
java.lang.String level,
java.math.BigDecimal level1,
java.math.BigDecimal level2,
java.math.BigDecimal level3,
java.math.BigDecimal level4,
java.lang.String limitationType,
int limitationTimes,
boolean rulesConjunction,
boolean active,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
java.lang.String externalReferenceCode,
boolean neverExpire,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static CommerceDiscount addCommerceDiscount(CommerceDiscount commerceDiscount)
commerceDiscount - the commerce discountpublic static CommerceDiscount addCommerceDiscount(long userId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount addCommerceDiscount(long userId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.lang.String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount addCommerceDiscount(long userId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.lang.String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, java.lang.String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void checkCommerceDiscounts()
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static int countByCommercePricingClassId(long commercePricingClassId,
java.lang.String title)
public static CommerceDiscount createCommerceDiscount(long commerceDiscountId)
commerceDiscountId - the primary key for the new commerce discountpublic static CommerceDiscount deleteCommerceDiscount(CommerceDiscount commerceDiscount) throws com.liferay.portal.kernel.exception.PortalException
commerceDiscount - the commerce discountPortalExceptionpublic static CommerceDiscount deleteCommerceDiscount(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException
commerceDiscountId - the primary key of the commerce discountPortalException - if a commerce discount with the primary key could not be foundpublic static void deleteCommerceDiscounts(long companyId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
PortalExceptionpublic static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic static CommerceDiscount fetchByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
public static CommerceDiscount fetchCommerceDiscount(long commerceDiscountId)
public static CommerceDiscount fetchCommerceDiscountByReferenceCode(long companyId, java.lang.String externalReferenceCode)
companyId - the primary key of the companyexternalReferenceCode - the commerce discount's external reference codenull if a matching commerce discount could not be foundpublic static CommerceDiscount fetchCommerceDiscountByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid - the commerce discount's UUIDcompanyId - the primary key of the companynull if a matching commerce discount could not be foundpublic static java.util.List<CommerceDiscount> getAccountCommerceDiscounts(long commerceAccountId, long cpDefinitionId)
public static java.util.List<CommerceDiscount> getAccountCommerceDiscounts(long commerceAccountId, java.lang.String commerceDiscountTargetType)
public static java.util.List<CommerceDiscount> getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds, long cpDefinitionId)
public static java.util.List<CommerceDiscount> getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds, java.lang.String commerceDiscountTargetType)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static java.util.List<CommerceDiscount> getChannelCommerceDiscounts(long commerceChannelId, long cpDefinitionId)
public static java.util.List<CommerceDiscount> getChannelCommerceDiscounts(long commerceChannelId, java.lang.String commerceDiscountTargetType)
public static CommerceDiscount getCommerceDiscount(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException
commerceDiscountId - the primary key of the commerce discountPortalException - if a commerce discount with the primary key could not be foundpublic static CommerceDiscount getCommerceDiscountByUuidAndCompanyId(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
uuid - the commerce discount's UUIDcompanyId - the primary key of the companyPortalException - if a matching commerce discount could not be foundpublic static java.util.List<CommerceDiscount> getCommerceDiscounts(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl.
start - the lower bound of the range of commerce discountsend - the upper bound of the range of commerce discounts (not inclusive)public static java.util.List<CommerceDiscount> getCommerceDiscounts(long companyId, java.lang.String couponCode)
public static int getCommerceDiscountsCount()
public static int getCommerceDiscountsCount(long companyId,
java.lang.String couponCode)
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
PortalExceptionpublic static java.util.List<CommerceDiscount> getPriceListCommerceDiscounts(long[] commerceDiscountIds, long cpDefinitionId)
public static java.util.List<CommerceDiscount> getUnqualifiedCommerceDiscounts(long companyId, long cpDefinitionId)
public static java.util.List<CommerceDiscount> getUnqualifiedCommerceDiscounts(long companyId, java.lang.String commerceDiscountTargetType)
public static CommerceDiscount incrementCommerceDiscountNumberOfUse(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.List<CommerceDiscount> searchByCommercePricingClassId(long commercePricingClassId, java.lang.String title, int start, int end)
public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount> searchCommerceDiscounts(long companyId, long[] groupIds, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount> searchCommerceDiscounts(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount updateCommerceDiscount(CommerceDiscount commerceDiscount)
commerceDiscount - the commerce discountpublic static CommerceDiscount updateCommerceDiscount(long commerceDiscountId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount updateCommerceDiscount(long commerceDiscountId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.lang.String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount updateStatus(long userId, long commerceDiscountId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, java.util.Map<java.lang.String,java.io.Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount upsertCommerceDiscount(long userId, long commerceDiscountId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, java.lang.String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscount upsertCommerceDiscount(long userId, long commerceDiscountId, java.lang.String title, java.lang.String target, boolean useCouponCode, java.lang.String couponCode, boolean usePercentage, java.math.BigDecimal maximumDiscountAmount, java.lang.String level, java.math.BigDecimal level1, java.math.BigDecimal level2, java.math.BigDecimal level3, java.math.BigDecimal level4, java.lang.String limitationType, int limitationTimes, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, java.lang.String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static CommerceDiscountLocalService getService()