Uses of Interface
org.broadleafcommerce.core.offer.service.discount.domain.PromotableCandidateItemOffer
Packages that use PromotableCandidateItemOffer
Package
Description
-
Uses of PromotableCandidateItemOffer in org.broadleafcommerce.core.offer.service
Methods in org.broadleafcommerce.core.offer.service with parameters of type PromotableCandidateItemOfferModifier and TypeMethodDescriptionprotected booleanOfferServiceUtilitiesImpl.adjustmentIsNotGoodEnoughToBeApplied(PromotableCandidateItemOffer itemOffer, PromotableOrderItemPriceDetail detail) The adjustment might not be better than the sale price.voidOfferServiceUtilities.applyAdjustmentsForItemPriceDetails(PromotableCandidateItemOffer itemOffer, List<PromotableOrderItemPriceDetail> itemPriceDetails) Takes in a list ofPromotableOrderItemPriceDetails and applies adjustments for all of the discounts that match the passed in offer.voidOfferServiceUtilitiesImpl.applyAdjustmentsForItemPriceDetails(PromotableCandidateItemOffer itemOffer, List<PromotableOrderItemPriceDetail> itemPriceDetails) org.broadleafcommerce.common.extension.ExtensionResultStatusTypeAbstractOfferServiceExtensionHandler.applyItemOffer(PromotableOrder order, PromotableCandidateItemOffer itemOffer, Map<String, Object> contextMap) org.broadleafcommerce.common.extension.ExtensionResultStatusTypeOfferServiceExtensionHandler.applyItemOffer(PromotableOrder order, PromotableCandidateItemOffer itemOffer, Map<String, Object> contextMap) Modules may need to extend the applyItemOffer logicorg.broadleafcommerce.common.extension.ExtensionResultStatusTypeOfferServiceExtensionManager.applyItemOffer(PromotableOrder order, PromotableCandidateItemOffer itemOffer, Map<String, Object> contextMap) voidOfferServiceUtilities.applyOrderItemAdjustment(PromotableCandidateItemOffer itemOffer, PromotableOrderItemPriceDetail itemPriceDetail) Used by applyAdjustments to create an OrderItemAdjustment from a CandidateOrderOffer and associates the OrderItemAdjustment to the OrderItem.voidOfferServiceUtilitiesImpl.applyOrderItemAdjustment(PromotableCandidateItemOffer itemOffer, PromotableOrderItemPriceDetail itemPriceDetail) org.broadleafcommerce.common.extension.ExtensionResultStatusTypeAbstractOfferServiceExtensionHandler.calculatePotentialSavings(PromotableCandidateItemOffer itemOffer, PromotableOrderItem item, int quantity, Map<String, Object> contextMap) org.broadleafcommerce.common.extension.ExtensionResultStatusTypeOfferServiceExtensionHandler.calculatePotentialSavings(PromotableCandidateItemOffer itemOffer, PromotableOrderItem item, int quantity, Map<String, Object> contextMap) Modules may extend the calculatePotentialSavings method.org.broadleafcommerce.common.extension.ExtensionResultStatusTypeOfferServiceExtensionManager.calculatePotentialSavings(PromotableCandidateItemOffer itemOffer, PromotableOrderItem item, int quantity, Map<String, Object> contextMap) booleanOfferServiceUtilities.itemOfferCanBeApplied(PromotableCandidateItemOffer itemOffer, List<PromotableOrderItemPriceDetail> details) Return false if a totalitarian or non-combinable offer has already been applied or if this offer is totalitarian or non-combinable and this order already has adjustments applied.booleanOfferServiceUtilitiesImpl.itemOfferCanBeApplied(PromotableCandidateItemOffer itemOffer, List<PromotableOrderItemPriceDetail> details) intOfferServiceUtilities.markQualifiersForCriteria(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, List<PromotableOrderItemPriceDetail> priceDetails) Returns the number of qualifiers marked for the passed in itemCriteriaintOfferServiceUtilitiesImpl.markQualifiersForCriteria(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, List<PromotableOrderItemPriceDetail> priceDetails) intOfferServiceUtilities.markRelatedQualifiersAndTargetsForItemCriteria(PromotableCandidateItemOffer itemOffer, PromotableOrder order, OrderItemHolder orderItemHolder, OfferItemCriteria itemCriteria, List<PromotableOrderItemPriceDetail> priceDetails, ItemOfferMarkTargets itemOfferMarkTargets) Returns the number of targets marked for the passed in itemCriteriaintOfferServiceUtilitiesImpl.markRelatedQualifiersAndTargetsForItemCriteria(PromotableCandidateItemOffer itemOffer, PromotableOrder order, OrderItemHolder orderItemHolder, OfferItemCriteria itemCriteria, List<PromotableOrderItemPriceDetail> priceDetails, ItemOfferMarkTargets itemOfferMarkTargets) intOfferServiceUtilities.markTargetsForCriteria(PromotableCandidateItemOffer itemOffer, OrderItem relatedQualifier, boolean checkOnly, Offer promotion, OrderItem relatedQualifierRoot, OfferItemCriteria itemCriteria, List<PromotableOrderItemPriceDetail> priceDetails, int targetQtyNeeded) Returns the number of targets marked for the passed in itemCriteriaintOfferServiceUtilitiesImpl.markTargetsForCriteria(PromotableCandidateItemOffer itemOffer, OrderItem relatedQualifier, boolean checkOnly, Offer promotion, OrderItem relatedQualifierRoot, OfferItemCriteria itemCriteria, List<PromotableOrderItemPriceDetail> priceDetails, int targetQtyNeeded) booleanOfferServiceUtilities.markTargetsForOfferPriceData(PromotableCandidateItemOffer itemOffer, OrderItem relatedQualifier, boolean checkOnly, Offer promotion, OrderItem relatedQualifierRoot, OfferPriceData offerPriceData, List<PromotableOrderItemPriceDetail> priceDetails) booleanOfferServiceUtilitiesImpl.markTargetsForOfferPriceData(PromotableCandidateItemOffer itemOffer, OrderItem relatedQualifier, boolean checkOnly, Offer promotion, OrderItem relatedQualifierRoot, OfferPriceData offerPriceData, List<PromotableOrderItemPriceDetail> priceDetails) -
Uses of PromotableCandidateItemOffer in org.broadleafcommerce.core.offer.service.discount
Methods in org.broadleafcommerce.core.offer.service.discount that return PromotableCandidateItemOfferMethods in org.broadleafcommerce.core.offer.service.discount with parameters of type PromotableCandidateItemOfferModifier and TypeMethodDescriptionintItemOfferComparator.compare(PromotableCandidateItemOffer p1, PromotableCandidateItemOffer p2) intItemOfferQtyOneComparator.compare(PromotableCandidateItemOffer p1, PromotableCandidateItemOffer p2) intItemOfferWeightedPercentComparator.compare(PromotableCandidateItemOffer p1, PromotableCandidateItemOffer p2) voidPromotionDiscount.setCandidateItemOffer(PromotableCandidateItemOffer candidateItemOffer) -
Uses of PromotableCandidateItemOffer in org.broadleafcommerce.core.offer.service.discount.domain
Classes in org.broadleafcommerce.core.offer.service.discount.domain that implement PromotableCandidateItemOfferFields in org.broadleafcommerce.core.offer.service.discount.domain declared as PromotableCandidateItemOfferModifier and TypeFieldDescriptionprotected PromotableCandidateItemOfferPromotableOrderItemPriceDetailAdjustmentImpl.promotableCandidateItemOfferMethods in org.broadleafcommerce.core.offer.service.discount.domain that return PromotableCandidateItemOfferModifier and TypeMethodDescriptionPromotableItemFactory.createPromotableCandidateItemOffer(PromotableOrder promotableOrder, Offer offer) PromotableItemFactoryImpl.createPromotableCandidateItemOffer(PromotableOrder promotableOrder, Offer offer) Methods in org.broadleafcommerce.core.offer.service.discount.domain with parameters of type PromotableCandidateItemOfferModifier and TypeMethodDescriptionvoidPromotableOrderItemPriceDetail.addPromotionDiscount(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, int qtyToMarkAsTarget) Adds a promotionDiscount entry to this itemDetail.voidPromotableOrderItemPriceDetailImpl.addPromotionDiscount(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, int qtyToMarkAsTarget) voidPromotableOrderItemPriceDetailWrapper.addPromotionDiscount(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, int qtyToMarkAsTarget) PromotableOrderItemPriceDetail.addPromotionQualifier(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, int qtyToMarkAsQualifier) Adds a promotionQualifier entry to this itemDetail.PromotableOrderItemPriceDetailImpl.addPromotionQualifier(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, int qtyToMarkAsQualifier) PromotableOrderItemPriceDetailWrapper.addPromotionQualifier(PromotableCandidateItemOffer itemOffer, OfferItemCriteria itemCriteria, int qtyToMarkAsQualifier) org.broadleafcommerce.common.money.MoneyPromotableOfferUtility.calculateSavingsForOrderItem(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem orderItem, int qtyToReceiveSavings) org.broadleafcommerce.common.money.MoneyPromotableOfferUtilityImpl.calculateSavingsForOrderItem(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem promotableOrderItem, int qtyToReceiveSavings) org.broadleafcommerce.common.money.MoneyPromotableOfferUtility.computeAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail, boolean allowSalePrice) org.broadleafcommerce.common.money.MoneyPromotableOfferUtilityImpl.computeAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail, boolean allowSalePrice) protected org.broadleafcommerce.common.util.Tuple<OfferDiscountType,BigDecimal> PromotableOfferUtilityImpl.computeDiscountVariables(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem promotableOrderItem, int quantity) Computes the discount type and unit value for the given PromotableOrderItem.org.broadleafcommerce.common.money.MoneyPromotableOfferUtility.computeRetailAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail) org.broadleafcommerce.common.money.MoneyPromotableOfferUtilityImpl.computeRetailAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail) org.broadleafcommerce.common.money.MoneyPromotableOfferUtility.computeSalesAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail) org.broadleafcommerce.common.money.MoneyPromotableOfferUtilityImpl.computeSalesAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail) PromotableItemFactory.createPromotableOrderItemPriceDetailAdjustment(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail promotableOrderItemPriceDetail) PromotableItemFactoryImpl.createPromotableOrderItemPriceDetailAdjustment(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail) protected OfferPriceDataPromotableOfferUtilityImpl.findMatchingOfferPriceData(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem orderItem) intPromotableOrderItemPriceDetail.getQuantityAvailableToBeUsedAsQualifier(PromotableCandidateItemOffer itemOffer) Returns the quantity of this item that can be used as a qualifier for the passed in itemOfferintPromotableOrderItemPriceDetailImpl.getQuantityAvailableToBeUsedAsQualifier(PromotableCandidateItemOffer itemOffer) intPromotableOrderItemPriceDetailWrapper.getQuantityAvailableToBeUsedAsQualifier(PromotableCandidateItemOffer itemOffer) intPromotableOrderItemPriceDetail.getQuantityAvailableToBeUsedAsTarget(PromotableCandidateItemOffer itemOffer) Returns the quantity of this item that can be used as a target for the passed in itemOfferintPromotableOrderItemPriceDetailImpl.getQuantityAvailableToBeUsedAsTarget(PromotableCandidateItemOffer itemOffer) intPromotableOrderItemPriceDetailWrapper.getQuantityAvailableToBeUsedAsTarget(PromotableCandidateItemOffer itemOffer) PromotableOrderItemPriceDetailImpl.lookupOrCreatePromotionDiscount(PromotableCandidateItemOffer candidatePromotion) PromotableOrderItemPriceDetailImpl.lookupOrCreatePromotionQualifier(PromotableCandidateItemOffer candidatePromotion) Constructors in org.broadleafcommerce.core.offer.service.discount.domain with parameters of type PromotableCandidateItemOfferModifierConstructorDescriptionPromotableOrderItemPriceDetailAdjustmentImpl(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail, org.broadleafcommerce.common.money.Money retailAdjustmentValue, org.broadleafcommerce.common.money.Money saleAdjustmentValue) -
Uses of PromotableCandidateItemOffer in org.broadleafcommerce.core.offer.service.processor
Methods in org.broadleafcommerce.core.offer.service.processor that return PromotableCandidateItemOfferModifier and TypeMethodDescriptionprotected PromotableCandidateItemOfferItemOfferProcessorImpl.createCandidateItemOffer(List<PromotableCandidateItemOffer> qualifiedItemOffers, Offer offer, PromotableOrder promotableOrder) Create a candidate item offer based on the offer in question and a specific order itemMethods in org.broadleafcommerce.core.offer.service.processor that return types with arguments of type PromotableCandidateItemOfferModifier and TypeMethodDescriptionprotected List<List<PromotableCandidateItemOffer>>ItemOfferProcessorImpl.buildItemOfferPermutations(List<PromotableCandidateItemOffer> offers) This method could be overridden to potentially run all permutations of offers.protected List<PromotableCandidateItemOffer>ItemOfferProcessorImpl.determineBestPermutation(List<PromotableCandidateItemOffer> itemOffers, PromotableOrder order) protected List<PromotableCandidateItemOffer>ItemOfferProcessorImpl.getPermutationByComparator(List<PromotableCandidateItemOffer> offers, Comparator instance) Methods in org.broadleafcommerce.core.offer.service.processor with parameters of type PromotableCandidateItemOfferModifier and TypeMethodDescriptionprotected voidItemOfferProcessorImpl.applyAdjustments(PromotableOrder order, PromotableCandidateItemOffer itemOffer) The itemOffer has been qualified and prior methods added PromotionDiscount objects onto the ItemPriceDetail.protected voidItemOfferProcessorImpl.applyItemOffer(PromotableOrder order, PromotableCandidateItemOffer itemOffer) protected BooleanItemOfferProcessorImpl.applyItemOfferExtension(PromotableOrder order, PromotableCandidateItemOffer itemOffer) Call out to extension managers.protected voidItemOfferProcessorImpl.applyItemQualifiersAndTargets(PromotableCandidateItemOffer itemOffer, PromotableOrder order) protected org.broadleafcommerce.common.money.MoneyItemOfferProcessorImpl.calculatePotentialSavingsForOrderItem(PromotableCandidateItemOffer itemOffer, PromotableOrderItem item, int quantity) Provide an opportunity to for modules to override the potentialSavingsCalculationprotected booleanItemOfferProcessorImpl.markQualifiers(PromotableCandidateItemOffer itemOffer, PromotableOrder order) Loop through ItemCriteria and mark qualifiers required to give the promotion to 1 or more targets.protected voidItemOfferProcessorImpl.markQualifiersAndTargets(PromotableOrder order, PromotableCandidateItemOffer itemOffer) protected booleanItemOfferProcessorImpl.markRelatedQualifiersAndTargets(PromotableCandidateItemOffer itemOffer, PromotableOrder order) When theOffer.getRequiresRelatedTargetAndQualifiers()flag is set to true, we must make sure that we identify qualifiers and targets together, as they must be related to each other based on theOrderItem.getParentOrderItem()/OrderItem.getChildOrderItems()attributes.booleanItemOfferMarkTargets.markTargets(PromotableCandidateItemOffer itemOffer, PromotableOrder order, OrderItem relatedQualifier, boolean checkOnly) protected booleanItemOfferProcessorImpl.markTargets(PromotableCandidateItemOffer itemOffer, PromotableOrder order, OrderItem relatedQualifier) booleanItemOfferProcessorImpl.markTargets(PromotableCandidateItemOffer itemOffer, PromotableOrder order, OrderItem relatedQualifier, boolean checkOnly) Loop through ItemCriteria and mark targets that can get this promotion to give the promotion to 1 or more targets.protected booleanItemOfferProcessorImpl.orderMeetsQualifyingSubtotalRequirements(PromotableOrder order, PromotableCandidateItemOffer itemOffer) protected booleanItemOfferProcessorImpl.orderMeetsSubtotalRequirements(PromotableOrder order, PromotableCandidateItemOffer itemOffer) protected booleanItemOfferProcessorImpl.orderMeetsTargetSubtotalRequirements(PromotableOrder order, PromotableCandidateItemOffer itemOffer) Method parameters in org.broadleafcommerce.core.offer.service.processor with type arguments of type PromotableCandidateItemOfferModifier and TypeMethodDescriptionvoidItemOfferProcessor.applyAllItemOffers(List<PromotableCandidateItemOffer> itemOffers, PromotableOrder order) Private method that takes a list of sorted CandidateItemOffers and determines if each offer can be applied based on the restrictions (stackable and/or combinable) on that offer.voidItemOfferProcessorImpl.applyAllItemOffers(List<PromotableCandidateItemOffer> itemOffers, PromotableOrder order) protected List<List<PromotableCandidateItemOffer>>ItemOfferProcessorImpl.buildItemOfferPermutations(List<PromotableCandidateItemOffer> offers) This method could be overridden to potentially run all permutations of offers.protected voidItemOfferProcessorImpl.calculatePotentialSavings(List<PromotableCandidateItemOffer> itemOffers, PromotableOrder order) This method determines the potential savings for each item offer as if it was the only item offer being applied.ItemOfferProcessorImpl.convertToIdList(List<PromotableCandidateItemOffer> offerList) protected PromotableCandidateItemOfferItemOfferProcessorImpl.createCandidateItemOffer(List<PromotableCandidateItemOffer> qualifiedItemOffers, Offer offer, PromotableOrder promotableOrder) Create a candidate item offer based on the offer in question and a specific order itemprotected List<PromotableCandidateItemOffer>ItemOfferProcessorImpl.determineBestPermutation(List<PromotableCandidateItemOffer> itemOffers, PromotableOrder order) voidItemOfferProcessor.filterItemLevelOffer(PromotableOrder order, List<PromotableCandidateItemOffer> qualifiedItemOffers, Offer offer) Review an item level offer against the list of discountable items from the order.voidItemOfferProcessorImpl.filterItemLevelOffer(PromotableOrder order, List<PromotableCandidateItemOffer> qualifiedItemOffers, Offer offer) protected List<PromotableCandidateItemOffer>ItemOfferProcessorImpl.getPermutationByComparator(List<PromotableCandidateItemOffer> offers, Comparator instance) protected booleanItemOfferProcessorImpl.offerListStartsWithNonCombinable(List<PromotableCandidateItemOffer> offerList) protected voidItemOfferProcessorImpl.removeDuplicatePermutations(List<List<PromotableCandidateItemOffer>> permutations) protected voidItemOfferProcessorImpl.removeTotalitarianAndNonCombinableOffers(List<PromotableCandidateItemOffer> offers, List<List<PromotableCandidateItemOffer>> listOfOfferLists)