org.pentaho.platform.plugin.services.security.userrole.ldap.search
Class UnionizingLdapSearch

java.lang.Object
  extended by org.pentaho.platform.plugin.services.security.userrole.ldap.search.UnionizingLdapSearch
All Implemented Interfaces:
LdapSearch, org.springframework.beans.factory.InitializingBean

public class UnionizingLdapSearch
extends Object
implements LdapSearch, org.springframework.beans.factory.InitializingBean

Iterates over LdapSearch instances in searches and unions the results.

Author:
mlowery

Constructor Summary
UnionizingLdapSearch()
           
UnionizingLdapSearch(Set searches)
           
 
Method Summary
 void afterPropertiesSet()
           
 List search(Object[] filterArgs)
          Executes a search against a directory context using the given filter arguments.
 void setSearches(Set searches)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionizingLdapSearch

public UnionizingLdapSearch()

UnionizingLdapSearch

public UnionizingLdapSearch(Set searches)
Method Detail

search

public List search(Object[] filterArgs)
Description copied from interface: LdapSearch
Executes a search against a directory context using the given filter arguments.

Specified by:
search in interface LdapSearch
Parameters:
filterArgs - the filter arguments
Returns:
the result set as a list

setSearches

public void setSearches(Set searches)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception