com.atlassian.crowd.search.ldap
Class BitwiseFilter
java.lang.Object
org.springframework.ldap.filter.AbstractFilter
com.atlassian.crowd.search.ldap.BitwiseFilter
- All Implemented Interfaces:
- org.springframework.ldap.filter.Filter
public class BitwiseFilter
- extends org.springframework.ldap.filter.AbstractFilter
Implements a bitwise filter for Active Directory attributes. See http://support.microsoft.com/kb/269181
- Since:
- v2.7
| Methods inherited from class org.springframework.ldap.filter.AbstractFilter |
encode, toString |
encode
public StringBuffer encode(StringBuffer buff)
- Specified by:
encode in interface org.springframework.ldap.filter.Filter- Specified by:
encode in class org.springframework.ldap.filter.AbstractFilter
equals
public boolean equals(Object o)
- Specified by:
equals in interface org.springframework.ldap.filter.Filter- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface org.springframework.ldap.filter.Filter- Overrides:
hashCode in class Object
and
public static BitwiseFilter and(String attribute,
int mask)
- Factory method
- Parameters:
attribute - attribute name to querymask - bit mask
- Returns:
- a bitwise filter that will match attribute values that contain all the bits in the mask.
or
public static BitwiseFilter or(String attribute,
int mask)
- Factory method
- Parameters:
attribute - attribute name to querymask - bit mask
- Returns:
- a bitwise filter that will match attribute values that contain any of the bits in the mask.
Copyright © 2014 Atlassian. All Rights Reserved.