Interface CxSegmentTriggerDao

All Superinterfaces:
Dao
All Known Implementing Classes:
DefaultCxSegmentTriggerDao

public interface CxSegmentTriggerDao extends Dao
  • 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 selected
      affinity - minimal affinity to segment
      catalogVersion - 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 selected
      catalogVersion - from which variation will be returned
      Returns:
      collection of valid variations