Class CompatibleOfferNode
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.CompatibleOfferNode
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.Deprecated, for removal: This API element is subject to removal in a future version.
-
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.UseresolveCompatiblePermutation()
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
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()
which uses correct generics.