Class UserExpression

    • Constructor Detail

      • UserExpression

        public UserExpression​(String metadata,
                              Expression.Operator operator,
                              String value)
        Creates the comparison Expression.
        Parameters:
        metadata - the metadata path
        operator - the operator to make the comparison
        value - the user identity as login#population.
      • UserExpression

        public UserExpression​(String metadata,
                              Expression.Operator operator,
                              String value,
                              boolean unversioned)
        Creates the comparison Expression.
        Parameters:
        metadata - the metadata path
        operator - the operator to make the comparison
        value - the user identity as login#population.
        unversioned - true if the metadata is unversioned, false otherwise.
      • UserExpression

        public UserExpression​(String metadata,
                              Expression.Operator operator,
                              UserIdentity userIdentity)
        Creates the comparison Expression.
        Parameters:
        metadata - the metadata path
        operator - the operator to make the comparison
        userIdentity - the user identity (login and population)
      • UserExpression

        public UserExpression​(String metadata,
                              Expression.Operator operator,
                              UserIdentity userIdentity,
                              boolean unversioned)
        Creates the comparison Expression.
        Parameters:
        metadata - the metadata path
        operator - the operator to make the comparison
        userIdentity - the user identity (login and population)
        unversioned - true if the metadata is unversioned, false otherwise.
    • Method Detail

      • build

        public String build()
        Description copied from interface: Expression
        Build the expression.
        Specified by:
        build in interface Expression
        Returns:
        The XPath view of the expression.