Class AndCondition

java.lang.Object
org.keycloak.storage.ldap.idm.query.internal.AndCondition
All Implemented Interfaces:
Condition

public class AndCondition extends Object implements Condition

And condition for filters.

Author:
rmartinc
  • Constructor Details

    • AndCondition

      public AndCondition(Condition... innerConditions)
  • Method Details

    • getParameterName

      public String getParameterName()
      Specified by:
      getParameterName in interface Condition
    • setParameterName

      public void setParameterName(String parameterName)
      Specified by:
      setParameterName in interface Condition
    • updateParameterName

      public void updateParameterName(String modelParamName, String ldapParamName)
      Description copied from interface: Condition
      Will change the parameter name if it is "modelParamName" to "ldapParamName" . Implementation can apply this to subconditions as well. It is used to update LDAP queries, which were created with model parameter name ( for example "firstName" ) and rewrite them to use real LDAP mapped attribute (for example "givenName" )
      Specified by:
      updateParameterName in interface Condition
    • applyCondition

      public void applyCondition(StringBuilder filter)
      Specified by:
      applyCondition in interface Condition
    • setBinary

      public void setBinary(boolean binary)
      Specified by:
      setBinary in interface Condition
    • isBinary

      public boolean isBinary()
      Specified by:
      isBinary in interface Condition