Package org.springframework.ldap.filter
Class AndFilter
- java.lang.Object
-
- org.springframework.ldap.filter.AbstractFilter
-
- org.springframework.ldap.filter.BinaryLogicalFilter
-
- org.springframework.ldap.filter.AndFilter
-
- All Implemented Interfaces:
Filter
public class AndFilter extends BinaryLogicalFilter
A filter for a logical AND. Example:AndFilter filter = new AndFilter(); filter.and(new EqualsFilter("objectclass", "person"); filter.and(new EqualsFilter("cn", "Some CN"); System.out.println(filter.encode());would result in:(&(objectclass=person)(cn=Some CN))- See Also:
EqualsFilter
-
-
Constructor Summary
Constructors Constructor Description AndFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AndFilterand(Filter query)Add a query to the AND expression.protected java.lang.StringgetLogicalOperator()Implement this in subclass to return the logical operator, for example "&".-
Methods inherited from class org.springframework.ldap.filter.BinaryLogicalFilter
append, appendAll, encode, equals, hashCode
-
Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
-
-
-
-
Method Detail
-
getLogicalOperator
protected java.lang.String getLogicalOperator()
Description copied from class:BinaryLogicalFilterImplement this in subclass to return the logical operator, for example "&".- Specified by:
getLogicalOperatorin classBinaryLogicalFilter- Returns:
- the logical operator.
-
-