Package org.apache.unomi.services.sorts
Class ControlGroupPersonalizationStrategy
java.lang.Object
org.apache.unomi.services.sorts.ControlGroupPersonalizationStrategy
- All Implemented Interfaces:
PersonalizationStrategy
System strategy to calculate control group on personalization that would use such configuration
The status is then stored in the current profile/session under: systemProperties.personalizationStrategyStatus
A control group is used with a percentage to decide if the current profile/session should have personalized results or not.
- in case of control group is true: the variants will be return untouched like received and an information will be added to the personalized results to warn the client
- in case of control group is false: we will execute the personalization normally
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpersonalizeList
(Profile profile, Session session, PersonalizationService.PersonalizationRequest personalizationRequest) Filters and personalizes the list of contents passed as a parameter using the strategy's implementation.
-
Field Details
-
PERSONALIZATION_STRATEGY_STATUS
- See Also:
-
PERSONALIZATION_STRATEGY_STATUS_ID
- See Also:
-
PERSONALIZATION_STRATEGY_STATUS_IN_CTRL_GROUP
- See Also:
-
PERSONALIZATION_STRATEGY_STATUS_DATE
- See Also:
-
CONTROL_GROUP_CONFIG_STORE_IN_SESSION
- See Also:
-
CONTROL_GROUP_CONFIG_PERCENTAGE
- See Also:
-
CONTROL_GROUP_CONFIG
- See Also:
-
-
Constructor Details
-
ControlGroupPersonalizationStrategy
public ControlGroupPersonalizationStrategy()
-
-
Method Details
-
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
-