Class 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 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