Class ABTestExperiment
- java.lang.Object
-
- lumis.service.analytics.abtest.bean.ABTestExperiment
-
public class ABTestExperiment extends java.lang.Object
The A/B test experiment persisted in the database.- Since:
- 14.0.0
- Version:
- $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ABTestExperiment.SuccessType
The success type of the experiment.
-
Constructor Summary
Constructors Constructor Description ABTestExperiment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentVersion
getContentVersion()
Returns the contentVersion.java.lang.String
getCustomSuccessScript()
Returns the customSuccessScript.java.lang.String
getDescription()
Returns the description.java.lang.String
getId()
Returns the id.java.lang.String
getName()
Returns the name.java.lang.Integer
getProbability()
Returns the probability.java.lang.String
getRelatedContentLocaleId()
Returns the related content locale identifier.ABTestExperiment.SuccessType
getSuccessType()
Returns the successType.java.util.Collection<ABTestExperimentVariant>
getVariants()
Returns The list of variants of this experiment.boolean
isContentExperiment()
Returns whether this is a content experiment.boolean
isEnabled()
Returns whether this experiment is enabled.void
setContentExperiment(boolean isContentExperiment)
Sets whether this is a content experiment.void
setContentVersion(ContentVersion contentVersion)
Sets the contentVersion.void
setCustomSuccessScript(java.lang.String customSuccessScript)
Sets the customSuccessScript.void
setDescription(java.lang.String description)
Sets the description.void
setEnabled(boolean enabled)
Sets whether this experiment is enabled.void
setId(java.lang.String id)
Sets the id.void
setName(java.lang.String name)
Sets the name.void
setProbability(java.lang.Integer probability)
Sets the probability.void
setRelatedContentLocaleId(java.lang.String relatedContentLocaleId)
Sets the related content locale identifier.void
setSuccessType(ABTestExperiment.SuccessType successType)
Sets the successType.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the id.- Returns:
- the id
- Since:
- 14.0.0
-
setId
public void setId(java.lang.String id)
Sets the id.- Parameters:
id
- the id value to set.- Since:
- 14.0.0
-
getName
public java.lang.String getName()
Returns the name.- Returns:
- the name
- Since:
- 14.0.0
-
setName
public void setName(java.lang.String name)
Sets the name.- Parameters:
name
- the name value to set.- Since:
- 14.0.0
-
getDescription
public java.lang.String getDescription()
Returns the description.- Returns:
- the description
- Since:
- 14.0.0
-
setDescription
public void setDescription(java.lang.String description)
Sets the description.- Parameters:
description
- the description value to set.- Since:
- 14.0.0
-
getProbability
public java.lang.Integer getProbability()
Returns the probability.- Returns:
- the probability
- Since:
- 14.0.0
-
setProbability
public void setProbability(java.lang.Integer probability)
Sets the probability.- Parameters:
probability
- the probability value to set.- Since:
- 14.0.0
-
getContentVersion
public ContentVersion getContentVersion()
Returns the contentVersion.- Returns:
- the contentVersion
- Since:
- 14.0.0
-
setContentVersion
public void setContentVersion(ContentVersion contentVersion)
Sets the contentVersion.- Parameters:
contentVersion
- the contentVersion value to set.- Since:
- 14.0.0
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether this experiment is enabled.- Parameters:
enabled
- whether this experiment is enabled.- Since:
- 16.0.0
-
isEnabled
public boolean isEnabled()
Returns whether this experiment is enabled.- Returns:
- whether this experiment is enabled.
- Since:
- 16.0.0
-
getRelatedContentLocaleId
public java.lang.String getRelatedContentLocaleId()
Returns the related content locale identifier.- Returns:
- the related content locale identifier
- Since:
- 16.0.0
-
setRelatedContentLocaleId
public void setRelatedContentLocaleId(java.lang.String relatedContentLocaleId)
Sets the related content locale identifier.- Parameters:
relatedContentLocaleId
- the related content locale identifier- Since:
- 16.0.0
-
getSuccessType
public ABTestExperiment.SuccessType getSuccessType()
Returns the successType.- Returns:
- the successType
- Since:
- 16.0.0
-
setSuccessType
public void setSuccessType(ABTestExperiment.SuccessType successType)
Sets the successType.- Parameters:
successType
- the successType value to set.- Since:
- 16.0.0
-
isContentExperiment
public boolean isContentExperiment()
Returns whether this is a content experiment.- Returns:
- .
- Since:
- 16.0.0
-
setContentExperiment
public void setContentExperiment(boolean isContentExperiment)
Sets whether this is a content experiment.- Since:
- 16.0.0
-
getCustomSuccessScript
public java.lang.String getCustomSuccessScript()
Returns the customSuccessScript.- Returns:
- the customSuccessScript
- Since:
- 16.0.0
-
setCustomSuccessScript
public void setCustomSuccessScript(java.lang.String customSuccessScript)
Sets the customSuccessScript.- Parameters:
customSuccessScript
- the customSuccessScript value to set.- Since:
- 16.0.0
-
getVariants
public java.util.Collection<ABTestExperimentVariant> getVariants()
Returns The list of variants of this experiment. This will only return valid variant, with probability greater than 0 and in ascending ordering by the same column.- Returns:
- The list of variants of this experiment.
- Since:
- 14.0.0
-
-