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

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

public class StaticListLdapSearch
extends Object
implements LdapSearch

Returns the list configured via the staticList property. (Makes no connection to a directory.) One way to use this class would be to use it along with UnionizingLdapSearch to return a list of additional roles or usernames. This is useful when you want to use the Admin Permissions interface to assign ACLs but the role or username that you wish to use is not actually present in the directory (e.g. Anonymous).

Author:
mlowery

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

Constructor Detail

StaticListLdapSearch

public StaticListLdapSearch()
Method Detail

search

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

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

setStaticList

public void setStaticList(List staticList)

getStaticList

public List getStaticList()