public class FilterBasedLdapUserSearch extends Object implements LdapUserSearch
SearchControls
Constructor and Description |
---|
FilterBasedLdapUserSearch(String searchBase,
String searchFilter,
InitialDirContextFactory initialDirContextFactory) |
Modifier and Type | Method and Description |
---|---|
protected LdapUserDetailsMapper |
getUserDetailsMapper() |
LdapUserDetails |
searchForUser(String username)
Return the LdapUserDetails containing the user's information
|
void |
setDerefLinkFlag(boolean deref)
Sets the corresponding property on the
SearchControls instance used in the search. |
void |
setSearchSubtree(boolean searchSubtree)
If true then searches the entire subtree as identified by context, if false (the default) then only
searches the level identified by the context.
|
void |
setSearchTimeLimit(int searchTimeLimit)
The time to wait before the search fails; the default is zero, meaning forever.
|
void |
setUserDetailsMapper(LdapUserDetailsMapper userDetailsMapper) |
String |
toString() |
public FilterBasedLdapUserSearch(String searchBase, String searchFilter, InitialDirContextFactory initialDirContextFactory)
public LdapUserDetails searchForUser(String username)
searchForUser
in interface LdapUserSearch
username
- the username to search for.UsernameNotFoundException
- if no matching entry is found.public void setDerefLinkFlag(boolean deref)
SearchControls
instance used in the search.deref
- the derefLinkFlag value as defined in SearchControls..public void setSearchSubtree(boolean searchSubtree)
searchSubtree
- true the underlying search controls should be set to SearchControls.SUBTREE_SCOPE
rather than SearchControls.ONELEVEL_SCOPE.public void setSearchTimeLimit(int searchTimeLimit)
searchTimeLimit
- the time limit for the search (in milliseconds).protected LdapUserDetailsMapper getUserDetailsMapper()
public void setUserDetailsMapper(LdapUserDetailsMapper userDetailsMapper)
Copyright © 2004–2019 Interface21, Inc. All rights reserved.