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, 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,
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 synrepl 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, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, ignoreReferral, isReferralIgnored, isReferralThrown, lookup, newLookupContext, setAuthorizedPrincipal, setCurrentInterceptor, setDn, setEntry, setInterceptors, setOriginalEntry, setRequestControls, setSession, throwReferral
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
Exception
org.apache.directory.api.ldap.model.exception.LdapException
public SearchOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, org.apache.directory.api.ldap.model.filter.ExprNode filter, 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.LdapException
public 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 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 String getName()
getName
in interface OperationContext
getName
in class AbstractOperationContext
public 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 String toString()
toString
in class FilteringOperationContext
Object.toString()
Copyright © 2017. All rights reserved.