Interface PreParseSearchOperation
- All Superinterfaces:
PluginOperation,PreParseOperation
- All Known Implementing Classes:
SearchOperation
This class defines a set of methods that are available for use by pre-parse plugins for search operations. Note that
this interface is intended only to define an API for use by plugins and is not intended to be implemented by any
custom classes.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the set of requested attributes for this search operation.Retrieves the base DN as included in the request from the client.Retrieves the alias dereferencing policy for this search operation.Retrieves the search filter as included in the request from the client.Retrieves the resource limits for this search operation.getScope()Retrieves the scope for this search operation.booleanRetrieves the typesOnly flag for this search operation.booleanreturnEntry(Entry entry, List<Control> controls) Returns the provided entry to the client.booleanreturnReference(Dn dn, SearchResultReference reference) Returns the provided search result reference to the client.voidsetAttributes(Set<String> attributes) Specifies the set of requested attributes for this search operation.voidSpecifies the base DN for this search operation.voidsetDerefPolicy(DereferenceAliasesPolicy derefPolicy) Specifies the alias dereferencing policy for this search operation.voidSpecifies the search filter as included in the request from the client.voidsetScope(SearchScope scope) Specifies the scope for this search operation.voidsetTypesOnly(boolean typesOnly) Specifies the typesOnly flag for this search operation.Methods inherited from interface org.opends.server.types.operation.PluginOperation
checkIfCanceled, getAttachment, getAttachments, getClientConnection, getConnectionID, getMessageID, getOperationID, getRequest, getRequestControl, getRequestControl, getRequestControls, getResponseControls, hasPrivilege, isInternalOperation, isSynchronizationOperation, setAttachment, toString, toStringMethods inherited from interface org.opends.server.types.operation.PreParseOperation
addAdditionalLogItem, addRequestControl, addResponseControl, appendErrorMessage, getAdditionalLogItems, getErrorMessage, removeResponseControl, sendResponses, setErrorMessage
-
Method Details
-
getBaseDN
Dn getBaseDN()Retrieves the base DN as included in the request from the client.- Returns:
- The base DN as included in the request from the client.
-
setBaseDN
Specifies the base DN for this search operation.- Parameters:
baseDN- The base DN for this search operation.
-
getScope
SearchScope getScope()Retrieves the scope for this search operation.- Returns:
- The scope for this search operation.
-
setScope
Specifies the scope for this search operation.- Parameters:
scope- The scope for this search operation.
-
getDerefPolicy
DereferenceAliasesPolicy getDerefPolicy()Retrieves the alias dereferencing policy for this search operation.- Returns:
- The alias dereferencing policy for this search operation.
-
setDerefPolicy
Specifies the alias dereferencing policy for this search operation.- Parameters:
derefPolicy- The alias dereferencing policy for this search operation.
-
getResourceLimits
ResourceLimits getResourceLimits()Retrieves the resource limits for this search operation.- Returns:
- The resource limits for this search operation.
-
getTypesOnly
boolean getTypesOnly()Retrieves the typesOnly flag for this search operation.- Returns:
- The typesOnly flag for this search operation.
-
setTypesOnly
void setTypesOnly(boolean typesOnly) Specifies the typesOnly flag for this search operation.- Parameters:
typesOnly- The typesOnly flag for this search operation.
-
getFilter
Filter getFilter()Retrieves the search filter as included in the request from the client.- Returns:
- The search filter as included in the request from the client.
-
setFilter
Specifies the search filter as included in the request from the client.- Parameters:
filter- The search filter.
-
getAttributes
Retrieves the set of requested attributes for this search operation. Its contents should not be altered.- Returns:
- The set of requested attributes for this search operation.
-
setAttributes
Specifies the set of requested attributes for this search operation.- Parameters:
attributes- The set of requested attributes for this search operation.
-
returnEntry
Returns the provided entry to the client.- Parameters:
entry- The entry that should be returned.controls- The set of controls to include with the entry (may benullif no controls should be included with the entry).- Returns:
trueif the caller should continue processing the search request and sending additional entries and references, orfalseif not for some reason (e.g., the size limit has been reached or the search has been abandoned).
-
returnReference
Returns the provided search result reference to the client.- Parameters:
reference- The search reference that should be returned.dn- A DN related to the specified search reference.- Returns:
trueif the caller should continue processing the search request and sending additional entries and references, orfalseif not for some reason (e.g., the size limit has been reached or the search has been abandoned).
-