directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r697633 - in /directory: apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/BranchNode.java
Date Sun, 21 Sep 2008 22:53:31 GMT
Author: elecharny
Date: Sun Sep 21 15:53:31 2008
New Revision: 697633

URL: http://svn.apache.org/viewvc?rev=697633&view=rev
Log:
Renemed the recursiveAddPartition to recursiveAddElement in shared

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/BranchNode.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=697633&r1=697632&r2=697633&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Sun Sep 21 15:53:31 2008
@@ -431,7 +431,7 @@
         synchronized ( partitionLookupTree )
         {
             partitions.put( key, system );
-            partitionLookupTree.recursivelyAddPartition( partitionLookupTree, system.getSuffixDn(),
0, system );
+            partitionLookupTree.recursivelyAddElement( partitionLookupTree, system.getSuffixDn(),
0, system );
             EntryAttribute namingContexts = rootDSE.get( SchemaConstants.NAMING_CONTEXTS_AT
);
             
             if ( namingContexts == null )
@@ -621,7 +621,7 @@
             }
             
             partitions.put( partitionSuffix.toString(), partition );
-            partitionLookupTree.recursivelyAddPartition( partitionLookupTree, partition.getSuffixDn(),
0, partition );
+            partitionLookupTree.recursivelyAddElement( partitionLookupTree, partition.getSuffixDn(),
0, partition );
 
             EntryAttribute namingContexts = rootDSE.get( SchemaConstants.NAMING_CONTEXTS_AT
);
 
@@ -674,7 +674,7 @@
             
             for ( Partition part : partitions.values() )
             {
-                partitionLookupTree.recursivelyAddPartition( partitionLookupTree, part.getSuffixDn(),
0, partition );
+                partitionLookupTree.recursivelyAddElement( partitionLookupTree, part.getSuffixDn(),
0, partition );
             }
     
             partition.sync();

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/BranchNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/BranchNode.java?rev=697633&r1=697632&r2=697633&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/BranchNode.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/BranchNode.java
Sun Sep 21 15:53:31 2008
@@ -76,7 +76,7 @@
      * @param element The associated element to add as a tree node
      * @return The modified tree structure.
      */
-    public Node<N> recursivelyAddPartition( BranchNode<N> current, LdapDN dn,
int index, N element ) throws NamingException
+    public Node<N> recursivelyAddElement( BranchNode<N> current, LdapDN dn, int
index, N element ) throws NamingException
     {
         String rdnAtIndex = dn.getRdn( index ).toString();
         
@@ -100,7 +100,7 @@
                 newNode = new BranchNode<N>();
             }
 
-            Node<N> child = recursivelyAddPartition( (BranchNode<N>)newNode,
dn, index + 1, element );
+            Node<N> child = recursivelyAddElement( (BranchNode<N>)newNode, dn,
index + 1, element );
             return current.addNode( rdnAtIndex, child );
         }
     }



Mime
View raw message