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) voidcreateCommerceDiscount(long commerceDiscountId) Creates a new commerce discount with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(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.voiddeleteCommerceDiscounts(long companyId) com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.ActionableDynamicQuerygetActiveCommerceDiscount(long companyId, String couponCode, boolean active) intgetActiveCommerceDiscountsCount(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) intReturns the number of commerce discounts.intgetCommerceDiscountsCount(long companyId, String couponCode) Deprecated.As of Athanasius (7.3.x)intgetCommerceDiscountsCountByPricingClassId(long commercePricingClassId, String title) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerygetOrderTypeCommerceDiscounts(long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getOrderTypeCommerceDiscounts(long commerceOrderTypeId, String target) Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getPriceListCommerceDiscounts(long[] commerceDiscountIds, long cpDefinitionId) getUnqualifiedCommerceDiscounts(long companyId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) getUnqualifiedCommerceDiscounts(long companyId, String target) intgetValidCommerceDiscountsCount(long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceDiscountId) intgetValidCommerceDiscountsCount(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) voidsetWrappedService(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, waitMethods 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:
addCommerceDiscountin 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:
addCommerceDiscountin 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:
addCommerceDiscountin 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:
addCommerceDiscountin 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:
addCommerceDiscountin 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:
addCommerceDiscountin 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:
addCommerceDiscountin 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:
addOrUpdateCommerceDiscountin 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:
addOrUpdateCommerceDiscountin 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:
addOrUpdateCommerceDiscountin interfaceCommerceDiscountLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCommerceDiscounts
public void checkCommerceDiscounts() throws com.liferay.portal.kernel.exception.PortalException- Specified by:
checkCommerceDiscountsin 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:
createCommerceDiscountin 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:
createPersistedModelin interfaceCommerceDiscountLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.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:
deleteCommerceDiscountin interfaceCommerceDiscountLocalService- Parameters:
commerceDiscount- the commerce discount- Returns:
- the commerce discount that was removed
- Throws:
PortalExceptioncom.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:
deleteCommerceDiscountin 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:
deleteCommerceDiscountsin 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:
deletePersistedModelin interfaceCommerceDiscountLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceCommerceDiscountLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceCommerceDiscountLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceCommerceDiscountLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchCommerceDiscountin interfaceCommerceDiscountLocalService
-
fetchCommerceDiscountByExternalReferenceCode
public CommerceDiscount fetchCommerceDiscountByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCommerceDiscountByExternalReferenceCodein interfaceCommerceDiscountLocalService
-
fetchCommerceDiscountByUuidAndCompanyId
Returns the commerce discount with the matching UUID and company.- Specified by:
fetchCommerceDiscountByUuidAndCompanyIdin interfaceCommerceDiscountLocalService- Parameters:
uuid- the commerce discount's UUIDcompanyId- the primary key of the company- Returns:
- the matching commerce discount, or
nullif a matching commerce discount could not be found
-
fetchDefaultCommerceDiscount
public CommerceDiscount fetchDefaultCommerceDiscount(long commerceChannelAccountEntryRelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
fetchDefaultCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountAndChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelAndOrderTypeCommerceDiscounts(long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountAndChannelAndOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountAndChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelAndOrderTypeCommerceDiscounts(long commerceAccountId, long commerceChannelId, long commerceOrderTypeId, String target) - Specified by:
getAccountAndChannelAndOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountAndChannelCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelCommerceDiscounts(long commerceAccountId, long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountAndChannelCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountAndChannelCommerceDiscounts
public List<CommerceDiscount> getAccountAndChannelCommerceDiscounts(long commerceAccountId, long commerceChannelId, String target) - Specified by:
getAccountAndChannelCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getAccountAndOrderTypeCommerceDiscounts(long commerceAccountId, long commerceOrderTypeId, String target) - Specified by:
getAccountAndOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountCommerceAndOrderTypeDiscounts
public List<CommerceDiscount> getAccountCommerceAndOrderTypeDiscounts(long commerceAccountId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountCommerceAndOrderTypeDiscountsin interfaceCommerceDiscountLocalService
-
getAccountCommerceDiscounts
public List<CommerceDiscount> getAccountCommerceDiscounts(long commerceAccountId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountCommerceDiscounts
- Specified by:
getAccountCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupAndChannelAndOrderTypeCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, long commerceOrderTypeId, String target) - Specified by:
getAccountGroupAndChannelAndOrderTypeCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupAndChannelCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupAndChannelCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndChannelCommerceDiscount(long[] commerceAccountGroupIds, long commerceChannelId, String target) - Specified by:
getAccountGroupAndChannelCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupAndOrderTypeCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupAndOrderTypeCommerceDiscount
public List<CommerceDiscount> getAccountGroupAndOrderTypeCommerceDiscount(long[] commerceAccountGroupIds, long commerceOrderTypeId, String target) - Specified by:
getAccountGroupAndOrderTypeCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupCommerceDiscount
public List<CommerceDiscount> getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getAccountGroupCommerceDiscountin interfaceCommerceDiscountLocalService
-
getAccountGroupCommerceDiscount
public List<CommerceDiscount> getAccountGroupCommerceDiscount(long[] commerceAccountGroupIds, String target) - Specified by:
getAccountGroupCommerceDiscountin interfaceCommerceDiscountLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceCommerceDiscountLocalService
-
getActiveCommerceDiscount
public CommerceDiscount getActiveCommerceDiscount(long companyId, String couponCode, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getActiveCommerceDiscountin interfaceCommerceDiscountLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getActiveCommerceDiscountsCount
- Specified by:
getActiveCommerceDiscountsCountin interfaceCommerceDiscountLocalService
-
getChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getChannelAndOrderTypeCommerceDiscounts(long commerceChannelId, long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getChannelAndOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getChannelAndOrderTypeCommerceDiscounts
public List<CommerceDiscount> getChannelAndOrderTypeCommerceDiscounts(long commerceChannelId, long commerceOrderTypeId, String target) - Specified by:
getChannelAndOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getChannelCommerceDiscounts
public List<CommerceDiscount> getChannelCommerceDiscounts(long commerceChannelId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getChannelCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getChannelCommerceDiscounts
- Specified by:
getChannelCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getCommerceDiscount
public CommerceDiscount getCommerceDiscount(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException Returns the commerce discount with the primary key.- Specified by:
getCommerceDiscountin 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:
getCommerceDiscountByExternalReferenceCodein 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:
getCommerceDiscountByUuidAndCompanyIdin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl.- Specified by:
getCommerceDiscountsin 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:
getCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getCommerceDiscounts
public List<CommerceDiscount> getCommerceDiscounts(long companyId, String level, boolean active, int status) - Specified by:
getCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getCommerceDiscountsCount
public int getCommerceDiscountsCount()Returns the number of commerce discounts.- Specified by:
getCommerceDiscountsCountin interfaceCommerceDiscountLocalService- Returns:
- the number of commerce discounts
-
getCommerceDiscountsCount
Deprecated.As of Athanasius (7.3.x)- Specified by:
getCommerceDiscountsCountin interfaceCommerceDiscountLocalService
-
getCommerceDiscountsCountByPricingClassId
- Specified by:
getCommerceDiscountsCountByPricingClassIdin interfaceCommerceDiscountLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceCommerceDiscountLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceCommerceDiscountLocalService
-
getOrderTypeCommerceDiscounts
public List<CommerceDiscount> getOrderTypeCommerceDiscounts(long commerceOrderTypeId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getOrderTypeCommerceDiscounts
public List<CommerceDiscount> getOrderTypeCommerceDiscounts(long commerceOrderTypeId, String target) - Specified by:
getOrderTypeCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin 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:
getPersistedModelin interfaceCommerceDiscountLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
getPriceListCommerceDiscounts
public List<CommerceDiscount> getPriceListCommerceDiscounts(long[] commerceDiscountIds, long cpDefinitionId) - Specified by:
getPriceListCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getUnqualifiedCommerceDiscounts
public List<CommerceDiscount> getUnqualifiedCommerceDiscounts(long companyId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getUnqualifiedCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getUnqualifiedCommerceDiscounts
- Specified by:
getUnqualifiedCommerceDiscountsin interfaceCommerceDiscountLocalService
-
getValidCommerceDiscountsCount
public int getValidCommerceDiscountsCount(long commerceDiscountId, long cpDefinitionId, long cpInstanceId, String unitOfMeasureKey) - Specified by:
getValidCommerceDiscountsCountin interfaceCommerceDiscountLocalService
-
getValidCommerceDiscountsCount
public int getValidCommerceDiscountsCount(long commerceAccountId, long[] commerceAccountGroupIds, long commerceChannelId, long commerceDiscountId) - Specified by:
getValidCommerceDiscountsCountin interfaceCommerceDiscountLocalService
-
incrementCommerceDiscountNumberOfUse
public CommerceDiscount incrementCommerceDiscountNumberOfUse(long commerceDiscountId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
incrementCommerceDiscountNumberOfUsein interfaceCommerceDiscountLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchByCommercePricingClassId
public List<CommerceDiscount> searchByCommercePricingClassId(long commercePricingClassId, String title, int start, int end) - Specified by:
searchByCommercePricingClassIdin 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:
searchCommerceDiscountsin 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:
searchCommerceDiscountsin 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:
updateCommerceDiscountin 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:
updateCommerceDiscountin 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:
updateCommerceDiscountin 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:
updateCommerceDiscountin 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:
updateCommerceDiscountExternalReferenceCodein 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:
updateCommerceDiscountExternalReferenceCodein 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:
updateStatusin 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:
upsertCommerceDiscountin 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:
upsertCommerceDiscountin 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:
upsertCommerceDiscountin interfaceCommerceDiscountLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<CommerceDiscountLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein 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)