Class CommerceDiscountLocalServiceWrapper
- All Implemented Interfaces:
CommerceDiscountLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountLocalService>
CommerceDiscountLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCommerceDiscountLocalServiceWrapper
(CommerceDiscountLocalService commerceDiscountLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCommerceDiscount
(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) addCommerceDiscount
(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.addCommerceDiscount
(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced by#addCommerceDiscount(String, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)
addCommerceDiscount
(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) addCommerceDiscount
(CommerceDiscount commerceDiscount) Adds the commerce discount to the database.addCommerceDiscount
(String externalReferenceCode, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) addCommerceDiscount
(String externalReferenceCode, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, 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) addOrUpdateCommerceDiscount
(String externalReferenceCode, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) addOrUpdateCommerceDiscount
(String externalReferenceCode, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, 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) addOrUpdateCommerceDiscount
(String externalReferenceCode, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) void
createCommerceDiscount
(long commerceDiscountId) Creates a new commerce discount with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCommerceDiscount
(long commerceDiscountId) Deletes the commerce discount with the primary key from the database.deleteCommerceDiscount
(CommerceDiscount commerceDiscount) Deletes the commerce discount from the database.void
deleteCommerceDiscounts
(long companyId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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.<T> 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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.fetchCommerceDiscount
(long commerceDiscountId) fetchCommerceDiscountByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCommerceDiscountByUuidAndCompanyId
(String uuid, long companyId) Returns the commerce discount with the matching UUID and company.fetchDefaultCommerceDiscount
(long commerceChannelAccountEntryRelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountAndChannelAndOrderTypeCommerceDiscounts
(long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountAndChannelAndOrderTypeCommerceDiscounts
(long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String target) getAccountAndChannelCommerceDiscounts
(long commerceAccountId, long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountAndChannelCommerceDiscounts
(long commerceAccountId, long commerceChannelId, String target) getAccountAndOrderTypeCommerceDiscounts
(long commerceAccountId, long commerceOrderTypeId, String target) getAccountCommerceAndOrderTypeDiscounts
(long commerceAccountId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountCommerceDiscounts
(long commerceAccountId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountCommerceDiscounts
(long commerceAccountId, String target) getAccountGroupAndChannelAndOrderTypeCommerceDiscount
(long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountGroupAndChannelAndOrderTypeCommerceDiscount
(long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String target) getAccountGroupAndChannelCommerceDiscount
(long[] commerceAccountGroupIds, long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountGroupAndChannelCommerceDiscount
(long[] commerceAccountGroupIds, long commerceChannelId, String target) getAccountGroupAndOrderTypeCommerceDiscount
(long[] commerceAccountGroupIds, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountGroupAndOrderTypeCommerceDiscount
(long[] commerceAccountGroupIds, long commerceOrderTypeId, String target) getAccountGroupCommerceDiscount
(long[] commerceAccountGroupIds, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getAccountGroupCommerceDiscount
(long[] commerceAccountGroupIds, String target) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getActiveCommerceDiscount
(long companyId, String couponCode, boolean active) int
getActiveCommerceDiscountsCount
(long companyId, String couponCode, boolean active) com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getChannelAndOrderTypeCommerceDiscounts
(long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getChannelAndOrderTypeCommerceDiscounts
(long commerceChannelId, long commerceOrderTypeId, String target) getChannelCommerceDiscounts
(long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getChannelCommerceDiscounts
(long commerceChannelId, String target) getCommerceDiscount
(long commerceDiscountId) Returns the commerce discount with the primary key.getCommerceDiscountByExternalReferenceCode
(String externalReferenceCode, long companyId) getCommerceDiscountByUuidAndCompanyId
(String uuid, long companyId) Returns the commerce discount with the matching UUID and company.getCommerceDiscounts
(int start, int end) Returns a range of all the commerce discounts.getCommerceDiscounts
(long companyId, String couponCode) Deprecated.As of Athanasius (7.3.x)getCommerceDiscounts
(long companyId, String level, boolean active, int status) int
Returns the number of commerce discounts.int
getCommerceDiscountsCount
(long companyId, String couponCode) Deprecated.As of Athanasius (7.3.x)int
getCommerceDiscountsCountByPricingClassId
(long commercePricingClassId, String title) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getOrderTypeCommerceDiscounts
(long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getOrderTypeCommerceDiscounts
(long commerceOrderTypeId, String target) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getPriceListCommerceDiscounts
(long[] commerceDiscountIds, long cpDefinitionId) getUnqualifiedCommerceDiscounts
(long companyId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getUnqualifiedCommerceDiscounts
(long companyId, String target) int
getValidCommerceDiscountsCount
(long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceDiscountId) int
getValidCommerceDiscountsCount
(long commerceDiscountId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) incrementCommerceDiscountNumberOfUse
(long commerceDiscountId) searchByCommercePricingClassId
(long commercePricingClassId, String title, int start, int end) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount>
searchCommerceDiscounts
(long companyId, long[] groupIds, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount>
searchCommerceDiscounts
(com.liferay.portal.kernel.search.SearchContext searchContext) void
setWrappedService
(CommerceDiscountLocalService commerceDiscountLocalService) updateCommerceDiscount
(long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) updateCommerceDiscount
(long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, 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) updateCommerceDiscount
(long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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) updateCommerceDiscount
(CommerceDiscount commerceDiscount) Updates the commerce discount in the database or adds it if it does not yet exist.updateCommerceDiscountExternalReferenceCode
(long commerceDiscountId, String externalReferenceCode) Deprecated.As of Cavanaugh (7.4.x), replaced byupdateCommerceDiscountExternalReferenceCode(String, long)
updateCommerceDiscountExternalReferenceCode
(String externalReferenceCode, long commerceDiscountId) updateStatus
(long userId, long commerceDiscountId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) upsertCommerceDiscount
(long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddOrUpdateCommerceDiscount(String, long, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)
upsertCommerceDiscount
(long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x), replaced byaddOrUpdateCommerceDiscount(String, long, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)
upsertCommerceDiscount
(long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CommerceDiscountLocalServiceWrapper
public CommerceDiscountLocalServiceWrapper() -
CommerceDiscountLocalServiceWrapper
public CommerceDiscountLocalServiceWrapper(CommerceDiscountLocalService commerceDiscountLocalService)
-
-
Method Details
-
addCommerceDiscount
Adds the commerce discount to the database. Also notifies the appropriate model listeners.Important: Inspect CommerceDiscountLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Parameters:
commerceDiscount
- the commerce discount- Returns:
- the commerce discount that was added
-
addCommerceDiscount
public CommerceDiscount addCommerceDiscount(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceDiscount
public CommerceDiscount addCommerceDiscount(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceDiscount
@Deprecated public CommerceDiscount addCommerceDiscount(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.- Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceDiscount
@Deprecated public CommerceDiscount addCommerceDiscount(long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced by#addCommerceDiscount(String, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)
- Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceDiscount
public CommerceDiscount addCommerceDiscount(String externalReferenceCode, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCommerceDiscount
public CommerceDiscount addCommerceDiscount(String externalReferenceCode, long userId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, 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 - Specified by:
addCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceDiscount
public CommerceDiscount addOrUpdateCommerceDiscount(String externalReferenceCode, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
addOrUpdateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceDiscount
public CommerceDiscount addOrUpdateCommerceDiscount(String externalReferenceCode, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
addOrUpdateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCommerceDiscount
public CommerceDiscount addOrUpdateCommerceDiscount(String externalReferenceCode, long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, 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 - Specified by:
addOrUpdateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCommerceDiscounts
public void checkCommerceDiscounts() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkCommerceDiscounts
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCommerceDiscount
Creates a new commerce discount with the primary key. Does not add the commerce discount to the database.- Specified by:
createCommerceDiscount
in interfaceCommerceDiscountLocalService
- Parameters:
commerceDiscountId
- the primary key for the new commerce discount- Returns:
- the new commerce discount
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCommerceDiscountLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceDiscount
public CommerceDiscount deleteCommerceDiscount(CommerceDiscount commerceDiscount) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce discount from the database. Also notifies the appropriate model listeners.Important: Inspect CommerceDiscountLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteCommerceDiscount
in interfaceCommerceDiscountLocalService
- Parameters:
commerceDiscount
- the commerce discount- Returns:
- the commerce discount that was removed
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCommerceDiscount
public CommerceDiscount deleteCommerceDiscount(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException Deletes the commerce discount with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect CommerceDiscountLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteCommerceDiscount
in interfaceCommerceDiscountLocalService
- Parameters:
commerceDiscountId
- the primary key of the commerce discount- Returns:
- the commerce discount that was removed
- Throws:
PortalException
- if a commerce discount with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCommerceDiscounts
public void deleteCommerceDiscounts(long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCommerceDiscounts
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceCommerceDiscountLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCommerceDiscountLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCommerceDiscountLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCommerceDiscountLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCommerceDiscountLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl
.- Specified by:
dynamicQuery
in interfaceCommerceDiscountLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl
.- Specified by:
dynamicQuery
in interfaceCommerceDiscountLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCommerceDiscountLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCommerceDiscountLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCommerceDiscount
- Specified by:
fetchCommerceDiscount
in interfaceCommerceDiscountLocalService
-
fetchCommerceDiscountByExternalReferenceCode
public CommerceDiscount fetchCommerceDiscountByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommerceDiscountByExternalReferenceCode
in interfaceCommerceDiscountLocalService
-
fetchCommerceDiscountByUuidAndCompanyId
Returns the commerce discount with the matching UUID and company.- Specified by:
fetchCommerceDiscountByUuidAndCompanyId
in interfaceCommerceDiscountLocalService
- Parameters:
uuid
- the commerce discount's UUIDcompanyId
- the primary key of the company- Returns:
- the matching commerce discount, or
null
if a matching commerce discount could not be found
-
fetchDefaultCommerceDiscount
public CommerceDiscount fetchDefaultCommerceDiscount(long commerceChannelAccountEntryRelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
fetchDefaultCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountAndChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelAndOrderTypeCommerceDiscounts(long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountAndChannelAndOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountAndChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelAndOrderTypeCommerceDiscounts(long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String target) - Specified by:
getAccountAndChannelAndOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountAndChannelCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelCommerceDiscounts(long commerceAccountId, long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountAndChannelCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountAndChannelCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelCommerceDiscounts(long commerceAccountId, long commerceChannelId, String target) - Specified by:
getAccountAndChannelCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getAccountAndOrderTypeCommerceDiscounts(long commerceAccountId, long commerceOrderTypeId, String target) - Specified by:
getAccountAndOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountCommerceAndOrderTypeDiscounts
public List<CommerceDiscount> getAccountCommerceAndOrderTypeDiscounts(long commerceAccountId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountCommerceAndOrderTypeDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountCommerceDiscounts
public List<CommerceDiscount> getAccountCommerceDiscounts(long commerceAccountId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountCommerceDiscounts
- Specified by:
getAccountCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupAndChannelAndOrderTypeCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String target) - Specified by:
getAccountGroupAndChannelAndOrderTypeCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupAndChannelCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, String target) - Specified by:
getAccountGroupAndChannelCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupAndOrderTypeCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceOrderTypeId, String target) - Specified by:
getAccountGroupAndOrderTypeCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupCommerceDiscount
public List<CommerceDiscount> getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getAccountGroupCommerceDiscount
public List<CommerceDiscount> getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds, String target) - Specified by:
getAccountGroupCommerceDiscount
in interfaceCommerceDiscountLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCommerceDiscountLocalService
-
getActiveCommerceDiscount
public CommerceDiscount getActiveCommerceDiscount(long companyId, String couponCode, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getActiveCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getActiveCommerceDiscountsCount
- Specified by:
getActiveCommerceDiscountsCount
in interfaceCommerceDiscountLocalService
-
getChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getChannelAndOrderTypeCommerceDiscounts(long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getChannelAndOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getChannelAndOrderTypeCommerceDiscounts(long commerceChannelId, long commerceOrderTypeId, String target) - Specified by:
getChannelAndOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getChannelCommerceDiscounts
public List<CommerceDiscount> getChannelCommerceDiscounts(long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getChannelCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getChannelCommerceDiscounts
- Specified by:
getChannelCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getCommerceDiscount
public CommerceDiscount getCommerceDiscount(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce discount with the primary key.- Specified by:
getCommerceDiscount
in interfaceCommerceDiscountLocalService
- Parameters:
commerceDiscountId
- the primary key of the commerce discount- Returns:
- the commerce discount
- Throws:
PortalException
- if a commerce discount with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceDiscountByExternalReferenceCode
public CommerceDiscount getCommerceDiscountByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCommerceDiscountByExternalReferenceCode
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCommerceDiscountByUuidAndCompanyId
public CommerceDiscount getCommerceDiscountByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce discount with the matching UUID and company.- Specified by:
getCommerceDiscountByUuidAndCompanyId
in interfaceCommerceDiscountLocalService
- Parameters:
uuid
- the commerce discount's UUIDcompanyId
- the primary key of the company- Returns:
- the matching commerce discount
- Throws:
PortalException
- if a matching commerce discount could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCommerceDiscounts
Returns a range of all the commerce discounts.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl
.- Specified by:
getCommerceDiscounts
in interfaceCommerceDiscountLocalService
- Parameters:
start
- the lower bound of the range of commerce discountsend
- the upper bound of the range of commerce discounts (not inclusive)- Returns:
- the range of commerce discounts
-
getCommerceDiscounts
Deprecated.As of Athanasius (7.3.x)- Specified by:
getCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getCommerceDiscounts
public List<CommerceDiscount> getCommerceDiscounts(long companyId, String level, boolean active, int status) - Specified by:
getCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getCommerceDiscountsCount
public int getCommerceDiscountsCount()Returns the number of commerce discounts.- Specified by:
getCommerceDiscountsCount
in interfaceCommerceDiscountLocalService
- Returns:
- the number of commerce discounts
-
getCommerceDiscountsCount
Deprecated.As of Athanasius (7.3.x)- Specified by:
getCommerceDiscountsCount
in interfaceCommerceDiscountLocalService
-
getCommerceDiscountsCountByPricingClassId
- Specified by:
getCommerceDiscountsCountByPricingClassId
in interfaceCommerceDiscountLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCommerceDiscountLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCommerceDiscountLocalService
-
getOrderTypeCommerceDiscounts
public List<CommerceDiscount> getOrderTypeCommerceDiscounts(long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getOrderTypeCommerceDiscounts
public List<CommerceDiscount> getOrderTypeCommerceDiscounts(long commerceOrderTypeId, String target) - Specified by:
getOrderTypeCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCommerceDiscountLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCommerceDiscountLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getPriceListCommerceDiscounts
public List<CommerceDiscount> getPriceListCommerceDiscounts(long[] commerceDiscountIds, long cpDefinitionId) - Specified by:
getPriceListCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getUnqualifiedCommerceDiscounts
public List<CommerceDiscount> getUnqualifiedCommerceDiscounts(long companyId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getUnqualifiedCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getUnqualifiedCommerceDiscounts
- Specified by:
getUnqualifiedCommerceDiscounts
in interfaceCommerceDiscountLocalService
-
getValidCommerceDiscountsCount
public int getValidCommerceDiscountsCount(long commerceDiscountId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getValidCommerceDiscountsCount
in interfaceCommerceDiscountLocalService
-
getValidCommerceDiscountsCount
public int getValidCommerceDiscountsCount(long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceDiscountId) - Specified by:
getValidCommerceDiscountsCount
in interfaceCommerceDiscountLocalService
-
incrementCommerceDiscountNumberOfUse
public CommerceDiscount incrementCommerceDiscountNumberOfUse(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
incrementCommerceDiscountNumberOfUse
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchByCommercePricingClassId
public List<CommerceDiscount> searchByCommercePricingClassId(long commercePricingClassId, String title, int start, int end) - Specified by:
searchByCommercePricingClassId
in interfaceCommerceDiscountLocalService
-
searchCommerceDiscounts
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount> searchCommerceDiscounts(long companyId, long[] groupIds, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommerceDiscounts
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCommerceDiscounts
public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceDiscount> searchCommerceDiscounts(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCommerceDiscounts
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceDiscount
Updates the commerce discount in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect CommerceDiscountLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Parameters:
commerceDiscount
- the commerce discount- Returns:
- the commerce discount that was updated
-
updateCommerceDiscount
public CommerceDiscount updateCommerceDiscount(long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
updateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceDiscount
public CommerceDiscount updateCommerceDiscount(long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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 - Specified by:
updateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceDiscount
public CommerceDiscount updateCommerceDiscount(long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, 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 - Specified by:
updateCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceDiscountExternalReferenceCode
@Deprecated public CommerceDiscount updateCommerceDiscountExternalReferenceCode(long commerceDiscountId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byupdateCommerceDiscountExternalReferenceCode(String, long)
- Specified by:
updateCommerceDiscountExternalReferenceCode
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCommerceDiscountExternalReferenceCode
public CommerceDiscount updateCommerceDiscountExternalReferenceCode(String externalReferenceCode, long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCommerceDiscountExternalReferenceCode
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public CommerceDiscount updateStatus(long userId, long commerceDiscountId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String, Serializable> workflowContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
updateStatus
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
upsertCommerceDiscount
@Deprecated public CommerceDiscount upsertCommerceDiscount(long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.- Specified by:
upsertCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
upsertCommerceDiscount
@Deprecated public CommerceDiscount upsertCommerceDiscount(long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, 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, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byaddOrUpdateCommerceDiscount(String, long, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)
- Specified by:
upsertCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
upsertCommerceDiscount
@Deprecated public CommerceDiscount upsertCommerceDiscount(long userId, long commerceDiscountId, String title, String target, boolean useCouponCode, String couponCode, boolean usePercentage, BigDecimal maximumDiscountAmount, String level, BigDecimal level1, BigDecimal level2, BigDecimal level3, BigDecimal level4, String limitationType, int limitationTimes, int limitationTimesPerAccount, boolean rulesConjunction, boolean active, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, String externalReferenceCode, boolean neverExpire, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Deprecated.As of Cavanaugh (7.4.x), replaced byaddOrUpdateCommerceDiscount(String, long, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)
- Specified by:
upsertCommerceDiscount
in interfaceCommerceDiscountLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountLocalService>
-
addCommerceDiscount(String, long, String, String, boolean, String, boolean, BigDecimal, String, BigDecimal, BigDecimal, BigDecimal, BigDecimal, String, int, boolean, boolean, int, int, int, int, int, int, int, int, int, int, boolean, ServiceContext)