Class ABTestExperiment


  • public class ABTestExperiment
    extends java.lang.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 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
      • 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