Class DefaultCxSegmentTriggerDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<M>
-
- de.hybris.platform.personalizationservices.dao.impl.AbstractCxDao<CxSegmentTriggerModel>
-
- de.hybris.platform.personalizationservices.trigger.dao.impl.DefaultCxSegmentTriggerDao
-
- All Implemented Interfaces:
CxSegmentTriggerDao
,Dao
,GenericDao<CxSegmentTriggerModel>
public class DefaultCxSegmentTriggerDao extends AbstractCxDao<CxSegmentTriggerModel> implements CxSegmentTriggerDao
-
-
Constructor Summary
Constructors Constructor Description DefaultCxSegmentTriggerDao()
-
Method Summary
All Methods Instance Methods Concrete 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.java.util.Collection<CxVariationModel>
findApplicableVariations(java.util.Collection<CxSegmentModel> segments, CatalogVersionModel catalogVersion)
Selects valid variations for given user using CxSegmentTrigger.-
Methods inherited from class de.hybris.platform.personalizationservices.dao.impl.AbstractCxDao
buildEmptySearchPageData, expandParams, getCxDaoQueryBuilder, getPaginatedFlexibleSearchService, queryList, queryList, queryList, queryList, queryList, queryList, querySingle, querySingle, setCxDaoQueryBuilder, setPaginatedFlexibleSearchService
-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
findApplicableVariations
public java.util.Collection<CxVariationModel> findApplicableVariations(UserModel user, java.math.BigDecimal affinity, CatalogVersionModel catalogVersion)
Description copied from interface:CxSegmentTriggerDao
Selects valid variations for given user using CxSegmentTrigger. Should respect given affinity and catalog version.- Specified by:
findApplicableVariations
in interfaceCxSegmentTriggerDao
- Parameters:
user
- for which variations should be selectedaffinity
- minimal affinity to segmentcatalogVersion
- from which variation will be returned- Returns:
- collection of valid variations
-
findApplicableVariations
public java.util.Collection<CxVariationModel> findApplicableVariations(java.util.Collection<CxSegmentModel> segments, CatalogVersionModel catalogVersion)
Description copied from interface:CxSegmentTriggerDao
Selects valid variations for given user using CxSegmentTrigger. Should respect given affinity and catalog version.- Specified by:
findApplicableVariations
in interfaceCxSegmentTriggerDao
- Parameters:
segments
- for which variations should be selectedcatalogVersion
- from which variation will be returned- Returns:
- collection of valid variations
-
-