Class Filter.AttributeExpression

Object
se.curity.identityserver.sdk.data.query.Filter
se.curity.identityserver.sdk.data.query.Filter.AttributeExpression
Enclosing class:
Filter

public static class Filter.AttributeExpression extends Filter
An attribute expression represents a comparison between a named attribute and a given value using some mechanism defined by a given operator.
  • Constructor Details

    • AttributeExpression

      public AttributeExpression(Filter.AttributeOperator operator, String attributeName)
      This a convenience constructor and is equal to calling new AttributeExpression(operator, attributeName, null).
      Parameters:
      operator - the Filter.AttributeOperator defining the comparison mechanism to use
      attributeName - the name of the attribute to compare
    • AttributeExpression

      public AttributeExpression(Filter.AttributeOperator operator, String attributeName, @Nullable Object value)
      Constructs an Filter.AttributeExpression used for comparing a named attribute against a specified value using a mechanism described by a specified operator.
      Parameters:
      operator - the Filter.AttributeOperator defining the comparison mechanism to use
      attributeName - the name of the attribute to compare
      value - the value to compare the attribute against
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Returns the name of the attribute to compare.
      Returns:
      the name of the attribute to compare
    • getOperator

      public Filter.AttributeOperator getOperator()
      Returns the operator representing the mechanism that is used to compare the named attribute against the specified value.
      Returns:
      the Filter.AttributeOperator representing the comparison mechanism to use
    • getValue

      @Nullable public @Nullable Object getValue()
      Returns the value this expression compares the named attribute against.
      Returns:
      the value to compare the attribute against
    • toString

      public String toString()
      Overrides:
      toString in class Object