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

java.lang.Object
  extended by org.pentaho.platform.plugin.services.security.userrole.ldap.search.NoOpLdapSearch
All Implemented Interfaces:
LdapSearch

public class NoOpLdapSearch
extends Object
implements LdapSearch

Immediately returns an empty list without connecting to a server.

This is useful when you do not wish to implement one of the searches of DefaultLdapUserRoleLIstService--most often the all usernames search.

Author:
mlowery

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

Constructor Detail

NoOpLdapSearch

public NoOpLdapSearch()
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