org.pentaho.platform.plugin.services.security.userrole.ldap.search
Class StaticListLdapSearch
java.lang.Object
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
StaticListLdapSearch
public StaticListLdapSearch()
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()