Interface PersonalizationModel

  • All Superinterfaces:
    PersonalizationItem, Wrapper

    public interface PersonalizationModel
    extends PersonalizationItem
    Expression, composed by a number of PersonalizationExpression objects, which can be applied to the session xml on the frontend.
    Author:
    arjans
    • Method Detail

      • getOperator

        PersonalizationModel.Operator getOperator()
        Returns the Operator used by this PersonalizationModel to links its PersonalizationExpression objects by.
        Returns:
        The Operator used by this PersonalizationModel to links its PersonalizationExpression objects by.
      • isUsingNotOperator

        boolean isUsingNotOperator()
        Returns true if the not operator should be applied to the result of the PersonalizationModel.
        Returns:
        True if the not operator should be applied to the result of the PersonalizationModel.
      • getExpressions

        PersonalizationExpression[] getExpressions()
        Returns an array containing all PersonalizationExpression objects contained by this PersonalizationModel.
        Returns:
        An array containing all PersonalizationExpression objects contained by this PersonalizationModel.
      • getModels

        PersonalizationModel[] getModels()
        Returns an array containing all PersonalizationModel objects contained by this PersonalizationModel.
        Returns:
        An array containing all PersonalizationModel objects contained by this PersonalizationModel.
      • getPersonalizationItems

        PersonalizationItem[] getPersonalizationItems()
        Returns all personalization items that are contained by this personalization model. Personalization items consists of all personalization expressions and models.
        Returns:
        All personalization items.
      • setOperator

        void setOperator​(PersonalizationModel.Operator operator)
        Sets the logical operator for the personalization model. Used to join all the assigned personalization items in one big XPATH expression.
        Parameters:
        operator - The new operator for this personalization model.
      • setUsingNotOperator

        void setUsingNotOperator​(boolean isUsingNotOperator)
        Sets the logical negation flag for the personalization model. Used to flip the boolean result of executing the combined XPATH expression.
        Parameters:
        isUsingNotOperator - Set to true to flip the result of executing the combined XPATH expression.