directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r527122 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
Date Tue, 10 Apr 2007 13:03:14 GMT
Author: elecharny
Date: Tue Apr 10 06:03:13 2007
New Revision: 527122

URL: http://svn.apache.org/viewvc?view=rev&rev=527122
Log:
Updated the compare method to use a ServiceContext
Cleaned some code

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java?view=diff&rev=527122&r1=527121&r2=527122
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
Tue Apr 10 06:03:13 2007
@@ -31,6 +31,7 @@
 
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.authn.LdapPrincipal;
+import org.apache.directory.server.core.interceptor.context.CompareServiceContext;
 import org.apache.directory.server.core.interceptor.context.UnbindServiceContext;
 import org.apache.directory.server.core.referral.ReferralService;
 import org.apache.directory.shared.ldap.NotImplementedException;
@@ -164,7 +165,7 @@
      */
     public boolean compare( LdapDN name, String oid, Object value ) throws NamingException
     {
-        return super.getNexusProxy().compare( name, oid, value );
+        return super.getNexusProxy().compare( new CompareServiceContext( name, oid, value
) );
     }
 
 
@@ -179,9 +180,8 @@
     public void ldapUnbind() throws NamingException
     {
         String bindDn = ( String ) getEnvironment().get( Context.SECURITY_PRINCIPAL );
-        UnbindServiceContext unbindContext = new UnbindServiceContext( new LdapDN( bindDn
) );
         
-        super.getNexusProxy().unbind( unbindContext );
+        super.getNexusProxy().unbind( new UnbindServiceContext( new LdapDN( bindDn ) ) );
     }
 
 



Mime
View raw message