Uses of Class
com.broadleafcommerce.promotion.offer.domain.ItemCriteriaRule
-
-
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.domain
Methods in com.broadleafcommerce.promotion.offer.domain that return types with arguments of type ItemCriteriaRule Modifier and Type Method Description Set<ItemCriteriaRule>ItemCriteria. getRules()Rules that comprise this criteria.Method parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type ItemCriteriaRule Modifier and Type Method Description voidItemCriteria. setRules(Set<ItemCriteriaRule> rules)Rules that comprise this criteria.Constructor parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type ItemCriteriaRule Constructor Description ItemCriteria(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 ItemCriteriaRule Modifier and Type Method Description Set<ItemCriteriaRule>JpaOffer. getQualifierItemCriteriaRules()Set<ItemCriteriaRule>JpaOffer. getTargetItemCriteriaRules()Method parameters in com.broadleafcommerce.promotion.offer.provider.jpa.domain with type arguments of type ItemCriteriaRule Modifier and Type Method Description voidJpaOffer. setQualifierItemCriteriaRules(Set<ItemCriteriaRule> qualifierItemCriteriaRules)voidJpaOffer. setTargetItemCriteriaRules(Set<ItemCriteriaRule> targetItemCriteriaRules) -
Uses of ItemCriteriaRule in com.broadleafcommerce.promotion.offer.service.dto
-
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 ItemCriteriaRule Modifier and Type Method Description Map<ItemCriteriaRule,Integer>DefaultOrderAndItemOfferHelper. getTotalTimesCriteriaIsMetByCriteria(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemsMetByCriteriaRule)Map<ItemCriteriaRule,Integer>OrderAndItemOfferHelper. getTotalTimesCriteriaIsMetByCriteria(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemsMetByCriteriaRule)Gets a map of total number of times theItemCriteriaRuleis met byItemCriteriaRule.Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with parameters of type ItemCriteriaRule Modifier and Type Method Description protected intDefaultOrderAndItemOfferHelper. calculateNumberOfTimesCriteriaIsMet(ItemCriteriaRule criteriaRule, Collection<EnhancedLineItem> lineItems)Calculates and returns the total number of times the givenEnhancedLineItemsare met with the givenItemCriteriaRule.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with type arguments of type ItemCriteriaRule Modifier and Type Method Description Map<ItemCriteriaRule,Integer>DefaultOrderAndItemOfferHelper. getTotalTimesCriteriaIsMetByCriteria(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemsMetByCriteriaRule)Map<ItemCriteriaRule,Integer>OrderAndItemOfferHelper. getTotalTimesCriteriaIsMetByCriteria(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemsMetByCriteriaRule)Gets a map of total number of times theItemCriteriaRuleis 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 ItemCriteriaRule Modifier and Type Method Description protected ItemCriteriaRuleDefaultQualifierAndTargetMarker. getPreviousItemCriteria(LineItemOfferDetail detail, Offer offer)Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with parameters of type ItemCriteriaRule Modifier and Type Method Description protected intDefaultQualifierAndTargetMarker. 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 intDefaultQualifierAndTargetMarker. markSingleTargetForItemCriteria(LineItemOfferDetail offerDetail, CandidateItemOffer itemOffer, ItemCriteriaRule targetCriteria, int targetQtyNeeded, boolean checkOnly)Marks a single item as a target of a singleOffer.getTargetItemCriteria()protected intDefaultQualifierAndTargetMarker. 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 voidDefaultQualifierAndTargetMarker. 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 ItemCriteriaRule Modifier and Type Field Description protected static Collector<ItemCriteriaRule,?,Map<ItemCriteriaRule,Collection<EnhancedFulfillmentLineItem>>>DefaultOfferCandidateService. FULFILLMENT_ITEM_CRITERIA_MAP_COLLECTORprotected static Collector<ItemCriteriaRule,?,Map<ItemCriteriaRule,Collection<EnhancedFulfillmentLineItem>>>DefaultOfferCandidateService. FULFILLMENT_ITEM_CRITERIA_MAP_COLLECTORprotected static Collector<ItemCriteriaRule,?,Map<ItemCriteriaRule,Collection<EnhancedLineItem>>>DefaultOfferCandidateService. ITEM_CRITERIA_MAP_COLLECTORprotected static Collector<ItemCriteriaRule,?,Map<ItemCriteriaRule,Collection<EnhancedLineItem>>>DefaultOfferCandidateService. ITEM_CRITERIA_MAP_COLLECTORMethods in com.broadleafcommerce.promotion.offer.service.engine.candidate that return types with arguments of type ItemCriteriaRule Modifier and Type Method Description protected 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 ItemCriteriaRule Modifier and Type Method Description protected Set<EnhancedFulfillmentLineItem>DefaultOfferCandidateService. evaluateGroupForMatchingFulfillmentItems(EnhancedFulfillmentGroup fulfillmentGroup, ItemCriteriaRule itemCriteria)protected Set<EnhancedFulfillmentLineItem>DefaultOfferCandidateService. evaluateOrderForMatchingFulfillmentItems(EnhancedOrder order, ItemCriteriaRule itemCriteria)protected Set<EnhancedLineItem>DefaultOfferCandidateService. evaluateOrderForMatchingItems(@NonNull EnhancedOrder order, @NonNull ItemCriteriaRule itemCriteriaRule, boolean allowMatchesOnNonDiscountableItems)Evaluates theItemCriteriaRuleagainst theOrder's line itemsto determine if the order matches.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.candidate with type arguments of type ItemCriteriaRule Modifier and Type Method Description protected voidDefaultOfferCandidateService. addNewCandidateFG(CandidateFulfillmentGroupOffer candidateOffer, EnhancedFulfillmentGroup fulfillmentGroup, Map<ItemCriteriaRule,Collection<EnhancedFulfillmentLineItem>> itemCriteriaMap)protected voidDefaultOfferCandidateService. addQualifiersToMap(BaseCandidateOffer candidateOffer, Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemCriteriaMap)protected booleanDefaultOfferCandidateService. evaluateFulfillmentItemCriteriaAgainstOrder(@NonNull EnhancedOrder order, @NonNull Map<ItemCriteriaRule,Collection<EnhancedFulfillmentLineItem>> itemCriteriaMap, String connectiveOperator)protected booleanDefaultOfferCandidateService. evaluateOfferItemCriteriaAgainstOrder(@NonNull EnhancedOrder order, @NonNull Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemCriteriaMap, String connectiveOperator, boolean allowMatchesOnNonDiscountableItems)Evaluates theItemCriteriaRulesfrom an order or order item targeting offer against theOrderto determine whether the offer is applicable.protected booleanDefaultOfferCandidateService. 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 ItemCriteriaRule Modifier and Type Method Description ItemCriteriaRuleOfferQualifier. getItemQualifierCriteria()TheOffer.getItemQualifierCriteria()that anEnhancedLineItemmatched.ItemCriteriaRuleOfferDiscount. getTargetItemCriteria()TheOffer.getTargetItemCriteria()that anEnhancedLineItemmatched.Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type ItemCriteriaRule Modifier and Type Method Description OfferQualifierLineItemOfferDetail. addOrUpdateMatchingOfferQualifier(CandidateItemOffer itemOffer, ItemCriteriaRule qualifierCriteria, int qtyToMarkAsQualifier, com.broadleafcommerce.common.extension.TypeFactory offerFactory)Either creates a newOfferQualifieror updates a preexisting one for the givenCandidateItemOffer, marking the quantity of to reserve for use as qualifiers for the givenItemCriteriaRule.voidLineItemOfferDetail. addOrUpdateMatchingOfferTarget(CandidateItemOffer itemOffer, ItemCriteriaRule targetCriteria, int qtyToMarkAsTarget, com.broadleafcommerce.common.extension.TypeFactory offerFactory)Either creates a newOfferDiscountor updates a preexisting one for the givenCandidateItemOffer, marking the quantity of to reserve for use as targets for the givenItemCriteriaRule.voidOfferQualifier. setItemQualifierCriteria(ItemCriteriaRule itemQualifierCriteria)TheOffer.getItemQualifierCriteria()that anEnhancedLineItemmatched.voidOfferDiscount. setTargetItemCriteria(ItemCriteriaRule targetItemCriteria)TheOffer.getTargetItemCriteria()that anEnhancedLineItemmatched.
-