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 -
Method Summary
Modifier and TypeMethodDescriptionfindApplicableVariations(UserModel user, BigDecimal affinity, CatalogVersionModel catalogVersion) Selects valid variations for given user using CxSegmentTrigger.findApplicableVariations(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, setPaginatedFlexibleSearchServiceMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultCxSegmentTriggerDao
public DefaultCxSegmentTriggerDao()
-
-
Method Details
-
findApplicableVariations
public Collection<CxVariationModel> findApplicableVariations(UserModel user, BigDecimal affinity, CatalogVersionModel catalogVersion) Description copied from interface:CxSegmentTriggerDaoSelects valid variations for given user using CxSegmentTrigger. Should respect given affinity and catalog version.- Specified by:
findApplicableVariationsin 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 Collection<CxVariationModel> findApplicableVariations(Collection<CxSegmentModel> segments, CatalogVersionModel catalogVersion) Description copied from interface:CxSegmentTriggerDaoSelects valid variations for given user using CxSegmentTrigger. Should respect given affinity and catalog version.- Specified by:
findApplicableVariationsin interfaceCxSegmentTriggerDao- Parameters:
segments- for which variations should be selectedcatalogVersion- from which variation will be returned- Returns:
- collection of valid variations
-