Class ABTestExperiment


  • public class ABTestExperiment
    extends Object
    The A/B test experiment persisted in the database.
    Since:
    14.0.0
    Version:
    $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
    • Constructor Detail

      • ABTestExperiment

        public ABTestExperiment()
    • Method Detail

      • getId

        public String getId()
        Returns the id.
        Returns:
        the id
        Since:
        14.0.0
      • setId

        public void setId​(String id)
        Sets the id.
        Parameters:
        id - the id value to set.
        Since:
        14.0.0
      • getName

        public String getName()
        Returns the name.
        Returns:
        the name
        Since:
        14.0.0
      • setName

        public void setName​(String name)
        Sets the name.
        Parameters:
        name - the name value to set.
        Since:
        14.0.0
      • getDescription

        public String getDescription()
        Returns the description.
        Returns:
        the description
        Since:
        14.0.0
      • setDescription

        public void setDescription​(String description)
        Sets the description.
        Parameters:
        description - the description value to set.
        Since:
        14.0.0
      • getProbability

        public Integer getProbability()
        Returns the probability.
        Returns:
        the probability
        Since:
        14.0.0
      • setProbability

        public void setProbability​(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
      • getVariants

        public 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