public class SearchOperationContext extends FilteringOperationContext
Modifier and Type | Field and Description |
---|---|
protected boolean |
abandoned
A flag if the search operation is abandoned
|
LOG, returningAttributes, returningAttributesString, typesOnly
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, partition, requestControls, responseControls, session, throwReferral, transaction
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,
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,
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() |
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 syncrepl specific search or not
|
void |
setTimeLimit(int timeLimit) |
String |
toString() |
contains, contains, getReturningAttributes, getReturningAttributesString, isAllOperationalAttributes, isAllUserAttributes, isNoAttributes, isTypesOnly, setAllOperationalAttributes, setAllUserAttributes, setNoAttributes, setReturningAttributes, setTypesOnly
addRequestControl, addRequestControls, addResponseControl, delete, getCurrentInterceptor, getDn, getEffectivePrincipal, getEntry, getNextInterceptor, getOriginalEntry, getPartition, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, getTransaction, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setPartition, setRequestControls, setSession, setTransaction, throwReferral
protected boolean abandoned
public SearchOperationContext(CoreSession session)
session
- The session to usepublic SearchOperationContext(CoreSession session, org.apache.directory.api.ldap.model.message.SearchRequest searchRequest)
session
- The session to usesearchRequest
- The SearchRequest to processpublic SearchOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.filter.ExprNode filter, SearchControls searchControls)
session
- The session to usedn
- the dn of the search basefilter
- the filter AST to use for the searchsearchControls
- the search controlspublic 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, String... returningAttributes)
session
- the session this operation is associated withdn
- the search basescope
- the search scopefilter
- the filter AST to use for the searchreturningAttributes
- 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 boolean isSyncreplSearch()
public void setSyncreplSearch(boolean syncreplSearch)
syncreplSearch
- The flag indicating it's a syncrepl searchpublic 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 String toString()
toString
in class FilteringOperationContext
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.