Uses of Class
com.broadleafcommerce.promotion.offer.service.dto.BaseCandidateOffer
Package
Description
-
Uses of BaseCandidateOffer in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeClassDescriptionclass
OffersPermutation<T extends BaseCandidateOffer>
DTO containing a set of compatible offers of the same type and that share the same combinability with regard to other types.Modifier and TypeClassDescriptionclass
DTO containing information necessary for determining if anOffer
that can apply to one or moreEnhancedFulfillmentGroup
s is part of the best permutation of all offers applicable to that group.class
DTO containing information necessary for determining if anOffer
that can apply to anEnhancedLineItem
is part of the best permutation of all offers applicable to that line item.class
DTO containing information necessary for determining if anOffer
that can apply to anEnhancedOrder
is part of the best permutation of all offers applicable to that order.Modifier and TypeMethodDescriptionOfferProcessingContext.findFirstCompatibleOffer
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) OfferProcessingContext.findFirstIncompatibleOffer
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) Based on the compatible flag, return the first compatible or incompatible item from the passed in listModifier and TypeMethodDescriptionOfferProcessingContext.filterIncompatibleOffers
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) Filters the passed in list, removing all incompatible offersCandidateOffers.getAllCandidateOffers()
A set of all the relevant candidate offers for given offer engine executionOfferCombinabilityCriteria.getCompatibleOffers()
Modifier and TypeMethodDescriptionprotected boolean
OfferProcessingContext.checkCompatability
(BaseCandidateOffer candidateOffer, BaseCandidateOffer otherCandidateOffer, CompatibleOfferNode node) protected boolean
OfferProcessingContext.checkForCombinable
(BaseCandidateOffer candidateOffer, BaseCandidateOffer otherOffer) protected boolean
OfferProcessingContext.checkForExplicitExclusions
(BaseCandidateOffer candidateOffer, BaseCandidateOffer otherCandidateOffer) protected boolean
OfferProcessingContext.checkForStackable
(BaseCandidateOffer candidateOffer, BaseCandidateOffer otherOffer) protected boolean
OfferProcessingContext.checkSegmentCombinable
(BaseCandidateOffer offer, CompatibleOfferNode currentNode) If this is an order offer and the segment is unique with the node path, then this offer can be combined.OfferProcessingContext.filterIncompatibleOffers
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) Filters the passed in list, removing all incompatible offersOfferProcessingContext.findFirstCompatibleOffer
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) OfferProcessingContext.findFirstIncompatibleOffer
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) Based on the compatible flag, return the first compatible or incompatible item from the passed in listvoid
CandidateOffers.initializeCandidateOfferForProcessing
(BaseCandidateOffer offer, EnhancedOrder order) Adds the offer to the relevant collections used by the offer engine.Modifier and TypeMethodDescriptionvoid
OfferCombinabilityCriteria.addCompatibleOffers
(List<? extends BaseCandidateOffer> offers) Adds all offers of the same type that are compatible with this criteria to the compatibleOffers list.void
OfferProcessingContext.createPathsForNode
(CompatibleOfferNode currentNode, List<BaseCandidateOffer> theOffers, Set<CompatibleOfferNode> allNodes) OfferProcessingContext.filterIncompatibleOffers
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) Filters the passed in list, removing all incompatible offersOfferProcessingContext.findFirstCompatibleOffer
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) OfferProcessingContext.findFirstIncompatibleOffer
(BaseCandidateOffer offer, CompatibleOfferNode node, List<BaseCandidateOffer> otherOffers) Based on the compatible flag, return the first compatible or incompatible item from the passed in listprotected void
OfferProcessingContext.initializePermutations
(List<? extends BaseCandidateOffer> offers, Map<OfferCombinabilityCriteriaKey, OfferCombinabilityCriteria> permutationMap) void
CandidateOffers.setAllCandidateOffers
(List<BaseCandidateOffer> allCandidateOffers) A set of all the relevant candidate offers for given offer engine executionvoid
OfferCombinabilityCriteria.setCompatibleOffers
(List<BaseCandidateOffer> compatibleOffers) -
Uses of BaseCandidateOffer in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Modifier and TypeMethodDescriptionprotected void
DefaultOrderAndItemOfferHelper.assertCandidateOfferNotNull
(BaseCandidateOffer offer) boolean
DefaultOrderAndItemOfferHelper.orderMeetsQualifyingTotalRequirements
(BaseCandidateOffer candidateOffer) boolean
OrderAndItemOfferHelper.orderMeetsQualifyingTotalRequirements
(BaseCandidateOffer candidateOffer) As offers are applied, recheck to ensure that the next offer in the collection of candidates can be applied based on the total of item qualifier prices.boolean
DefaultOrderAndItemOfferHelper.orderMeetsSubtotalRequirements
(EnhancedOrder order, BaseCandidateOffer candidateOffer) boolean
OrderAndItemOfferHelper.orderMeetsSubtotalRequirements
(EnhancedOrder order, BaseCandidateOffer candidateOffer) As offers are applied, recheck to ensure that the next offer in the collection of candidates can be applied based on the order subtotal. -
Uses of BaseCandidateOffer in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeMethodDescription<T extends BaseCandidateOffer>
List<T>DefaultOfferCandidateService.filterOffersByItemQualifiers
(@NonNull List<T> candidateOffers, @NonNull EnhancedOrder order) <T extends BaseCandidateOffer>
List<T>OfferCandidateService.filterOffersByItemQualifiers
(List<T> offerSet, EnhancedOrder order) Filter the provided offer set based on if the items of the provided order match as qualifiers.Modifier and TypeMethodDescriptionDefaultOfferCandidateService.constructCandidateOffer
(Offer offer, EnhancedOrder order) protected List<BaseCandidateOffer>
DefaultOfferCandidateService.expandOffersBySegment
(BaseCandidateOffer offer, EnhancedOrder order) It is possible for a single offer to be activated using two separate codes that are restricted to different segments.Modifier and TypeMethodDescriptionprotected void
DefaultOfferCandidateService.addQualifiersToMap
(BaseCandidateOffer candidateOffer, Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap) protected boolean
DefaultOfferCandidateService.evaluateOfferItemCriteriaAgainstOrder
(@NonNull EnhancedOrder order, @NonNull BaseCandidateOffer offer, @NonNull Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap, String connectiveOperator, boolean allowMatchesOnNonDiscountableItems) Evaluates theItemCriteriaRules
from an order or order item targeting offer against theOrder
to determine whether the offer is applicable.protected List<BaseCandidateOffer>
DefaultOfferCandidateService.expandOffersBySegment
(BaseCandidateOffer offer, EnhancedOrder order) It is possible for a single offer to be activated using two separate codes that are restricted to different segments.void
DefaultOfferCandidateService.initializeWithCodeProperties
(EnhancedOrder order, CandidateOffers candidateOffers, BaseCandidateOffer candidateOffer) protected void
DefaultCandidateOfferUtility.populateCandidateOfferCurrency
(@NonNull BaseCandidateOffer candidateOffer, @NonNull EnhancedOrder order, @NonNull Offer offer) protected void
DefaultCandidateOfferUtility.populateOfferRoundingProperties
(BaseCandidateOffer candidateOffer) Populates offer rounding properties for order and item typed offers.protected boolean
DefaultOfferCandidateService.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer) Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
DefaultOfferCandidateService.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer, boolean allowMatchesOnNonDiscountableItems) Whether the givenEnhancedOrderLineItem
should be considered when evaluating anItemCriteriaRule
.protected boolean
DefaultOfferCandidateService.shouldIncludeOnSaleItem
(EnhancedOrderLineItem item, BaseCandidateOffer candidateOffer)
DefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem, EnhancedOrder, BaseCandidateOffer, boolean)
.