01: package com.pentaho.security.ldap.search;
02:
03: import java.util.Collections;
04: import java.util.List;
05:
06: /**
07: * Immediately returns an empty list without connecting to a server.
08: *
09: * <p>This is useful when you do not wish to implement one of the searches of
10: * <code>DefaultLdapUserRoleLIstService</code>--most often the all usernames search.</p>
11: * @author mlowery
12: */
13: public class NoOpLdapSearch implements LdapSearch {
14:
15: public List search(Object[] filterArgs) {
16: return Collections.EMPTY_LIST;
17: }
18:
19: }
|