directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r414961 - in /directory/trunks/apacheds: core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java server-main/pom.xml server-tools/pom.xml
Date Sat, 17 Jun 2006 00:00:38 GMT
Author: akarasulu
Date: Fri Jun 16 17:00:38 2006
New Revision: 414961

URL: http://svn.apache.org/viewvc?rev=414961&view=rev
Log:
adding new getRootContext() method to the custom context implementation

Modified:
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
    directory/trunks/apacheds/server-main/pom.xml
    directory/trunks/apacheds/server-tools/pom.xml

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?rev=414961&r1=414960&r2=414961&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Fri Jun 16 17:00:38 2006
@@ -159,6 +159,14 @@
     // New Impl Specific Public Methods
     // ------------------------------------------------------------------------
 
+    
+    /**
+     * Get's a handle on the root context of the DIT.  The RootDSE as the present user.
+     * @throws NamingException 
+     */
+    public abstract ServerContext getRootContext() throws NamingException;
+    
+    
     /**
      * Returns the {@link DirectoryService} which manages this context.
      */

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java?rev=414961&r1=414960&r2=414961&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/jndi/ServerLdapContext.java
Fri Jun 16 17:00:38 2006
@@ -20,7 +20,6 @@
 import java.util.Hashtable;
 
 import javax.naming.Context;
-import javax.naming.Name;
 import javax.naming.NamingException;
 import javax.naming.ldap.Control;
 import javax.naming.ldap.ExtendedRequest;
@@ -68,7 +67,7 @@
      * @param principal the directory user principal that is propagated
      * @param dn the distinguished name of this context
      */
-    ServerLdapContext( DirectoryService service, LdapPrincipal principal, Name dn ) throws
NamingException
+    ServerLdapContext( DirectoryService service, LdapPrincipal principal, LdapDN dn ) throws
NamingException
     {
         super( service, principal, dn );
     }
@@ -90,7 +89,7 @@
      */
     public LdapContext newInstance( Control[] requestControls ) throws NamingException
     {
-        ServerLdapContext ctx = new ServerLdapContext( getService(), getPrincipal(), getDn()
);
+        ServerLdapContext ctx = new ServerLdapContext( getService(), getPrincipal(), ( LdapDN
) getDn() );
         ctx.setRequestControls( requestControls );
         return ctx;
     }
@@ -190,5 +189,11 @@
         }
 
         return refService.isReferral( name );
+    }
+
+
+    public ServerContext getRootContext() throws NamingException
+    {
+        return new ServerLdapContext( getService(), getPrincipal(), new LdapDN() );
     }
 }

Modified: directory/trunks/apacheds/server-main/pom.xml
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/server-main/pom.xml?rev=414961&r1=414960&r2=414961&view=diff
==============================================================================
--- directory/trunks/apacheds/server-main/pom.xml (original)
+++ directory/trunks/apacheds/server-main/pom.xml Fri Jun 16 17:00:38 2006
@@ -18,12 +18,12 @@
     <dependency>
       <groupId>org.apache.directory.daemon</groupId>
       <artifactId>daemon-bootstrappers</artifactId>
-      <version>1.0-RC1</version>
+      <version>1.0-RC2</version>
     </dependency>  
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>nlog4j</artifactId>
-      <version>1.2.19</version>
+      <version>1.2.25</version>
     </dependency>
     <dependency>
       <groupId>springframework</groupId>

Modified: directory/trunks/apacheds/server-tools/pom.xml
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/server-tools/pom.xml?rev=414961&r1=414960&r2=414961&view=diff
==============================================================================
--- directory/trunks/apacheds/server-tools/pom.xml (original)
+++ directory/trunks/apacheds/server-tools/pom.xml Fri Jun 16 17:00:38 2006
@@ -22,7 +22,7 @@
     <dependency>
       <groupId>org.apache.directory.daemon</groupId>
       <artifactId>daemon-bootstrappers</artifactId>
-      <version>1.0-RC1</version>
+      <version>1.0-RC2</version>
     </dependency>
     <dependency>
       <groupId>commons-cli</groupId>



Mime
View raw message