Uses of Class
com.broadleafcommerce.promotion.offer.web.context.EnhancedLineItem
Packages that use EnhancedLineItem
Package
Description
-
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.domain
Methods in com.broadleafcommerce.promotion.offer.domain that return types with arguments of type EnhancedLineItemModifier and TypeMethodDescriptionMarketingMessageRequest.getLineItems()A list of hydratedEnhancedLineItems used by theMarketingMessageResolverto retrieveMarketingMessagesMethod parameters in com.broadleafcommerce.promotion.offer.domain with type arguments of type EnhancedLineItemModifier and TypeMethodDescriptionvoidMarketingMessageRequest.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 EnhancedLineItemModifier and TypeMethodDescriptionbooleanDefaultMarketingMessageOfferCandidateService.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.Method parameters in com.broadleafcommerce.promotion.offer.service with type arguments of type EnhancedLineItemModifier and TypeMethodDescriptionDefaultMarketingMessageResolver.checkForMatchingProducts(O offer, List<EnhancedLineItem> lineItems, boolean includeTargets, boolean includeQualifiers) -
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 EnhancedLineItemModifier and TypeMethodDescriptionCandidateItemOffer.getCandidateQualifiersMap()Map ofItemCriteriaRulefrom anoffer's item qualifier criteriato aCollectionofEnhancedLineItemthat meet that criteria.CandidateOrderOffer.getCandidateQualifiersMap()Map ofItemCriteriaRulefrom anoffer's item qualifier criteriato aCollectionofEnhancedLineItemthat meet that criteria.CandidateItemOffer.getCandidateTargetsMap()Map ofItemCriteriaRulefrom anoffer's target item criteriato aCollectionofEnhancedLineItemthat meet that criteria.Methods in com.broadleafcommerce.promotion.offer.service.dto with parameters of type EnhancedLineItemModifier and TypeMethodDescriptionbooleanBaseCandidateOffer.isNotExcludedFromOffer(EnhancedOrder order, EnhancedLineItem item) Returns true if the passed in item is NOT excluded from this offer.Method parameters in com.broadleafcommerce.promotion.offer.service.dto with type arguments of type EnhancedLineItemModifier and TypeMethodDescriptionvoidCandidateItemOffer.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 EnhancedLineItemModifier and TypeMethodDescriptionprotected com.broadleafcommerce.promotion.offer.client.web.context.discounts.ItemResponse<P>DefaultOfferEngineResponseBuilder.getItemResponse(@NonNull EnhancedLineItem lineItem, @NonNull OfferCodeData offerCodeData) Creates anOffer ItemResponsefor aline item. -
Uses of EnhancedLineItem in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor with parameters of type EnhancedLineItemModifier and TypeMethodDescriptionprotected com.broadleafcommerce.promotion.offer.client.web.context.info.OfferItemDetailDefaultItemOfferProcessor.createOfferItemDetailAndDetermineQualifierQuantity(@NonNull CandidateItemOffer itemOffer, @NonNull EnhancedLineItem lineItem, OfferDiscount offerDiscount, int quantityPerUsage) Creates anOfferItemDetailbased on the given fields.protected booleanDefaultItemOfferProcessor.itemHasQualifierOfferDetails(@NonNull EnhancedLineItem item, @NonNull CandidateItemOffer itemOffer, OfferDiscount offerDiscount) Determines whether the givenEnhancedLineItemhas anyOfferItemDetailsthat has anyOfferQualifiersmatching the givenCandidateItemOffer. -
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 EnhancedLineItemModifier and TypeMethodDescriptionprotected <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 EnhancedLineItemModifier and TypeMethodDescriptionprotected intDefaultOrderAndItemOfferHelper.calculateNumberOfTimesCriteriaIsMet(ItemCriteriaRule criteriaRule, Collection<EnhancedLineItem> lineItems) Calculates and returns the total number of times the givenEnhancedLineItemsare met with the givenItemCriteriaRule.DefaultOrderAndItemOfferHelper.getTotalTimesCriteriaIsMetByCriteria(Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemsMetByCriteriaRule) 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 EnhancedLineItemModifier and TypeMethodDescriptionprotected 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 EnhancedLineItemModifier and TypeMethodDescriptionprotected 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 EnhancedLineItemModifier and TypeMethodDescriptionjavax.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 EnhancedLineItemModifier and TypeMethodDescriptionprotected 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 EnhancedLineItemModifier and TypeFieldDescriptionprotected static final 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 EnhancedLineItemModifier and TypeMethodDescriptionprotected Set<EnhancedLineItem>DefaultOfferCandidateService.evaluateOrderForMatchingItems(@NonNull List<EnhancedOrderLineItem> orderLineItems, @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 EnhancedLineItemModifier and TypeMethodDescriptionprotected 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 EnhancedLineItemModifier and TypeMethodDescriptionprotected voidDefaultOfferCandidateService.addQualifiersToMap(BaseCandidateOffer candidateOffer, Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap) protected booleanDefaultOfferCandidateService.evaluateOfferItemCriteriaAgainstOrder(@NonNull EnhancedOrder order, @NonNull BaseCandidateOffer offer, @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 EnhancedLineItemModifier and TypeMethodDescriptionprotected 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 EnhancedLineItemModifier and TypeMethodDescriptionDefaultProrationService.buildProratedOrderAdjustments(OrderOfferAdjustment offerAdjustment, List<? extends EnhancedLineItem> lineItems, DiscountableItemInfo discountableItemInfo) ProrationService.buildProratedOrderAdjustments(OrderOfferAdjustment offerAdjustment, List<? extends EnhancedLineItem> lineItems, DiscountableItemInfo discountableItemInfo) Builds a list ofEnhancedProratedOfferAdjustmentsthat prorates the adjustment value of the passed inOrderOfferAdjustmentto the passed in list of relevantEnhancedLineItemsprotected javax.money.MonetaryAmountDefaultProrationService.getDiscountableItemsTotal(javax.money.MonetaryAmount startingAmount, List<? extends EnhancedLineItem> lineItems) Gets the discountable total for the givenEnhancedLineItems.protected Set<EnhancedProratedOfferAdjustment>DefaultProrationService.prorateAdjustmentAmongItems(Offer offer, javax.money.MonetaryAmount adjustmentAmount, DiscountableItemInfo discountableItemInfo, List<? extends EnhancedLineItem> lineItems, boolean updateItem) 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.contextMethods in com.broadleafcommerce.promotion.offer.web.context that return types with arguments of type EnhancedLineItemModifier and TypeMethodDescriptionEnhancedOrder.getAllLineItems()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 EnhancedLineItemModifier and TypeMethodDescriptionItemOfferAdjustment.getLineItem()LineItemOfferDetail.getLineItem()TheEnhancedLineItemaffected byoffers.Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type EnhancedLineItemModifier and TypeMethodDescriptionvoidLineItemOfferDetail.setLineItem(EnhancedLineItem lineItem) TheEnhancedLineItemaffected byoffers.