Uses of Class
com.broadleafcommerce.promotion.offer.web.context.EnhancedLineItem
-
-
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.domain
Methods in com.broadleafcommerce.promotion.offer.domain that return EnhancedLineItem Modifier and Type Method Description EnhancedLineItemItemMarketingMessageRequest. getItem()Deprecated.Methods in com.broadleafcommerce.promotion.offer.domain that return types with arguments of type EnhancedLineItem Modifier and Type Method Description List<EnhancedLineItem>MarketingMessageRequest. getLineItems()A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessagesMethods in com.broadleafcommerce.promotion.offer.domain with parameters of type EnhancedLineItem Modifier and Type Method Description voidItemMarketingMessageRequest. setItem(EnhancedLineItem item)Deprecated.Method parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type EnhancedLineItem Modifier and Type Method Description voidMarketingMessageRequest. setLineItems(List<EnhancedLineItem> lineItems)A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessages -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service
Methods in com.broadleafcommerce.promotion.offer.service with parameters of type EnhancedLineItem Modifier and Type Method Description booleanDefaultMarketingMessageOfferCandidateService. isCriteriaMatched(@NonNull EnhancedLineItem item, @NonNull ItemCriteria criteria)booleanMarketingMessageOfferCandidateService. isCriteriaMatched(@NonNull EnhancedLineItem item, @NonNull ItemCriteria criteria)Determines whether theEnhancedLineItemmatches theItemCriteria.protected booleanDefaultMarketingMessageResolver. isItemQualifier(Offer offer, EnhancedLineItem item)Checks if any of the rules inOffer.getItemQualifierCriteria()matches the line item on this request in order to determine if the line item can be used to qualify for the offer.protected booleanDefaultMarketingMessageResolver. isItemTarget(Offer offer, EnhancedLineItem item)If this is an item offer, checks if any of the rules inOffer.getTargetItemCriteria()matches the line item on this request in order to determine if the line item can be used as the target for the offer. -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service.dto
Methods in com.broadleafcommerce.promotion.offer.service.dto that return types with arguments of type EnhancedLineItem Modifier and Type Method Description Map<ItemCriteriaRule,Collection<EnhancedLineItem>>CandidateItemOffer. getCandidateQualifiersMap()Map ofItemCriteriaRulefrom anoffer's item qualifier criteriato aCollectionofEnhancedLineItemthat meet that criteria.Map<ItemCriteriaRule,Collection<EnhancedLineItem>>CandidateOrderOffer. getCandidateQualifiersMap()Map ofItemCriteriaRulefrom anoffer's item qualifier criteriato aCollectionofEnhancedLineItemthat meet that criteria.Map<ItemCriteriaRule,Collection<EnhancedLineItem>>CandidateItemOffer. getCandidateTargetsMap()Map ofItemCriteriaRulefrom anoffer's target item criteriato aCollectionofEnhancedLineItemthat meet that criteria.Method parameters in com.broadleafcommerce.promotion.offer.service.dto with type arguments of type EnhancedLineItem Modifier and Type Method Description voidCandidateItemOffer. setCandidateQualifiersMap(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> candidateQualifiersMap)Map ofItemCriteriaRulefrom anoffer's item qualifier criteriato aCollectionofEnhancedLineItemthat meet that criteria.voidCandidateOrderOffer. setCandidateQualifiersMap(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> candidateQualifiersMap)Map ofItemCriteriaRulefrom anoffer's item qualifier criteriato aCollectionofEnhancedLineItemthat meet that criteria.voidCandidateItemOffer. setCandidateTargetsMap(Map<ItemCriteriaRule,Collection<EnhancedLineItem>> candidateTargetsMap)Map ofItemCriteriaRulefrom anoffer's target item criteriato aCollectionofEnhancedLineItemthat meet that criteria. -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service.engine
Methods in com.broadleafcommerce.promotion.offer.service.engine with parameters of type EnhancedLineItem Modifier and Type Method Description protected com.broadleafcommerce.promotion.offer.client.web.context.discounts.ItemResponse<P>DefaultOfferEngineResponseBuilder. getItemResponse(@NonNull EnhancedLineItem lineItem, @NonNull Set<String> allOrderCodes)Creates anOffer ItemResponsefor aline item. -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with type parameters of type EnhancedLineItem Modifier and Type Method Description protected <P extends EnhancedLineItem>
booleanDefaultOrderAndItemOfferHelper. orderMeetsItemTotalRequirements(javax.money.MonetaryAmount minTotal, Map<ItemCriteriaRule,Collection<P>> candidateItemsMap, boolean useSalePrice)Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with type arguments of type EnhancedLineItem 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.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. -
Uses of EnhancedLineItem 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 EnhancedLineItem Modifier and Type Method Description protected EnhancedLineItemDefaultQualifierAndTargetMarker. findRelatedQualifierRootAncestor(EnhancedLineItem relatedQualifier)Repeatedly callsEnhancedOrderLineItem.getParent()until finding the root parent (i.e., an item with no parent) of theitem qualifierthat needs to be related (e.g., ancestor or descendant) to its targets.Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item that return types with arguments of type EnhancedLineItem Modifier and Type Method Description 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.Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with parameters of type EnhancedLineItem Modifier and Type Method Description javax.money.MonetaryAmountDefaultPotentialSavingsCalculator. calculateDiscountForItem(CandidateItemOffer itemOffer, EnhancedLineItem item, int quantityToReceiveDiscount)javax.money.MonetaryAmountPotentialSavingsCalculator. calculateDiscountForItem(CandidateItemOffer itemOffer, EnhancedLineItem item, int quantityToReceiveDiscount)Calculates the potential discount of aCandidateItemOfferfor anEnhancedLineItem.protected BigDecimalDefaultPotentialSavingsCalculator. calculateWeightedPercent(EnhancedLineItem item, javax.money.MonetaryAmount itemSavings, boolean useSalePrice)protected EnhancedLineItemDefaultQualifierAndTargetMarker. findRelatedQualifierRootAncestor(EnhancedLineItem relatedQualifier)Repeatedly callsEnhancedOrderLineItem.getParent()until finding the root parent (i.e., an item with no parent) of theitem qualifierthat needs to be related (e.g., ancestor or descendant) to its targets.protected booleanDefaultQualifierAndTargetMarker. isItemRelatedToQualifier(EnhancedLineItem relatedQualifierRootAncestor, LineItemOfferDetail offerDetail)protected booleanDefaultQualifierAndTargetMarker. markAllTargets(CandidateItemOffer itemOffer, EnhancedLineItem relatedQualifier, boolean checkOnly)Marks all the items that match aOffer.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.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with type arguments of type EnhancedLineItem Modifier and Type Method Description protected List<LineItemOfferDetail>DefaultQualifierAndTargetMarker. buildOfferDetailList(Collection<? extends EnhancedLineItem> orderLineItems)protected List<LineItemOfferDetail>DefaultQualifierAndTargetMarker. getSortedItemOfferDetails(Offer offer, Collection<? extends EnhancedLineItem> orderLineItems, boolean isForQualifiers)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. 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. -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service.engine.candidate
Fields in com.broadleafcommerce.promotion.offer.service.engine.candidate with type parameters of type EnhancedLineItem Modifier and Type Field Description protected 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 EnhancedLineItem Modifier and Type Method Description protected Set<EnhancedLineItem>DefaultOfferCandidateService. evaluateOrderForMatchingItems(@NonNull EnhancedOrder order, @NonNull ItemCriteriaRule itemCriteriaRule, boolean allowMatchesOnNonDiscountableItems)Evaluates theItemCriteriaRuleagainst theOrder's line itemsto determine if the order matches.Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate with parameters of type EnhancedLineItem Modifier and Type Method Description protected booleanDefaultOfferCandidateService. isFreeGiftItem(@NonNull EnhancedLineItem orderItem)Determines if the givenEnhancedLineItemis a free gift item.protected booleanDefaultOfferCandidateService. matchIsAllowedForItem(@NonNull EnhancedLineItem orderItem, boolean allowMatchesOnNonDiscountableItems)Determine whether or not a match is allowed for the line item.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.candidate with type arguments of type EnhancedLineItem Modifier and Type Method Description protected voidDefaultOfferCandidateService. addQualifiersToMap(BaseCandidateOffer candidateOffer, Map<ItemCriteriaRule,Collection<EnhancedLineItem>> itemCriteriaMap)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)protected booleanDefaultOfferCandidateService. isMinSubtotalMet(javax.money.MonetaryAmount minSubtotalRequired, Set<? extends EnhancedLineItem> itemsToSum) -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service.engine.proration
Methods in com.broadleafcommerce.promotion.offer.service.engine.proration with parameters of type EnhancedLineItem Modifier and Type Method Description protected com.broadleafcommerce.promotion.offer.client.web.context.info.LineItemRefDefaultProrationService. createLineItemRef(EnhancedLineItem lineItem)protected EnhancedProratedItemOfferAdjustmentDefaultProrationService. createProratedAdjustment(Offer offer, EnhancedLineItem lineItem, LineItemOfferDetail parentDetail, javax.money.MonetaryAmount proratedAmt, int quantity)protected StringDefaultProrationService. getCustomLineItemType(EnhancedLineItem lineItem)protected StringDefaultProrationService. getLineItemType(EnhancedLineItem lineItem)Method parameters in com.broadleafcommerce.promotion.offer.service.engine.proration with type arguments of type EnhancedLineItem Modifier and Type Method Description protected javax.money.MonetaryAmountDefaultProrationService. getDiscountableItemsTotal(javax.money.MonetaryAmount startingAmount, List<? extends EnhancedLineItem> lineItems)Gets the discountable total for the givenEnhancedLineItems.protected voidDefaultProrationService. populateProratedOrderAdjustments(OrderOfferAdjustment orderAdjustment, List<? extends EnhancedLineItem> lineItems)Populates the prorated order adjustments from the givenOrderOfferAdjustmentacross the givenline items.protected Set<EnhancedProratedOfferAdjustment>DefaultProrationService. prorateAdjustmentAmongItems(Offer offer, javax.money.MonetaryAmount adjustmentAmount, javax.money.MonetaryAmount totalOfAllDiscountableItems, List<? extends EnhancedLineItem> lineItems)Prorates the given adjustment across the givenEnhancedLineItems. -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.web.context
Subclasses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.web.context Modifier and Type Class Description classEnhancedFulfillmentLineItemclassEnhancedOrderLineItemMethods in com.broadleafcommerce.promotion.offer.web.context that return types with arguments of type EnhancedLineItem Modifier and Type Method Description List<EnhancedLineItem>EnhancedOrder. getAllLineItems()List<EnhancedLineItem>EnhancedOrder. getLineItems(boolean isForFulfillment) -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.web.context.info
Methods in com.broadleafcommerce.promotion.offer.web.context.info that return EnhancedLineItem Modifier and Type Method Description EnhancedLineItemItemOfferAdjustment. getLineItem()EnhancedLineItemLineItemOfferDetail. getLineItem()TheEnhancedLineItemaffected byoffers.Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type EnhancedLineItem Modifier and Type Method Description voidLineItemOfferDetail. setLineItem(EnhancedLineItem lineItem)TheEnhancedLineItemaffected byoffers.
-