Package org.apache.unomi.services.sorts
Class ControlGroupPersonalizationStrategy
- java.lang.Object
-
- org.apache.unomi.services.sorts.ControlGroupPersonalizationStrategy
-
- All Implemented Interfaces:
PersonalizationStrategy
public class ControlGroupPersonalizationStrategy extends Object implements 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 Modifier and Type Field Description static String
CONTROL_GROUP_CONFIG
static String
CONTROL_GROUP_CONFIG_PERCENTAGE
static String
CONTROL_GROUP_CONFIG_STORE_IN_SESSION
static String
PERSONALIZATION_STRATEGY_STATUS
static String
PERSONALIZATION_STRATEGY_STATUS_DATE
static String
PERSONALIZATION_STRATEGY_STATUS_ID
static String
PERSONALIZATION_STRATEGY_STATUS_IN_CTRL_GROUP
-
Constructor Summary
Constructors Constructor Description ControlGroupPersonalizationStrategy()
-
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.
-
-
-
Field Detail
-
PERSONALIZATION_STRATEGY_STATUS
public static final String PERSONALIZATION_STRATEGY_STATUS
- See Also:
- Constant Field Values
-
PERSONALIZATION_STRATEGY_STATUS_ID
public static final String PERSONALIZATION_STRATEGY_STATUS_ID
- See Also:
- Constant Field Values
-
PERSONALIZATION_STRATEGY_STATUS_IN_CTRL_GROUP
public static final String PERSONALIZATION_STRATEGY_STATUS_IN_CTRL_GROUP
- See Also:
- Constant Field Values
-
PERSONALIZATION_STRATEGY_STATUS_DATE
public static final String PERSONALIZATION_STRATEGY_STATUS_DATE
- See Also:
- Constant Field Values
-
CONTROL_GROUP_CONFIG_STORE_IN_SESSION
public static final String CONTROL_GROUP_CONFIG_STORE_IN_SESSION
- See Also:
- Constant Field Values
-
CONTROL_GROUP_CONFIG_PERCENTAGE
public static final String CONTROL_GROUP_CONFIG_PERCENTAGE
- See Also:
- Constant Field Values
-
CONTROL_GROUP_CONFIG
public static final String CONTROL_GROUP_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-