Class CompatibleOfferNode

java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.CompatibleOfferNode

public class CompatibleOfferNode extends Object
This class is used by the OfferProcessingContext to build a tree of compatible offers of the same type. The leaf nodes of the tree and their parents represent a unique permutation for the offer type. This is different than the CompatiblePermutationNode that is used to build compatible permutations across the different offer types.
  • Constructor Details

    • CompatibleOfferNode

      public CompatibleOfferNode()
  • Method Details

    • isLeafElement

      public boolean isLeafElement()
    • resolvePermutation

      @Deprecated(since="Offer Service 3.1.0", forRemoval=true) public OffersPermutation resolvePermutation()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use resolveCompatiblePermutation() which uses correct generics.
      Given a specific node in the tree structure, the compatible list of offers can be found by including the offer from this node and all of its parents.
      Returns:
      The permutation
    • resolveCompatiblePermutation

      public OffersPermutation<BaseCandidateOffer> resolveCompatiblePermutation()
      Given a specific node in the tree structure, the compatible list of offers can be found by including the offer from this node and all of its parents.
      Returns:
      The permutation