public class PersonalizationServiceImpl extends Object implements PersonalizationService
PersonalizationService.Filter, PersonalizationService.PersonalizationRequest, PersonalizationService.PersonalizedContent, PersonalizationService.Target
Modifier and Type | Field and Description |
---|---|
static String |
CONTROL_GROUPS_PROPERTY_NAME |
Constructor and Description |
---|
PersonalizationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addPersonalizationStrategy(org.osgi.framework.ServiceReference<PersonalizationStrategy> personalizationStrategyRef) |
String |
bestMatch(Profile profile,
Session session,
PersonalizationService.PersonalizationRequest personalizationRequest)
Get the best match among a list of items, for the specified profile and session
|
boolean |
filter(Profile profile,
Session session,
PersonalizationService.PersonalizedContent personalizedContent)
Check if an item is visible for the specified profile and session
|
PersonalizationResult |
personalizeList(Profile profile,
Session session,
PersonalizationService.PersonalizationRequest personalizationRequest)
Get a personalized list, filtered and sorted, based on the profile and session
|
void |
removePersonalizationStrategy(org.osgi.framework.ServiceReference<PersonalizationStrategy> personalizationStrategyRef) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setProfileService(ProfileService profileService) |
public static final String CONTROL_GROUPS_PROPERTY_NAME
public void setProfileService(ProfileService profileService)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void addPersonalizationStrategy(org.osgi.framework.ServiceReference<PersonalizationStrategy> personalizationStrategyRef)
public void removePersonalizationStrategy(org.osgi.framework.ServiceReference<PersonalizationStrategy> personalizationStrategyRef)
public boolean filter(Profile profile, Session session, PersonalizationService.PersonalizedContent personalizedContent)
PersonalizationService
filter
in interface PersonalizationService
profile
- The profilesession
- The sessionpersonalizedContent
- Personalized content, containing a list of filterspublic String bestMatch(Profile profile, Session session, PersonalizationService.PersonalizationRequest personalizationRequest)
PersonalizationService
bestMatch
in interface PersonalizationService
profile
- The profilesession
- The sessionpersonalizationRequest
- Personalization request, containing the list of variants and the required strategypublic PersonalizationResult personalizeList(Profile profile, Session session, PersonalizationService.PersonalizationRequest personalizationRequest)
PersonalizationService
personalizeList
in interface PersonalizationService
profile
- The profilesession
- The sessionpersonalizationRequest
- Personalization request, containing the list of variants and the required strategyCopyright © 2014–2022 Apache Software Foundation. All rights reserved.