Class OfferCombinabilityCriteriaKey
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.service.dto.OfferCombinabilityCriteriaKey
-
public class OfferCombinabilityCriteriaKey extends Object
A structure containing the combinability data for a single offer. For a given offer engine execution, the combinability data for an offer depends on the other offers in play. As a result, the data for this class is populated in a few phases. Initially, the combinability criteria is populated based on the data stored with the offer. The second phase, modifies this data to remove irrelevant combinability exceptions.- Author:
- Brian Polster (bpolster)
- See Also:
OfferCombinabilityCriteria
-
-
Constructor Summary
Constructors Constructor Description OfferCombinabilityCriteriaKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BaseCandidateOffer>addCompatibleOffers(List<BaseCandidateOffer> offers)Adds all offers of the same type that are compatible with this criteria to the compatibleOffers list.booleanequals(Object o)Set<String>getOtherTypeOfferIdExclusions()StringgetTargetType()inthashCode()booleanisCompatibleWithOtherTypes()voidsetCompatibleWithOtherTypes(boolean compatibleWithOtherTypes)voidsetTargetType(String targetType)
-
-
-
Method Detail
-
addCompatibleOffers
public List<BaseCandidateOffer> addCompatibleOffers(List<BaseCandidateOffer> offers)
Adds all offers of the same type that are compatible with this criteria to the compatibleOffers list.- Parameters:
offers- list of offers to add if compatible
-
isCompatibleWithOtherTypes
public boolean isCompatibleWithOtherTypes()
-
setCompatibleWithOtherTypes
public void setCompatibleWithOtherTypes(boolean compatibleWithOtherTypes)
-
getTargetType
public String getTargetType()
-
setTargetType
public void setTargetType(String targetType)
-
-