public class LdapSearchSettingsImpl extends java.lang.Object implements LdapSearchSettings
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT
Constructor and Description |
---|
LdapSearchSettingsImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getDelay()
Returns the delay before the search.
|
int |
getMaxResults()
Returns the maximum number of results to fetch from the
directory when performing the search query.
|
LdapConstants.Scope |
getScope()
Returns the custom search scope.
|
boolean |
isDelaySet()
If delay has been configured.
|
boolean |
isMaxResultsSet()
If results set has reach maximum number.
|
boolean |
isScopeSet()
If scope has been set.
|
void |
setDelay(int delay)
Sets a delay before performing the "real" search.
|
void |
setMaxResults(int maxResults)
Sets the maximum number of results to fetch from the
directory when performing the search query.
|
void |
setScope(LdapConstants.Scope scope)
Sets a custom search scope.
|
public boolean isMaxResultsSet()
LdapSearchSettings
isMaxResultsSet
in interface LdapSearchSettings
public void setMaxResults(int maxResults)
setMaxResults
in interface LdapSearchSettings
maxResults
- the maximum number of resultspublic int getMaxResults()
getMaxResults
in interface LdapSearchSettings
public boolean isScopeSet()
LdapSearchSettings
isScopeSet
in interface LdapSearchSettings
public void setScope(LdapConstants.Scope scope)
LdapSearchSettings
setScope
in interface LdapSearchSettings
scope
- a custom search scopepublic LdapConstants.Scope getScope()
LdapSearchSettings
getScope
in interface LdapSearchSettings
public boolean isDelaySet()
LdapSearchSettings
isDelaySet
in interface LdapSearchSettings
public void setDelay(int delay)
LdapSearchSettings
setDelay
in interface LdapSearchSettings
delay
- a delay before the actual searchpublic int getDelay()
LdapSearchSettings
getDelay
in interface LdapSearchSettings
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.