org.springframework.ldap.support.filter
Class OrFilter

java.lang.Object
  extended by org.springframework.ldap.support.filter.AbstractFilter
      extended by org.springframework.ldap.support.filter.BinaryLogicalFilter
          extended by org.springframework.ldap.support.filter.OrFilter
All Implemented Interfaces:
Filter

public class OrFilter
extends BinaryLogicalFilter

Filter for logical OR.

        AndFilter filter = new AndFilter();
        filter.or(new EqualsFilter("objectclass", "person");
        filter.or(new EqualsFilter("objectclass", "organizationalUnit");
        System.out.println(filter.ecode());    
 
would result in: (|(objectclass=person)(objectclass=organizationalUnit))

Author:
Adam Skogman, Mattias Arthursson

Field Summary
 
Fields inherited from class org.springframework.ldap.support.filter.BinaryLogicalFilter
queryList
 
Constructor Summary
OrFilter()
           
 
Method Summary
protected  java.lang.String getLogicalOperator()
          Implement this in subclass to return the logical operator, for example &qout;&&qout;.
 OrFilter or(Filter query)
          Add a query to the OR expression
 
Methods inherited from class org.springframework.ldap.support.filter.BinaryLogicalFilter
encode, equals, hashCode
 
Methods inherited from class org.springframework.ldap.support.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrFilter

public OrFilter()
Method Detail

or

public OrFilter or(Filter query)
Add a query to the OR expression

Parameters:
query - The query to or with the rest of the or:ed queries.
Returns:
This LdapOrQuery

getLogicalOperator

protected java.lang.String getLogicalOperator()
Description copied from class: BinaryLogicalFilter
Implement this in subclass to return the logical operator, for example &qout;&&qout;.

Specified by:
getLogicalOperator in class BinaryLogicalFilter
Returns:
the logical operator.


Copyright 2002-2006. All Rights Reserved.