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

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

public class CompareOperationContext
extends AbstractOperationContext

A Compare context used for Interceptors. It contains all the informations needed for the compare operation, and used by all the interceptors

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
CompareOperationContext(CoreSession session)
          Creates a new instance of CompareOperationContext.
CompareOperationContext(CoreSession session, org.apache.directory.shared.ldap.message.CompareRequest compareRequest)
           
CompareOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN dn)
          Creates a new instance of CompareOperationContext.
CompareOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN dn, java.lang.String oid)
          Creates a new instance of LookupOperationContext.
CompareOperationContext(CoreSession session, org.apache.directory.shared.ldap.name.LdapDN dn, java.lang.String oid, java.lang.Object value)
          Creates a new instance of LookupOperationContext.
CompareOperationContext(CoreSession session, java.lang.String oid)
          Creates a new instance of LookupOperationContext.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getOid()
           
 java.lang.Object getValue()
           
 void setOid(java.lang.String oid)
          Set the compared OID
 void setValue(java.lang.Object value)
          Set the value to compare
 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

CompareOperationContext

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


CompareOperationContext

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


CompareOperationContext

public CompareOperationContext(CoreSession session,
                               java.lang.String oid)
Creates a new instance of LookupOperationContext.


CompareOperationContext

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


CompareOperationContext

public CompareOperationContext(CoreSession session,
                               org.apache.directory.shared.ldap.name.LdapDN dn,
                               java.lang.String oid,
                               java.lang.Object value)
Creates a new instance of LookupOperationContext.


CompareOperationContext

public CompareOperationContext(CoreSession session,
                               org.apache.directory.shared.ldap.message.CompareRequest compareRequest)
Method Detail

getOid

public java.lang.String getOid()
Returns:
The compared OID

setOid

public void setOid(java.lang.String oid)
Set the compared OID

Parameters:
oid - The compared OID

getValue

public java.lang.Object getValue()
Returns:
The value to compare

setValue

public void setValue(java.lang.Object value)
Set the value to compare

Parameters:
value - The value to compare

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.