org.jvnet.hk2.component.matcher
Class SimpleLdapMatcher

java.lang.Object
  extended by org.jvnet.hk2.component.matcher.SimpleLdapMatcher

public class SimpleLdapMatcher
extends Object

This thing filters things based on the input LDAP style string. Note that this is restricted LDAP, in that it only handles "&".


Method Summary
static SimpleLdapMatcher create(Map<String,Object> props)
           
static SimpleLdapMatcher create(String ldapFilter)
           
static SimpleLdapMatcher createClassFilter(String clazzName)
           
 String getLdapExpression()
           
protected  boolean getTheAndSetFor(Set<String> result, String propName, boolean removeIt, org.jvnet.hk2.component.matcher.SimpleLdapMatcher.Node node)
           
 Set<String> getTheAndSetFor(String propName, boolean removeIt)
           
 boolean matches(Map<String,Set<String>> toMatch)
           
 boolean matches(MultiMap<String,String> properties)
          An or-type match checker
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static SimpleLdapMatcher create(String ldapFilter)

create

public static SimpleLdapMatcher create(Map<String,Object> props)

createClassFilter

public static SimpleLdapMatcher createClassFilter(String clazzName)

matches

public boolean matches(MultiMap<String,String> properties)
An or-type match checker

Parameters:
properties -
Returns:

matches

public boolean matches(Map<String,Set<String>> toMatch)

getTheAndSetFor

public Set<String> getTheAndSetFor(String propName,
                                   boolean removeIt)

getTheAndSetFor

protected boolean getTheAndSetFor(Set<String> result,
                                  String propName,
                                  boolean removeIt,
                                  org.jvnet.hk2.component.matcher.SimpleLdapMatcher.Node node)

toString

public String toString()
Overrides:
toString in class Object

getLdapExpression

public String getLdapExpression()


Copyright © 2011 Oracle Corporation. All Rights Reserved.