directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r514794 - /directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Date Mon, 05 Mar 2007 18:39:09 GMT
Author: elecharny
Date: Mon Mar  5 10:39:08 2007
New Revision: 514794

URL: http://svn.apache.org/viewvc?view=rev&rev=514794
Log:
Reflected the change done in Rdn (getType() removed and replaced by
getNormType() and getUpType())

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

Modified: directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java?view=diff&rev=514794&r1=514793&r2=514794
==============================================================================
--- directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
(original)
+++ directory/apacheds/branches/1.0/core/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Mon Mar  5 10:39:08 2007
@@ -374,7 +374,7 @@
         Attributes attributes = ( Attributes ) attrs.clone();
         if ( rdn.size() == 1 )
         {
-            String rdnAttribute = rdn.getType();
+            String rdnAttribute = rdn.getUpType();
             String rdnValue = (String)rdn.getValue();
 
             // Add the Rdn attribute
@@ -394,13 +394,13 @@
                 AttributeTypeAndValue atav = ( AttributeTypeAndValue ) ii.next();
 
                 // Add the Rdn attribute
-                boolean doRdnPut = attributes.get( atav.getType() ) == null;
-                doRdnPut = doRdnPut || attributes.get( atav.getType() ).size() == 0;
-                doRdnPut = doRdnPut || !attributes.get( atav.getType() ).contains( atav.getValue()
);
+                boolean doRdnPut = attributes.get( atav.getUpType() ) == null;
+                doRdnPut = doRdnPut || attributes.get( atav.getUpType() ).size() == 0;
+                doRdnPut = doRdnPut || !attributes.get( atav.getUpType() ).contains( atav.getValue()
);
         
                 if ( doRdnPut )
                 {
-                    attributes.put( atav.getType(), atav.getValue() );
+                    attributes.put( atav.getUpType(), atav.getValue() );
                 }
             }
         }



Mime
View raw message