Uses of Class
com.broadleafcommerce.promotion.offer.domain.ItemCriteriaRule
Packages that use ItemCriteriaRule
Package
Description
-
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.domain
Methods in com.broadleafcommerce.promotion.offer.domain that return types with arguments of type ItemCriteriaRuleMethod parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type ItemCriteriaRuleModifier and TypeMethodDescriptionvoid
ItemCriteria.setRules
(Set<ItemCriteriaRule> rules) Rules that comprise this criteria.Constructor parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type ItemCriteriaRuleModifierConstructorDescriptionItemCriteria
(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
Methods in com.broadleafcommerce.promotion.offer.provider.jpa.domain that return types with arguments of type ItemCriteriaRuleModifier and TypeMethodDescriptionJpaOffer.getQualifierItemCriteriaRules()
JpaOffer.getTargetItemCriteriaRules()
Method parameters in com.broadleafcommerce.promotion.offer.provider.jpa.domain with type arguments of type ItemCriteriaRuleModifier and TypeMethodDescriptionvoid
JpaOffer.setQualifierItemCriteriaRules
(Set<ItemCriteriaRule> qualifierItemCriteriaRules) void
JpaOffer.setTargetItemCriteriaRules
(Set<ItemCriteriaRule> targetItemCriteriaRules) -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.service.dto
Methods in com.broadleafcommerce.promotion.offer.service.dto that return types with arguments of type ItemCriteriaRuleModifier 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.Method parameters in com.broadleafcommerce.promotion.offer.service.dto with type arguments of type ItemCriteriaRuleModifier 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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper that return types with arguments of type ItemCriteriaRuleModifier 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
.Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with parameters of type ItemCriteriaRuleModifier 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
.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with type arguments of type ItemCriteriaRuleModifier 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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item that return ItemCriteriaRuleModifier and TypeMethodDescriptionprotected ItemCriteriaRule
DefaultQualifierAndTargetMarker.getPreviousItemCriteria
(LineItemOfferDetail detail, Offer offer) Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with parameters of type ItemCriteriaRuleModifier 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
Fields in com.broadleafcommerce.promotion.offer.service.engine.candidate with type parameters of type ItemCriteriaRuleModifier 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
Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate that return types with arguments of type ItemCriteriaRuleModifier and TypeMethodDescriptionprotected Map<ItemCriteriaRule,
Collection<EnhancedFulfillmentLineItem>> DefaultOfferCandidateService.getItemCriteriaCollectionMap
(@NonNull ItemCriteria itemQualifierCriteria, @NonNull EnhancedFulfillmentGroup fulfillmentGroup) Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate with parameters of type ItemCriteriaRuleModifier 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.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.candidate with type arguments of type ItemCriteriaRuleModifier 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
Methods in com.broadleafcommerce.promotion.offer.web.context.info that return ItemCriteriaRuleModifier and TypeMethodDescriptionOfferQualifier.getItemQualifierCriteria()
TheOffer.getItemQualifierCriteria()
that anEnhancedLineItem
matched.OfferDiscount.getTargetItemCriteria()
TheOffer.getTargetItemCriteria()
that anEnhancedLineItem
matched.Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type ItemCriteriaRuleModifier 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.