This class encapsultes factors that determine scope of search
and what gets returned as a result of the search.
Constructor
SearchControls(flags...)
Creates search controller.
| Parameters |
flags -
Zero or more of following expressions:
"scope" => typeOfScope
- OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE
"countlimit" => limit
- Max number of entries to return
"timelimit" => limit
- Timelimit, in milliseconds
"attributes" => sequence
- Sequence of names of attributes to return
"returnobject" => flag
- Should the objects be returned as part of result
"dereflinks" => flag
- Should the links be dereference during the search
"returnobject"
- Same as
"returnObject" => true
"dereflinks"
- Same as
"dereflinks" => true
sequence
- Sequence of name of attributes to return
|
Methods
Retrieves the maximum number of entries that will be returned as a result of the search.
Determines whether links will be dereferenced during the search.
Retrieves the attributes that will be returned as part of the search.
Determines whether objects will be returned as part of the result.
Returns the scope of search.
Retrieves the time limit of these Controls in milliseconds.
Sets the maximum number of entries to be returned as
a result of search.
Enables/disables link dereferencing during the search.
Specifies the attributes that will be returned as part of the search.
null indicates that all attributes will be returned.
An empty sequence indicates no attributes are returned.
Enables/disables returning objects returned as part of the result.
Sets the search scope.
| Parameters |
scope -
One of OBJECT_SCOPE, ONLEVEL_SCOPE, SUBTREE_SCOPE
|
Sets the time limit for searches.
| Parameters |
limit -
Limit, in milliseconds
|