public class SearchOperationContext extends FilteringOperationContext
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abandoned
A flag if the search operation is abandoned
|
private org.apache.directory.api.ldap.model.message.AliasDerefMode |
aliasDerefMode
A flag describing the way alias should be handled
|
private org.apache.directory.api.ldap.model.filter.ExprNode |
filter
The filter
|
private org.apache.directory.api.ldap.model.message.SearchScope |
scope
The scope for this search : default to One Level
|
private long |
sizeLimit
The sizeLimit for this search operation
|
private boolean |
syncreplSearch
flag to indicate if this search is done for replication
|
private int |
timeLimit
The timeLimit for this search operation
|
LOG, returningAttributes, returningAttributesString, typesOnlyauthorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, requestControls, responseControls, session, throwReferral| Constructor and Description |
|---|
SearchOperationContext(CoreSession session)
Creates a new instance of SearchOperationContext.
|
SearchOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.filter.ExprNode filter,
javax.naming.directory.SearchControls searchControls)
Creates a new instance of SearchOperationContext.
|
SearchOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn,
org.apache.directory.api.ldap.model.message.SearchScope scope,
org.apache.directory.api.ldap.model.filter.ExprNode filter,
java.lang.String... returningAttributes)
Creates a new instance of SearchOperationContext.
|
SearchOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.message.SearchRequest searchRequest)
Creates a new instance of SearchOperationContext.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.message.AliasDerefMode |
getAliasDerefMode() |
org.apache.directory.api.ldap.model.filter.ExprNode |
getFilter() |
java.lang.String |
getName() |
org.apache.directory.api.ldap.model.message.SearchScope |
getScope() |
long |
getSizeLimit() |
int |
getTimeLimit() |
boolean |
hasManageDsaItControl()
Checks whether or not the ManageDsaITControl is present.
|
boolean |
isAbandoned() |
boolean |
isSyncreplSearch() |
void |
setAbandoned(boolean abandoned) |
void |
setAliasDerefMode(org.apache.directory.api.ldap.model.message.AliasDerefMode aliasDerefMode)
Set the Alias dereferencing mode
|
void |
setFilter(org.apache.directory.api.ldap.model.filter.ExprNode filter)
Set the filter into the context.
|
void |
setScope(org.apache.directory.api.ldap.model.message.SearchScope scope) |
void |
setSizeLimit(long sizeLimit) |
void |
setSyncreplSearch(boolean syncreplSearch)
sets the flag to indicate if this is a synrepl specific search or not
|
void |
setTimeLimit(int timeLimit) |
java.lang.String |
toString() |
contains, contains, getReturningAttributes, getReturningAttributesString, isAllOperationalAttributes, isAllUserAttributes, isNoAttributes, isTypesOnly, setAllOperationalAttributes, setAllUserAttributes, setNoAttributes, setReturningAttributes, setTypesOnlyaddRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getOriginalEntry, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setRequestControls, setSession, throwReferralprivate org.apache.directory.api.ldap.model.message.AliasDerefMode aliasDerefMode
private long sizeLimit
private int timeLimit
private org.apache.directory.api.ldap.model.message.SearchScope scope
protected boolean abandoned
private org.apache.directory.api.ldap.model.filter.ExprNode filter
private boolean syncreplSearch
public SearchOperationContext(CoreSession session)
public SearchOperationContext(CoreSession session, org.apache.directory.api.ldap.model.message.SearchRequest searchRequest) throws org.apache.directory.api.ldap.model.exception.LdapException
java.lang.Exceptionorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic SearchOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.filter.ExprNode filter, javax.naming.directory.SearchControls searchControls) throws org.apache.directory.api.ldap.model.exception.LdapException
dn - the dn of the search basefilter - the filter AST to use for the searchsearchControls - the search controlsorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic SearchOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.message.SearchScope scope, org.apache.directory.api.ldap.model.filter.ExprNode filter, java.lang.String... returningAttributes)
session - the session this operation is associated withdn - the search basescope - the search scopefilter - the filter AST to use for the searchaliasDerefMode - the alias dereferencing modereturningAttributes - the attributes to returnpublic boolean hasManageDsaItControl()
public org.apache.directory.api.ldap.model.filter.ExprNode getFilter()
public void setFilter(org.apache.directory.api.ldap.model.filter.ExprNode filter)
filter - The filter to setpublic java.lang.String getName()
getName in interface OperationContextgetName in class AbstractOperationContextpublic boolean isSyncreplSearch()
public void setSyncreplSearch(boolean syncreplSearch)
syncreplSearch - public org.apache.directory.api.ldap.model.message.AliasDerefMode getAliasDerefMode()
public void setAliasDerefMode(org.apache.directory.api.ldap.model.message.AliasDerefMode aliasDerefMode)
aliasDerefMode - Th erequested modepublic long getSizeLimit()
public void setSizeLimit(long sizeLimit)
sizeLimit - the sizeLimit to setpublic int getTimeLimit()
public void setTimeLimit(int timeLimit)
timeLimit - the timeLimit to setpublic org.apache.directory.api.ldap.model.message.SearchScope getScope()
public void setScope(org.apache.directory.api.ldap.model.message.SearchScope scope)
scope - the scope to setpublic boolean isAbandoned()
public void setAbandoned(boolean abandoned)
abandoned - the abandoned to setpublic java.lang.String toString()
toString in class FilteringOperationContextObject.toString()