|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchOperation
This interface defines an operation used to search for entries in the Directory Server.
Field Summary |
---|
Fields inherited from interface org.opends.server.types.Operation |
---|
LOCALBACKENDOPERATIONS |
Method Summary | |
---|---|
java.util.LinkedHashSet<java.lang.String> |
getAttributes()
Retrieves the set of requested attributes for this search operation. |
DN |
getBaseDN()
Retrieves the base DN for this search operation. |
DereferencePolicy |
getDerefPolicy()
Retrieves the alias dereferencing policy for this search operation. |
int |
getEntriesSent()
Retrieves the number of entries sent to the client for this search operation. |
SearchFilter |
getFilter()
Retrieves the filter for this search operation. |
MatchedValuesControl |
getMatchedValuesControl()
The matched values control associated with this search operation. |
PersistentSearch |
getPersistentSearch()
Get the psearch from the search operation. |
DN |
getProxiedAuthorizationDN()
Retrieves the proxied authorization DN for this operation if proxied authorization has been requested. |
ByteString |
getRawBaseDN()
Retrieves the raw, unprocessed base DN as included in the request from the client. |
RawFilter |
getRawFilter()
Retrieves the raw, unprocessed search filter as included in the request from the client. |
int |
getReferencesSent()
Retrieves the number of search references sent to the client for this search operation. |
SearchScope |
getScope()
Retrieves the scope for this search operation. |
int |
getSizeLimit()
Retrieves the size limit for this search operation. |
int |
getTimeLimit()
Retrieves the time limit for this search operation. |
java.lang.Long |
getTimeLimitExpiration()
Get the time after which the search time limit has expired. |
boolean |
getTypesOnly()
Retrieves the typesOnly flag for this search operation. |
void |
incrementEntriesSent()
Increments by 1 the number of entries sent to the client for this search operation. |
void |
incrementReferencesSent()
Increments by 1 the number of search references sent to the client for this search operation. |
boolean |
isClientAcceptsReferrals()
Indicates whether the client is able to handle referrals. |
boolean |
isIncludeUsableControl()
Indicates whether to include the account usable response control with search result entries or not. |
boolean |
isRealAttributesOnly()
Returns true if only real attributes should be returned. |
boolean |
isReturnLDAPSubentries()
Indicates whether LDAP subentries should be returned or not. |
boolean |
isSendResponse()
Indicates wether the search result done message has to be sent to the client, or not. |
boolean |
isVirtualAttributesOnly()
Returns true if only virtual attributes should be returned. |
boolean |
returnEntry(Entry entry,
java.util.List<Control> controls)
Used as a callback for backends to indicate that the provided entry matches the search criteria and that additional processing should be performed to potentially send it back to the client. |
boolean |
returnReference(DN dn,
SearchResultReference reference)
Used as a callback for backends to indicate that the provided search reference was encountered during processing and that additional processing should be performed to potentially send it back to the client. |
void |
sendSearchEntry(SearchResultEntry entry)
Sends the provided search result entry to the client. |
boolean |
sendSearchReference(SearchResultReference reference)
Sends the provided search result reference to the client. |
void |
sendSearchResultDone()
Sends the search result done message to the client. |
void |
setAttributes(java.util.LinkedHashSet<java.lang.String> attributes)
Specifies the set of requested attributes for this search operation. |
void |
setBaseDN(DN baseDN)
Specifies the base DN for this search operation. |
void |
setClientAcceptsReferrals(boolean clientAcceptReferrals)
Specify whether the client is able to handle referrals. |
void |
setDerefPolicy(DereferencePolicy derefPolicy)
Specifies the alias dereferencing policy for this search operation. |
void |
setIncludeUsableControl(boolean includeUsableControl)
Specify whether to include the account usable response control within the search result entries. |
void |
setMatchedValuesControl(MatchedValuesControl controls)
Set the match values control. |
void |
setPersistentSearch(PersistentSearch psearch)
Register the psearch in the search operation. |
void |
setProxiedAuthorizationDN(DN proxiedAuthorizationDN)
Set the proxied authorization DN for this operation if proxied authorization has been requested. |
void |
setRawBaseDN(ByteString rawBaseDN)
Specifies the raw, unprocessed base DN as included in the request from the client. |
void |
setRawFilter(RawFilter rawFilter)
Specifies the raw, unprocessed search filter as included in the request from the client. |
void |
setRealAttributesOnly(boolean realAttributesOnly)
Specify wether to only return real attributes. |
void |
setReturnLDAPSubentries(boolean returnLDAPSubentries)
Set the flag indicating wether the LDAP subentries should be returned. |
void |
setScope(SearchScope scope)
Specifies the scope for this search operation. |
void |
setSendResponse(boolean sendResponse)
Specify wether the search result done message has to be sent to the client, or not. |
void |
setSizeLimit(int sizeLimit)
Specifies the size limit for this search operation. |
void |
setTimeLimit(int timeLimit)
Specifies the time limit for this search operation. |
void |
setTimeLimitExpiration(java.lang.Long timeLimitExpiration)
Set the time after which the search time limit has expired. |
void |
setTypesOnly(boolean typesOnly)
Specifies the typesOnly flag for this search operation. |
void |
setVirtualAttributesOnly(boolean virtualAttributesOnly)
Specify wether to only return virtual attributes. |
Method Detail |
---|
ByteString getRawBaseDN()
void setRawBaseDN(ByteString rawBaseDN)
rawBaseDN
- The raw, unprocessed base DN as included in the request
from the client.DN getBaseDN()
getRawBaseDN
method.
null
if the
raw base DN has not yet been processed.void setBaseDN(DN baseDN)
baseDN
- The base DN for this search operation.SearchScope getScope()
void setScope(SearchScope scope)
scope
- The scope for this search operation.DereferencePolicy getDerefPolicy()
void setDerefPolicy(DereferencePolicy derefPolicy)
derefPolicy
- The alias dereferencing policy for this search
operation.int getSizeLimit()
void setSizeLimit(int sizeLimit)
sizeLimit
- The size limit for this search operation.int getTimeLimit()
java.lang.Long getTimeLimitExpiration()
void setTimeLimit(int timeLimit)
timeLimit
- The time limit for this search operation.boolean getTypesOnly()
void setTypesOnly(boolean typesOnly)
typesOnly
- The typesOnly flag for this search operation.RawFilter getRawFilter()
void setRawFilter(RawFilter rawFilter)
rawFilter
- The raw, unprocessed search filter as included in the
request from the client.SearchFilter getFilter()
null
if the
raw filter has not yet been processed.java.util.LinkedHashSet<java.lang.String> getAttributes()
void setAttributes(java.util.LinkedHashSet<java.lang.String> attributes)
attributes
- The set of requested attributes for this search
operation.int getEntriesSent()
int getReferencesSent()
boolean returnEntry(Entry entry, java.util.List<Control> controls)
entry
- The entry that matches the search criteria and should be
sent to the client.controls
- The set of controls to include with the entry (may be
null
if none are needed).
true
if the caller should continue processing the
search request and sending additional entries and references, or
false
if not for some reason (e.g., the size limit
has been reached or the search has been abandoned).boolean returnReference(DN dn, SearchResultReference reference)
reference
- The search reference to send to the client.dn
- The DN related to the specified search reference.
true
if the caller should continue processing the
search request and sending additional entries and references , or
false
if not for some reason (e.g., the size limit
has been reached or the search has been abandoned).void sendSearchResultDone()
void setTimeLimitExpiration(java.lang.Long timeLimitExpiration)
timeLimitExpiration
- - Time after which the search has expiredboolean isReturnLDAPSubentries()
void setReturnLDAPSubentries(boolean returnLDAPSubentries)
returnLDAPSubentries
- - Boolean indicating wether the LDAP
subentries should be returned or notMatchedValuesControl getMatchedValuesControl()
void setMatchedValuesControl(MatchedValuesControl controls)
controls
- - The matched values controlboolean isIncludeUsableControl()
void setIncludeUsableControl(boolean includeUsableControl)
includeUsableControl
- - True if the account usable response control
has to be included within the search result
entries, false otherwisevoid setPersistentSearch(PersistentSearch psearch)
psearch
- - Persistent search associated to that operationPersistentSearch getPersistentSearch()
boolean isClientAcceptsReferrals()
void setClientAcceptsReferrals(boolean clientAcceptReferrals)
clientAcceptReferrals
- - Boolean set to true if the client
can handle referralsvoid incrementEntriesSent()
void incrementReferencesSent()
boolean isSendResponse()
void setSendResponse(boolean sendResponse)
sendResponse
- - boolean indicating wether the search result done
message is to send to the clientboolean isRealAttributesOnly()
void setRealAttributesOnly(boolean realAttributesOnly)
realAttributesOnly
- - boolean setup to true, if only the real
attributes should be returnedboolean isVirtualAttributesOnly()
void setVirtualAttributesOnly(boolean virtualAttributesOnly)
virtualAttributesOnly
- - boolean setup to true, if only the virtual
attributes should be returnedvoid sendSearchEntry(SearchResultEntry entry) throws DirectoryException
entry
- The search result entry to be sent to
the client.
DirectoryException
- If a problem occurs while attempting
to send the entry to the client and
the search should be terminated.boolean sendSearchReference(SearchResultReference reference) throws DirectoryException
reference
- The search result reference to be sent
to the client.
true
if the client is able to accept
referrals, or false
if the client cannot
handle referrals and no more attempts should be made to
send them for the associated search operation.
DirectoryException
- If a problem occurs while attempting
to send the reference to the client
and the search should be terminated.DN getProxiedAuthorizationDN()
null
if proxied
authorization has not been requested.void setProxiedAuthorizationDN(DN proxiedAuthorizationDN)
proxiedAuthorizationDN
- The proxied authorization DN for this operation if proxied
authorization has been requested, or null
if proxied
authorization has not been requested.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |