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

      public OffersPermutation resolvePermutation()
      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: