org.ops4j.peaberry.util.ldap
Class LdapAttributeFilter

java.lang.Object
  extended by org.ops4j.peaberry.util.ldap.LdapAttributeFilter
All Implemented Interfaces:
AttributeFilter

public final class LdapAttributeFilter
extends Object
implements AttributeFilter

Implementation of LDAP AttributeFilter, uses code from Apache Felix.

Author:
mcculls@gmail.com (Stuart McCulloch)

Constructor Summary
LdapAttributeFilter(String ldapFilter)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean matches(Map<String,?> attributes)
          Tests whether or not this filter matches the given service attributes.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapAttributeFilter

public LdapAttributeFilter(String ldapFilter)
Method Detail

matches

public boolean matches(Map<String,?> attributes)
Description copied from interface: AttributeFilter
Tests whether or not this filter matches the given service attributes.

Specified by:
matches in interface AttributeFilter
Parameters:
attributes - service attributes
Returns:
true if the given attributes match this filter, otherwise false

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.