org.apache.directory.server.core.interceptor.context
Class LookupOperationContext

java.lang.Object
  extended by org.apache.directory.server.core.interceptor.context.AbstractOperationContext
      extended by org.apache.directory.server.core.interceptor.context.LookupOperationContext
All Implemented Interfaces:
OperationContext

public class LookupOperationContext
extends AbstractOperationContext

A context for tracking lookup operations. Lookup operations will return a cloned server entry.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext
authorizedPrincipal, byPassed, dn, EMPTY_CONTROLS, entry, next, previous, requestControls, responseControls, session
 
Constructor Summary
LookupOperationContext(CoreSession session)
          Creates a new instance of LookupOperationContext.
LookupOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN dn)
          Creates a new instance of LookupOperationContext.
LookupOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN dn, java.lang.String[] attrsId)
          Creates a new instance of LookupOperationContext.
LookupOperationContext(CoreSession session, java.lang.String[] attrsId)
          Creates a new instance of LookupOperationContext.
 
Method Summary
 void addAttrsId(java.lang.String attrId)
          Add an attribute ID to the current list, creating the list if necessary
 java.lang.Boolean getAllOperational()
           
 java.lang.Boolean getAllUser()
           
 java.util.List<java.lang.String> getAttrsId()
           
 java.lang.String[] getAttrsIdArray()
           
 java.lang.String getName()
           
 void setAttrsId(java.lang.String[] attrsId)
          Set the attribute Ids
 java.lang.String toString()
           
 
Methods inherited from class org.apache.directory.server.core.interceptor.context.AbstractOperationContext
add, addRequestControl, addRequestControls, addResponseControl, delete, getByPassed, getDn, getEffectivePrincipal, getEntry, getFirstOperation, getLastOperation, getNextOperation, getPreviousOperation, getRequestControl, getResponseControl, getResponseControlCount, getResponseControls, getSession, hasBypass, hasEntry, hasRequestControl, hasRequestControls, hasResponseControl, hasResponseControls, isBypassed, isFirstOperation, lookup, lookup, modify, newLookupContext, setAuthorizedPrincipal, setByPassed, setDn, setEntry, setNextOperation, setPreviousOperation, setRequestControls, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LookupOperationContext

public LookupOperationContext(CoreSession session)
Creates a new instance of LookupOperationContext.


LookupOperationContext

public LookupOperationContext(CoreSession session,
                              org.apache.directory.shared.ldap.name.LdapDN dn)
Creates a new instance of LookupOperationContext.


LookupOperationContext

public LookupOperationContext(CoreSession session,
                              java.lang.String[] attrsId)
Creates a new instance of LookupOperationContext.


LookupOperationContext

public LookupOperationContext(CoreSession session,
                              org.apache.directory.shared.ldap.name.LdapDN dn,
                              java.lang.String[] attrsId)
Creates a new instance of LookupOperationContext.

Method Detail

getAttrsIdArray

public java.lang.String[] getAttrsIdArray()
Returns:
Get the attribute ids as a String array

setAttrsId

public void setAttrsId(java.lang.String[] attrsId)
Set the attribute Ids

Parameters:
attrsId - The String array containing all the attribute IDs

addAttrsId

public void addAttrsId(java.lang.String attrId)
Add an attribute ID to the current list, creating the list if necessary

Parameters:
attrId - the Id to add

getAttrsId

public java.util.List<java.lang.String> getAttrsId()
Returns:
The attribute IDs list

getAllUser

public java.lang.Boolean getAllUser()

getAllOperational

public java.lang.Boolean getAllOperational()

getName

public java.lang.String getName()
Specified by:
getName in interface OperationContext
Specified by:
getName in class AbstractOperationContext
Returns:
the operation name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.