public abstract class FilteringOperationContext extends AbstractOperationContext
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG
The LoggerFactory used by this Interceptor
|
protected Set<org.apache.directory.api.ldap.model.schema.AttributeTypeOptions> |
returningAttributes
A set containing the returning attributeTypesOptions
|
protected String[] |
returningAttributesString
The set of attributes to return as String
|
protected boolean |
typesOnly
A flag to tell if only the attribute names to be returned.
|
authorizedPrincipal, byPassed, currentInterceptor, dn, EMPTY_CONTROLS, entry, interceptors, originalEntry, partition, requestControls, responseControls, session, throwReferral, transaction
Constructor and Description |
---|
FilteringOperationContext(CoreSession session)
Creates a new instance of FilteringOperationContext.
|
FilteringOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn)
Creates a new instance of FilteringOperationContext.
|
FilteringOperationContext(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn dn,
String... returningAttributes)
Creates a new instance of LookupOperationContext.
|
FilteringOperationContext(CoreSession session,
String... returningAttributes)
Creates a new instance of LookupOperationContext.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
org.apache.directory.api.ldap.model.schema.AttributeType attributeType)
Tells if an attribute is present in the list of attribute to return
|
boolean |
contains(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
String attribute)
Tells if an attribute is present in the list of attribute to return
|
Set<org.apache.directory.api.ldap.model.schema.AttributeTypeOptions> |
getReturningAttributes() |
String[] |
getReturningAttributesString() |
boolean |
isAllOperationalAttributes() |
boolean |
isAllUserAttributes() |
boolean |
isNoAttributes() |
boolean |
isTypesOnly() |
void |
setAllOperationalAttributes(boolean allOperationalAttributes) |
void |
setAllUserAttributes(boolean allUserAttributes) |
void |
setNoAttributes(boolean noAttributes) |
void |
setReturningAttributes(String... attributeIds) |
void |
setTypesOnly(boolean typesOnly) |
String |
toString() |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
protected static final org.slf4j.Logger LOG
protected Set<org.apache.directory.api.ldap.model.schema.AttributeTypeOptions> returningAttributes
protected String[] returningAttributesString
protected boolean typesOnly
public FilteringOperationContext(CoreSession session)
session
- The session to usepublic FilteringOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn)
session
- The session to usedn
- The Dnpublic FilteringOperationContext(CoreSession session, String... returningAttributes)
session
- The session to usereturningAttributes
- The attributes to returnpublic FilteringOperationContext(CoreSession session, org.apache.directory.api.ldap.model.name.Dn dn, String... returningAttributes)
session
- The session to usedn
- The DnreturningAttributes
- The attributes to returnpublic Set<org.apache.directory.api.ldap.model.schema.AttributeTypeOptions> getReturningAttributes()
public String[] getReturningAttributesString()
public boolean contains(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, String attribute)
schemaManager
- The SchemaManager instanceattribute
- The attribute we are looking forpublic boolean contains(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, org.apache.directory.api.ldap.model.schema.AttributeType attributeType)
schemaManager
- The SchemaManager instanceattributeType
- The attributeType we are looking forpublic void setReturningAttributes(String... attributeIds)
public void setAllOperationalAttributes(boolean allOperationalAttributes)
allOperationalAttributes
- the allOperationalAttributes to setpublic boolean isAllUserAttributes()
public void setAllUserAttributes(boolean allUserAttributes)
allUserAttributes
- the allUserAttributes to setpublic boolean isAllOperationalAttributes()
public boolean isNoAttributes()
public void setNoAttributes(boolean noAttributes)
noAttributes
- the noAttributes to setpublic boolean isTypesOnly()
public void setTypesOnly(boolean typesOnly)
typesOnly
- true If we want to get back the attributeType onlypublic String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.