com.atlassian.crowd.search.ldap
Class BitwiseFilter

java.lang.Object
  extended by org.springframework.ldap.filter.AbstractFilter
      extended by 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

Method Summary
static BitwiseFilter and(String attribute, int mask)
          Factory method
 StringBuffer encode(StringBuffer buff)
           
 boolean equals(Object o)
           
 int hashCode()
           
static BitwiseFilter or(String attribute, int mask)
          Factory method
 
Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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 query
mask - 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 query
mask - 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.