Interface CxSegmentTriggerDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCxSegmentTriggerDao
-
Method Summary
Modifier and TypeMethodDescriptionfindApplicableVariations(UserModel user, BigDecimal affinity, CatalogVersionModel catalogVersion) Selects valid variations for given user using CxSegmentTrigger.default Collection<CxVariationModel>findApplicableVariations(Collection<CxSegmentModel> segments, CatalogVersionModel catalogVersion) Selects valid variations for given user using CxSegmentTrigger.
-
Method Details
-
findApplicableVariations
Collection<CxVariationModel> findApplicableVariations(UserModel user, 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 Collection<CxVariationModel> findApplicableVariations(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
-