directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r520536 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Date Tue, 20 Mar 2007 19:41:46 GMT
Author: elecharny
Date: Tue Mar 20 12:41:45 2007
New Revision: 520536

URL: http://svn.apache.org/viewvc?view=rev&rev=520536
Log:
namingContexts contains UP Dn instead of normalized Dn
Fixed some warnings

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.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?view=diff&rev=520536&r1=520535&r2=520536
==============================================================================
--- 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
Tue Mar 20 12:41:45 2007
@@ -378,7 +378,7 @@
         partitions.put( key, system );
 
         Attribute namingContexts = rootDSE.get( NAMINGCTXS_ATTR );
-        namingContexts.add( system.getUpSuffix().toString() );
+        namingContexts.add( system.getUpSuffix().getUpName() );
 
         return systemCfg;
     }
@@ -543,21 +543,21 @@
         partitions.put( partition.getSuffix().toString(), partition );
 
         Attribute namingContexts = rootDSE.get( NAMINGCTXS_ATTR );
-        namingContexts.add( partition.getUpSuffix().toString() );
+        namingContexts.add( partition.getUpSuffix().getUpName() );
     }
 
 
     public synchronized void removeContextPartition( LdapDN suffix ) throws NamingException
     {
         String key = suffix.toString();
-        Partition partition = ( Partition ) partitions.get( key );
+        Partition partition = partitions.get( key );
         if ( partition == null )
         {
             throw new NameNotFoundException( "No partition with suffix: " + key );
         }
 
         Attribute namingContexts = rootDSE.get( NAMINGCTXS_ATTR );
-        namingContexts.remove( partition.getUpSuffix().toString() );
+        namingContexts.remove( partition.getUpSuffix().getUpName() );
         partitions.remove( key );
 
         partition.sync();
@@ -651,7 +651,7 @@
     private void unregister( Partition partition ) throws NamingException
     {
         Attribute namingContexts = rootDSE.get( NAMINGCTXS_ATTR );
-        namingContexts.remove( partition.getSuffix().toString() );
+        namingContexts.remove( partition.getSuffix().getUpName() );
         partitions.remove( partition.getSuffix().toString() );
     }
 
@@ -991,7 +991,7 @@
         {
             if ( partitions.containsKey( clonedDn.toString() ) )
             {
-                return ( Partition ) partitions.get( clonedDn.toString() );
+                return partitions.get( clonedDn.toString() );
             }
 
             clonedDn.remove( clonedDn.size() - 1 );
@@ -1016,7 +1016,7 @@
         }
         for ( Iterator oids = extensionOids.iterator(); oids.hasNext(); )
         {
-            supportedExtension.add( ( String ) oids.next() );
+            supportedExtension.add( oids.next() );
         }
     }
 }



Mime
View raw message