Uses of Class
com.broadleafcommerce.promotion.offer.domain.ItemCriteriaRule
Package
Description
-
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.domain
Modifier and TypeMethodDescriptionvoid
ItemCriteria.setRules
(Set<ItemCriteriaRule> rules) Rules that comprise this criteria.ModifierConstructorDescriptionItemCriteria
(String connectiveOperator, Set<ItemCriteriaRule> rules) ItemCriteria
(Set<ItemCriteriaRule> rules) Convenience constructor to initialize rules. -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.provider.jpa.domain
Modifier and TypeMethodDescriptionJpaOffer.getQualifierItemCriteriaRules()
JpaOffer.getTargetItemCriteriaRules()
Modifier and TypeMethodDescriptionvoid
JpaOffer.setQualifierItemCriteriaRules
(Set<ItemCriteriaRule> qualifierItemCriteriaRules) void
JpaOffer.setTargetItemCriteriaRules
(Set<ItemCriteriaRule> targetItemCriteriaRules) -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionCandidateFulfillmentGroup.getCandidateQualifiersMap()
Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisCandidateFulfillmentGroup.fulfillmentGroup
.CandidateItemOffer.getCandidateQualifiersMap()
Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedLineItem
that meet that criteria.CandidateOrderOffer.getCandidateQualifiersMap()
Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedLineItem
that meet that criteria.CandidateItemOffer.getCandidateTargetsMap()
Map ofItemCriteriaRule
from anoffer's target item criteria
to aCollection
ofEnhancedLineItem
that meet that criteria.Modifier and TypeMethodDescriptionvoid
CandidateFulfillmentGroup.setCandidateQualifiersMap
(Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> candidateQualifiersMap) Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisCandidateFulfillmentGroup.fulfillmentGroup
.void
CandidateItemOffer.setCandidateQualifiersMap
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> candidateQualifiersMap) Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedLineItem
that meet that criteria.void
CandidateOrderOffer.setCandidateQualifiersMap
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> candidateQualifiersMap) Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedLineItem
that meet that criteria.void
CandidateItemOffer.setCandidateTargetsMap
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> candidateTargetsMap) Map ofItemCriteriaRule
from anoffer's target item criteria
to aCollection
ofEnhancedLineItem
that meet that criteria. -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Modifier and TypeMethodDescriptionDefaultOrderAndItemOfferHelper.getTotalTimesCriteriaIsMetByCriteria
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemsMetByCriteriaRule) OrderAndItemOfferHelper.getTotalTimesCriteriaIsMetByCriteria
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemsMetByCriteriaRule) Gets a map of total number of times theItemCriteriaRule
is met byItemCriteriaRule
.Modifier and TypeMethodDescriptionprotected int
DefaultOrderAndItemOfferHelper.calculateNumberOfTimesCriteriaIsMet
(ItemCriteriaRule criteriaRule, Collection<EnhancedLineItem> lineItems) Calculates and returns the total number of times the givenEnhancedLineItems
are met with the givenItemCriteriaRule
.Modifier and TypeMethodDescriptionDefaultOrderAndItemOfferHelper.getTotalTimesCriteriaIsMetByCriteria
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemsMetByCriteriaRule) OrderAndItemOfferHelper.getTotalTimesCriteriaIsMetByCriteria
(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemsMetByCriteriaRule) Gets a map of total number of times theItemCriteriaRule
is met byItemCriteriaRule
.protected <P extends EnhancedLineItem>
booleanDefaultOrderAndItemOfferHelper.orderMeetsItemTotalRequirements
(javax.money.MonetaryAmount minTotal, Map<ItemCriteriaRule, Collection<P>> candidateItemsMap, boolean useSalePrice) -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item
Modifier and TypeMethodDescriptionprotected ItemCriteriaRule
DefaultQualifierAndTargetMarker.getPreviousItemCriteria
(LineItemOfferDetail detail, Offer offer) Modifier and TypeMethodDescriptionprotected int
DefaultQualifierAndTargetMarker.markQualifiersForSingleCriteria
(CandidateItemOffer itemOffer, ItemCriteriaRule itemCriteria, Collection<? extends EnhancedLineItem> orderLineItems) Marks all the qualifiers for a singleOffer.getItemQualifierCriteria()
.protected org.apache.commons.lang3.tuple.Pair<EnhancedLineItem,
Integer> DefaultQualifierAndTargetMarker.markRelatedQualifiersAndTargetsForItemCriteria
(CandidateItemOffer itemOffer, ItemCriteriaRule qualifierCriteria, Collection<? extends EnhancedLineItem> orderLineItems) Marks item qualifiers and the target items they qualify for a singleOffer.getItemQualifierCriteria()
to ensure that all qualifiers have targets and vice versa.protected int
DefaultQualifierAndTargetMarker.markSingleTargetForItemCriteria
(LineItemOfferDetail offerDetail, CandidateItemOffer itemOffer, ItemCriteriaRule targetCriteria, int targetQtyNeeded, boolean checkOnly) Marks a single item as a target of a singleOffer.getTargetItemCriteria()
protected int
DefaultQualifierAndTargetMarker.markTargetsForCriteria
(CandidateItemOffer itemOffer, EnhancedLineItem relatedQualifier, boolean checkOnly, ItemCriteriaRule targetCriteria, Collection<? extends EnhancedLineItem> orderLineItems) Marks the targets related to the provideditem qualifier
(relatedQualifier
) to ensure that there are enough to use for the qualifier'sOffer
.protected void
DefaultQualifierAndTargetMarker.rollbackQualifierMarkageBecauseMissingTarget
(OfferQualifier offerQualifier, int qtyToMarkAsQualifier, LineItemOfferDetail detail, ItemCriteriaRule previousQualifierCriteria) Undoes marking qualifiers because there were no matching targets. -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeFieldDescriptionprotected static final Collector<ItemCriteriaRule,
?, Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>>> DefaultOfferCandidateService.FULFILLMENT_ITEM_CRITERIA_MAP_COLLECTOR
protected static final Collector<ItemCriteriaRule,
?, Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>>> DefaultOfferCandidateService.FULFILLMENT_ITEM_CRITERIA_MAP_COLLECTOR
protected static final Collector<ItemCriteriaRule,
?, Map<ItemCriteriaRule, Collection<EnhancedLineItem>>> DefaultOfferCandidateService.ITEM_CRITERIA_MAP_COLLECTOR
protected static final Collector<ItemCriteriaRule,
?, Map<ItemCriteriaRule, Collection<EnhancedLineItem>>> DefaultOfferCandidateService.ITEM_CRITERIA_MAP_COLLECTOR
Modifier and TypeMethodDescriptionprotected Map<ItemCriteriaRule,
Collection<EnhancedFulfillmentLineItem>> DefaultOfferCandidateService.getItemCriteriaCollectionMap
(@NonNull ItemCriteria itemQualifierCriteria, @NonNull EnhancedFulfillmentGroup fulfillmentGroup) Modifier and TypeMethodDescriptionprotected Set<EnhancedFulfillmentLineItem>
DefaultOfferCandidateService.evaluateGroupForMatchingFulfillmentItems
(EnhancedFulfillmentGroup fulfillmentGroup, ItemCriteriaRule itemCriteria) protected Set<EnhancedFulfillmentLineItem>
DefaultOfferCandidateService.evaluateOrderForMatchingFulfillmentItems
(EnhancedOrder order, ItemCriteriaRule itemCriteria) protected Set<EnhancedLineItem>
DefaultOfferCandidateService.evaluateOrderForMatchingItems
(@NonNull List<EnhancedOrderLineItem> orderLineItems, @NonNull ItemCriteriaRule itemCriteriaRule, boolean allowMatchesOnNonDiscountableItems) Evaluates theItemCriteriaRule
against theOrder's line items
to determine if the order matches.Modifier and TypeMethodDescriptionprotected void
DefaultOfferCandidateService.addNewCandidateFG
(CandidateFulfillmentGroupOffer candidateOffer, EnhancedFulfillmentGroup fulfillmentGroup, Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> itemCriteriaMap) protected void
DefaultOfferCandidateService.addQualifiersToMap
(BaseCandidateOffer candidateOffer, Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap) protected boolean
DefaultOfferCandidateService.evaluateFulfillmentItemCriteriaAgainstOrder
(@NonNull EnhancedOrder order, @NonNull Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> itemCriteriaMap, String connectiveOperator) 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 boolean
DefaultOfferCandidateService.evaluateSubscriptionDiscountAgainstItems
(@NonNull Offer offer, @NonNull Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap) -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.web.context.info
Modifier and TypeMethodDescriptionOfferQualifier.getItemQualifierCriteria()
TheOffer.getItemQualifierCriteria()
that anEnhancedLineItem
matched.OfferDiscount.getTargetItemCriteria()
TheOffer.getTargetItemCriteria()
that anEnhancedLineItem
matched.Modifier and TypeMethodDescriptionLineItemOfferDetail.addOrUpdateMatchingOfferQualifier
(CandidateItemOffer itemOffer, ItemCriteriaRule qualifierCriteria, int qtyToMarkAsQualifier, com.broadleafcommerce.common.extension.TypeFactory offerFactory) Either creates a newOfferQualifier
or updates a preexisting one for the givenCandidateItemOffer
, marking the quantity of to reserve for use as qualifiers for the givenItemCriteriaRule
.void
LineItemOfferDetail.addOrUpdateMatchingOfferTarget
(CandidateItemOffer itemOffer, ItemCriteriaRule targetCriteria, int qtyToMarkAsTarget, com.broadleafcommerce.common.extension.TypeFactory offerFactory) Either creates a newOfferDiscount
or updates a preexisting one for the givenCandidateItemOffer
, marking the quantity of to reserve for use as targets for the givenItemCriteriaRule
.void
OfferQualifier.setItemQualifierCriteria
(ItemCriteriaRule itemQualifierCriteria) TheOffer.getItemQualifierCriteria()
that anEnhancedLineItem
matched.void
OfferDiscount.setTargetItemCriteria
(ItemCriteriaRule targetItemCriteria) TheOffer.getTargetItemCriteria()
that anEnhancedLineItem
matched.