Class LDAPSearchConstraints
java.lang.Object
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPConstraints
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchConstraints
- All Implemented Interfaces:
Serializable
@NotExtensible
@Mutable
@ThreadSafety(level=NOT_THREADSAFE)
public class LDAPSearchConstraints
extends LDAPConstraints
This class provides a data structure which may be used to define a set of
constraints that may be used when processing search operations.
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the
LDAPConnectionOptions class should be used
instead.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new set of search constraints with the default settings.LDAPSearchConstraints(int msLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, LDAPRebind rebindProc, int hopLimit) Creates a new set of search constraints with the specified information.LDAPSearchConstraints(int msLimit, int timeLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, LDAPBind bindProc, int hopLimit) Creates a new set of search constraints with the specified information.LDAPSearchConstraints(int msLimit, int timeLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, LDAPRebind rebindProc, int hopLimit) Creates a new set of search constraints with the specified information. -
Method Summary
Modifier and TypeMethodDescriptionCreates a duplicate of this search constraints object.intRetrieves the suggested batch size to use when retrieving results.intRetrieves the alias dereferencing policy that should be used.intRetrieves the maximum number of entries that should be returned for a search.intRetrieves the maximum length of time in seconds that the server should spend processing a search.voidsetBatchSize(int batchSize) Specifies the suggested batch size to use when retrieving results.voidsetDereference(int dereference) Specifies the alias dereferencing policy that should be used.voidsetMaxResults(int maxResults) Specifies the maximum number of entries that should be returned for a search.voidsetServerTimeLimit(int limit) Specifies the maximum length of time in seconds that the server should spend processing a search.toString()Retrieves a string representation of this search constraints object.Methods inherited from class com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPConstraints
getBindProc, getClientControls, getHopLimit, getRebindProc, getReferrals, getServerControls, getTimeLimit, setBindProc, setClientControls, setClientControls, setHopLimit, setRebindProc, setReferrals, setServerControls, setServerControls, setTimeLimit
-
Constructor Details
-
LDAPSearchConstraints
public LDAPSearchConstraints()Creates a new set of search constraints with the default settings. -
LDAPSearchConstraints
public LDAPSearchConstraints(int msLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, @Nullable LDAPRebind rebindProc, int hopLimit) Creates a new set of search constraints with the specified information.- Parameters:
msLimit- The maximum length of time in milliseconds to spend waiting for the response.dereference- The policy to use when dereferencing aliases.maxResults- The maximum number of entries to return from the server.doReferrals- Indicates whether to follow referrals.batchSize- The batch size to use when retrieving results.rebindProc- The object to use to obtain information for authenticating the connection for use when following referrals.hopLimit- The maximum number of hops to take when following referrals.
-
LDAPSearchConstraints
public LDAPSearchConstraints(int msLimit, int timeLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, @Nullable LDAPRebind rebindProc, int hopLimit) Creates a new set of search constraints with the specified information.- Parameters:
msLimit- The maximum length of time in milliseconds to spend waiting for the response.timeLimit- The maximum length of time in seconds the server should spend processing the request.dereference- The policy to use when dereferencing aliases.maxResults- The maximum number of entries to return from the server.doReferrals- Indicates whether to follow referrals.batchSize- The batch size to use when retrieving results.rebindProc- The object to use to obtain information for authenticating the connection for use when following referrals.hopLimit- The maximum number of hops to take when following referrals.
-
LDAPSearchConstraints
public LDAPSearchConstraints(int msLimit, int timeLimit, int dereference, int maxResults, boolean doReferrals, int batchSize, @Nullable LDAPBind bindProc, int hopLimit) Creates a new set of search constraints with the specified information.- Parameters:
msLimit- The maximum length of time in milliseconds to spend waiting for the response.timeLimit- The maximum length of time in seconds the server should spend processing the request.dereference- The policy to use when dereferencing aliases.maxResults- The maximum number of entries to return from the server.doReferrals- Indicates whether to follow referrals.batchSize- The batch size to use when retrieving results.bindProc- The object to use to obtain authenticating the connection for use when following referrals.hopLimit- The maximum number of hops to take when following referrals.
-
-
Method Details
-
getBatchSize
Retrieves the suggested batch size to use when retrieving results.- Returns:
- The suggested batch size to use when retrieving results.
-
setBatchSize
Specifies the suggested batch size to use when retrieving results.- Parameters:
batchSize- The suggested batch size to use when retrieving results.
-
getDereference
Retrieves the alias dereferencing policy that should be used.- Returns:
- The alias dereferencing policy that should be used.
-
setDereference
Specifies the alias dereferencing policy that should be used.- Parameters:
dereference- The alias dereferencing policy that should be used.
-
getMaxResults
Retrieves the maximum number of entries that should be returned for a search.- Returns:
- The maximum number of entries that should be returned for a search.
-
setMaxResults
Specifies the maximum number of entries that should be returned for a search.- Parameters:
maxResults- The maximum number of entries that should be returned for a search.
-
getServerTimeLimit
Retrieves the maximum length of time in seconds that the server should spend processing a search.- Returns:
- The maximum length of time in seconds that the server should spend processing a search.
-
setServerTimeLimit
Specifies the maximum length of time in seconds that the server should spend processing a search.- Parameters:
limit- The maximum length of time in seconds that the server should spend processing a search.
-
duplicate
Creates a duplicate of this search constraints object.- Overrides:
duplicatein classLDAPConstraints- Returns:
- A duplicate of this search constraints object.
-
toString
Retrieves a string representation of this search constraints object.- Overrides:
toStringin classLDAPConstraints- Returns:
- A string representation of this search constraints object.
-