Interface CxSegmentTriggerDao

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