Class DefaultSegmentTriggerStrategy

java.lang.Object
de.hybris.platform.personalizationservices.trigger.strategy.impl.DefaultSegmentTriggerStrategy
All Implemented Interfaces:
CxTriggerStrategy

public class DefaultSegmentTriggerStrategy extends Object implements CxTriggerStrategy
  • Constructor Details

    • DefaultSegmentTriggerStrategy

      public DefaultSegmentTriggerStrategy()
  • Method Details

    • getVariations

      public Collection<CxVariationModel> getVariations(UserModel user, CatalogVersionModel catalogVersion)
      Description copied from interface: CxTriggerStrategy
      Returns a collection of varations from given catalog for given user. Way of finding this relation depends on strategy implementation.
      Specified by:
      getVariations in interface CxTriggerStrategy
      Parameters:
      user - for which variation should be triggered
      catalogVersion - from which variations should be selected
      Returns:
      collection of variations for given user (may be empty)
    • affinityFilter

      protected boolean affinityFilter(CxUserToSegmentModel u2s)
    • getMinAffinity

      protected BigDecimal getMinAffinity()
    • setCxSegmentTriggerDao

      public void setCxSegmentTriggerDao(CxSegmentTriggerDao cxSegmentTriggerDao)
    • setCxConfigurationService

      public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
    • setCxSegmentService

      public void setCxSegmentService(CxSegmentService cxSegmentService)
    • getCxConfigurationService

      protected CxConfigurationService getCxConfigurationService()
    • getCxSegmentTriggerDao

      protected CxSegmentTriggerDao getCxSegmentTriggerDao()
    • getCxSegmentService

      protected CxSegmentService getCxSegmentService()