Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Classes
  • Methods
  • Enum Constants
  • Terminally Deprecated Elements
    Element
    Description
    com.broadleafcommerce.promotion.offer.domain.Offer.getFriendlyOfferType()
    Use Offer.getOfferTemplate() and map the DefaultOfferTemplateType to localizable text in the caller instead of using hard-coded values as in this method.
    com.broadleafcommerce.promotion.offer.provider.jpa.repository.JpaAlternateLifecycleOfferAuditSummaryRepository.getEntityClass()
    Method had a hardcoded entity reference that prevents from accepting extended entities, use JpaAlternateLifecycleOfferAuditSummaryRepository.getManagedType() instead.
    com.broadleafcommerce.promotion.offer.provider.jpa.repository.JpaAlternateLifecycleSharedCodeAuditSummaryRepository.getEntityClass()
    Method had a hardcoded entity reference that prevents from accepting extended entities, use JpaAlternateLifecycleSharedCodeAuditSummaryRepository.getManagedType() instead.
    com.broadleafcommerce.promotion.offer.provider.jpa.repository.JpaCustomizedOfferRepository.getEntityClass()
    Method had a hardcoded entity reference that prevents from accepting extended entities, use JpaCustomizedOfferRepository.getManagedType() instead.
    com.broadleafcommerce.promotion.offer.repository.AlternateLifecycleSharedCodeAuditSummaryRepository.createOrUpdateAndIncrement(String, String, MonetaryAmount, ContextInfo)
    since 3.1.0-GA use AlternateLifecycleSharedCodeAuditSummaryRepository.createOrUpdateAndIncrement(String, String, String, MonetaryAmount, ContextInfo) instead
    com.broadleafcommerce.promotion.offer.service.dto.CompatibleOfferNode.resolvePermutation()
    Use CompatibleOfferNode.resolveCompatiblePermutation() which uses correct generics.
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder, List<CandidateItemOffer>)
    in favor of DefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder, List, ItemOfferPermutationResult)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.findBestPermutation(EnhancedOrder, List<List<CandidateItemOffer>>)
    Unused.
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.isRecurringAdjustmentGoodEnough(CandidateItemOffer, EnhancedLineItem)
    in favor of DefaultItemOfferProcessor.isRecurringAdjustmentGoodEnough(CandidateItemOffer, LineItemOfferDetail)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultOrderOfferProcessor.buildVoucher(Offer)
    Use DefaultOrderOfferProcessor.buildVoucher(CandidateOrderOffer, EnhancedOrder)
    com.broadleafcommerce.promotion.offer.service.engine.candidate.DefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem, EnhancedOrder, BaseCandidateOffer)
    Use DefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem, EnhancedOrder, BaseCandidateOffer, boolean).
    com.broadleafcommerce.promotion.offer.service.validation.MarketingMessageValidator.validateText(Errors)
    com.broadleafcommerce.promotion.offer.web.context.info.ItemOfferAdjustment.isFutureCredit()
    Use ItemOfferAdjustment.getType()
    com.broadleafcommerce.promotion.offer.web.context.info.ItemOfferAdjustment.setFutureCredit(boolean)
    Use ItemOfferAdjustment.setType(String)
    com.broadleafcommerce.promotion.offer.web.endpoint.OfferCodeExportEndpoint.exportOfferCodes(String, String, ExportRequest, ContextInfo)
    since 2.0.1, in favor of OfferCodeExportEndpoint.exportOfferCodes(String, ExportRequest, ContextInfo). The new implementation for export grids includes the filter string as part of the ExportRequest, instead of passing it as a parameter in the HTTP request.
  • Deprecated Classes
    Class
    Description
    com.broadleafcommerce.promotion.offer.autoconfigure.OfferCacheAutoConfiguration
  • Deprecated Methods
    Method
    Description
    com.broadleafcommerce.promotion.offer.domain.MarketingMessage.getLocale()
    since 1.6 use translations for different locales
    com.broadleafcommerce.promotion.offer.domain.MarketingMessage.getLocationType()
    since 1.6 functionality moved to MarketingMessage.locationTypes.
    com.broadleafcommerce.promotion.offer.domain.MarketingMessage.setLocale(Locale)
    since 1.6 use translations for different locales
    com.broadleafcommerce.promotion.offer.domain.MarketingMessage.setLocationType(String)
    since 1.6 functionality moved to MarketingMessage.locationTypes.
    com.broadleafcommerce.promotion.offer.domain.Offer.getFriendlyOfferType()
    Use Offer.getOfferTemplate() and map the DefaultOfferTemplateType to localizable text in the caller instead of using hard-coded values as in this method.
    com.broadleafcommerce.promotion.offer.domain.Offer.isAutomaticallyConsidered()
    since 3.2.0, use Offer.accessMethod and Offer.getAccessMethod() instead.
    com.broadleafcommerce.promotion.offer.domain.Offer.isTieredDiscount()
    since 1.6. Use Offer.isTieredOffer()
    com.broadleafcommerce.promotion.offer.domain.Offer.setAutomaticallyConsidered(boolean)
    since 3.2.0, use Offer.accessMethod instead.
    com.broadleafcommerce.promotion.offer.domain.Offer.setTieredDiscount(boolean)
    See Offer.offerDiscountStrategy. Offers with this value set to true are now considered to have a discount strategy of OfferDiscountStrategy.TIERED_ITEM_QTY. To check if an offer is tiered, use Offer.isTieredOffer()
    com.broadleafcommerce.promotion.offer.domain.SubscriptionDiscount.isDiscountCurrentOrder()
    No longer relevant with the introduction of LineItem.getStandardRecurringPrice(). The distinction between price types allows more granular control for subscription discounts.
    com.broadleafcommerce.promotion.offer.domain.SubscriptionDiscount.setDiscountCurrentOrder(boolean)
    No longer relevant with the introduction of LineItem.getStandardRecurringPrice(). The distinction between price types allows more granular control for subscription discounts.
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaMarketingMessage.getLocale()
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaMarketingMessage.getLocationType()
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaMarketingMessage.setLocale(Locale)
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaMarketingMessage.setLocationType(String)
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaOffer.getTieredDiscount()
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaOffer.isDiscountCurrentOrder()
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaOffer.setDiscountCurrentOrder(boolean)
    com.broadleafcommerce.promotion.offer.provider.jpa.domain.JpaOffer.setTieredDiscount(Boolean)
    com.broadleafcommerce.promotion.offer.provider.jpa.repository.JpaAlternateLifecycleOfferAuditSummaryRepository.getEntityClass()
    Method had a hardcoded entity reference that prevents from accepting extended entities, use JpaAlternateLifecycleOfferAuditSummaryRepository.getManagedType() instead.
    com.broadleafcommerce.promotion.offer.provider.jpa.repository.JpaAlternateLifecycleSharedCodeAuditSummaryRepository.getEntityClass()
    Method had a hardcoded entity reference that prevents from accepting extended entities, use JpaAlternateLifecycleSharedCodeAuditSummaryRepository.getManagedType() instead.
    com.broadleafcommerce.promotion.offer.provider.jpa.repository.JpaCustomizedOfferRepository.getEntityClass()
    Method had a hardcoded entity reference that prevents from accepting extended entities, use JpaCustomizedOfferRepository.getManagedType() instead.
    com.broadleafcommerce.promotion.offer.repository.AlternateLifecycleSharedCodeAuditSummaryRepository.createOrUpdateAndIncrement(String, String, MonetaryAmount, ContextInfo)
    since 3.1.0-GA use AlternateLifecycleSharedCodeAuditSummaryRepository.createOrUpdateAndIncrement(String, String, String, MonetaryAmount, ContextInfo) instead
    com.broadleafcommerce.promotion.offer.service.DefaultCodeGenerationService.setBatchSize(int)
    Since 1.6, use CampaignCodeGenerationProperties.getBatchSize() instead.
    com.broadleafcommerce.promotion.offer.service.DefaultCodeGeneratorService.getCampaignRepository()
    since 1.4, use DefaultCodeGeneratorService.getCampaignService() instead
    com.broadleafcommerce.promotion.offer.service.dto.CandidateItemOffer.resetUses()
    com.broadleafcommerce.promotion.offer.service.dto.CompatibleOfferNode.resolvePermutation()
    Use CompatibleOfferNode.resolveCompatiblePermutation() which uses correct generics.
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultFulfillmentGroupOfferProcessor.calculateDiscountableItemTotal(EnhancedFulfillmentGroup, OfferProcessingContext, CombinedTypesOfferPermutation)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultFulfillmentGroupOfferProcessor.canOfferBeApplied(EnhancedOrder, EnhancedFulfillmentGroup, CandidateFulfillmentGroupOffer, CombinedTypesOfferPermutation)
    in favor of DefaultFulfillmentGroupOfferProcessor.canOfferBeApplied(EnhancedOrder, EnhancedFulfillmentGroup, CandidateFulfillmentGroupOffer, CombinedTypesOfferPermutation, FulfillmentGroupOfferPermutationResult)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder, List<CandidateItemOffer>)
    in favor of DefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder, List, ItemOfferPermutationResult)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder, CandidateItemOffer, List<LineItemOfferDetail>)
    in favor of DefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder, CandidateItemOffer, List, ItemOfferPermutationResult)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.findBestPermutation(EnhancedOrder, List<List<CandidateItemOffer>>)
    Unused.
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultItemOfferProcessor.isRecurringAdjustmentGoodEnough(CandidateItemOffer, EnhancedLineItem)
    in favor of DefaultItemOfferProcessor.isRecurringAdjustmentGoodEnough(CandidateItemOffer, LineItemOfferDetail)
    com.broadleafcommerce.promotion.offer.service.engine.application.processor.DefaultOrderOfferProcessor.buildVoucher(Offer)
    Use DefaultOrderOfferProcessor.buildVoucher(CandidateOrderOffer, EnhancedOrder)
    com.broadleafcommerce.promotion.offer.service.engine.candidate.DefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem, EnhancedOrder, BaseCandidateOffer)
    Use DefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem, EnhancedOrder, BaseCandidateOffer, boolean).
    com.broadleafcommerce.promotion.offer.service.validation.MarketingMessageValidator.validateText(Errors)
    com.broadleafcommerce.promotion.offer.web.context.info.ItemOfferAdjustment.isFutureCredit()
    Use ItemOfferAdjustment.getType()
    com.broadleafcommerce.promotion.offer.web.context.info.ItemOfferAdjustment.setFutureCredit(boolean)
    Use ItemOfferAdjustment.setType(String)
    com.broadleafcommerce.promotion.offer.web.context.info.LineItemOfferDetail.split(TypeFactory, int, String, boolean)
    since 1.6, in favor of LineItemOfferDetail.split(TypeFactory, OfferDiscount).
    com.broadleafcommerce.promotion.offer.web.endpoint.OfferCodeExportEndpoint.exportOfferCodes(String, String, ExportRequest, ContextInfo)
    since 2.0.1, in favor of OfferCodeExportEndpoint.exportOfferCodes(String, ExportRequest, ContextInfo). The new implementation for export grids includes the filter string as part of the ExportRequest, instead of passing it as a parameter in the HTTP request.
  • Deprecated Enum Constants
    Enum Constant
    Description
    com.broadleafcommerce.promotion.offer.domain.type.MarketingMessageLocationType.EVERYWHERE
    as of 1.6, use MarketingMessageLocationType.EVERYWHERE() instead
    com.broadleafcommerce.promotion.offer.domain.type.MarketingMessageLocationType.SEARCH
    as of 1.6, use MarketingMessageLocationType.BROWSE instead

Copyright © 2026. All rights reserved.