Package org.apache.unomi.services.sorts
Class ScorePersonalizationStrategy
- java.lang.Object
-
- org.apache.unomi.services.sorts.ScorePersonalizationStrategy
-
- All Implemented Interfaces:
PersonalizationStrategy
public class ScorePersonalizationStrategy extends Object implements PersonalizationStrategy
-
-
Constructor Summary
Constructors Constructor Description ScorePersonalizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersonalizationResult
personalizeList(Profile profile, Session session, PersonalizationService.PersonalizationRequest personalizationRequest)
Filters and personalizes the list of contents passed as a parameter using the strategy's implementation.void
setProfileService(ProfileService profileService)
-
-
-
Method Detail
-
setProfileService
public void setProfileService(ProfileService profileService)
-
personalizeList
public PersonalizationResult personalizeList(Profile profile, Session session, PersonalizationService.PersonalizationRequest personalizationRequest)
Description copied from interface:PersonalizationStrategy
Filters and personalizes the list of contents passed as a parameter using the strategy's implementation.- Specified by:
personalizeList
in interfacePersonalizationStrategy
- Parameters:
profile
- the profile to use for the personalizationsession
- the session to use for the personalizationpersonalizationRequest
- the request contains the contents to personalizes as well as the parameters for the strategy (options)- Returns:
- the personalization result that contains the list of content IDs resulting from the filtering/re-ordering
-
-