Interface CxSegmentTriggerDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCxSegmentTriggerDao
public interface CxSegmentTriggerDao extends Dao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Collection<CxVariationModel>findApplicableVariations(UserModel user, java.math.BigDecimal affinity, CatalogVersionModel catalogVersion)Selects valid variations for given user using CxSegmentTrigger.default java.util.Collection<CxVariationModel>findApplicableVariations(java.util.Collection<CxSegmentModel> segments, CatalogVersionModel catalogVersion)Selects valid variations for given user using CxSegmentTrigger.
-
-
-
Method Detail
-
findApplicableVariations
java.util.Collection<CxVariationModel> findApplicableVariations(UserModel user, java.math.BigDecimal affinity, CatalogVersionModel catalogVersion)
Selects valid variations for given user using CxSegmentTrigger. Should respect given affinity and catalog version.- Parameters:
user- for which variations should be selectedaffinity- minimal affinity to segmentcatalogVersion- from which variation will be returned- Returns:
- collection of valid variations
-
findApplicableVariations
default java.util.Collection<CxVariationModel> findApplicableVariations(java.util.Collection<CxSegmentModel> segments, CatalogVersionModel catalogVersion)
Selects valid variations for given user using CxSegmentTrigger. Should respect given affinity and catalog version.- Parameters:
segments- for which variations should be selectedcatalogVersion- from which variation will be returned- Returns:
- collection of valid variations
-
-