directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r525883 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Date Thu, 05 Apr 2007 17:00:35 GMT
Author: elecharny
Date: Thu Apr  5 10:00:34 2007
New Revision: 525883

URL: http://svn.apache.org/viewvc?view=rev&rev=525883
Log:
Now use the new lookup( ServiceContext ) method

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java?view=diff&rev=525883&r1=525882&r2=525883
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Thu Apr  5 10:00:34 2007
@@ -44,6 +44,7 @@
 
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.core.authn.LdapPrincipal;
+import org.apache.directory.server.core.interceptor.context.LookupServiceContext;
 import org.apache.directory.server.core.partition.PartitionNexusProxy;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.filter.AssertionEnum;
@@ -117,7 +118,9 @@
      */
     public Attributes getAttributes( Name name ) throws NamingException
     {
-        return getNexusProxy().lookup( buildTarget( name ) );
+        LookupServiceContext lookupContext = new LookupServiceContext( buildTarget( name
) );
+
+        return getNexusProxy().lookup( lookupContext );
     }
 
 
@@ -137,7 +140,9 @@
      */
     public Attributes getAttributes( Name name, String[] attrIds ) throws NamingException
     {
-        return getNexusProxy().lookup( buildTarget( name ), attrIds );
+        LookupServiceContext lookupContext = new LookupServiceContext( buildTarget( name
), attrIds );
+        
+        return getNexusProxy().lookup( lookupContext );
     }
 
 



Mime
View raw message