You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/04/10 14:56:52 UTC

svn commit: r527115 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java

Author: elecharny
Date: Tue Apr 10 05:56:51 2007
New Revision: 527115

URL: http://svn.apache.org/viewvc?view=rev&rev=527115
Log:
Uodated the initialization to call the add operation with a 
AddServiceContext parameter

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?view=diff&rev=527115&r1=527114&r2=527115
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java Tue Apr 10 05:56:51 2007
@@ -41,6 +41,7 @@
 import org.apache.directory.server.core.configuration.StartupConfiguration;
 import org.apache.directory.server.core.interceptor.Interceptor;
 import org.apache.directory.server.core.interceptor.InterceptorChain;
+import org.apache.directory.server.core.interceptor.context.AddServiceContext;
 import org.apache.directory.server.core.interceptor.context.EntryServiceContext;
 import org.apache.directory.server.core.interceptor.context.LookupServiceContext;
 import org.apache.directory.server.core.jndi.AbstractContextFactory;
@@ -477,8 +478,8 @@
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
             attributes.put( SchemaConstants.DISPLAY_NAME_AT, "Directory Superuser" );
 
-            partitionNexus.add(PartitionNexus.getAdminName(),
-                attributes );
+            partitionNexus.add( new AddServiceContext( PartitionNexus.getAdminName(),
+                attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -503,7 +504,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( userDn, attributes );
+            partitionNexus.add( new AddServiceContext( userDn, attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -527,7 +528,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( groupDn, attributes );
+            partitionNexus.add( new AddServiceContext( groupDn, attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -552,7 +553,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add(normName, attributes );
+            partitionNexus.add( new AddServiceContext( normName, attributes ) );
             
             Interceptor authzInterceptor = interceptorChain.get( "authorizationService" );
             
@@ -596,7 +597,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( configurationDn, attributes );
+            partitionNexus.add( new AddServiceContext( configurationDn, attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -620,7 +621,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( partitionsDn, attributes );
+            partitionNexus.add( new AddServiceContext( partitionsDn, attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -644,7 +645,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( servicesDn, attributes );
+            partitionNexus.add( new AddServiceContext( servicesDn, attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -668,7 +669,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( interceptorsDn, attributes );
+            partitionNexus.add( new AddServiceContext( interceptorsDn, attributes ) );
         }
 
         // -------------------------------------------------------------------
@@ -693,7 +694,7 @@
             attributes.put( SchemaConstants.CREATORS_NAME_AT, PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED );
             attributes.put( SchemaConstants.CREATE_TIMESTAMP_AT, DateUtils.getGeneralizedTime() );
 
-            partitionNexus.add( sysPrefRootDn, attributes );
+            partitionNexus.add( new AddServiceContext( sysPrefRootDn, attributes ) );
         }
 
         return firstStart;