directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r411567 - in /directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema: GlobalAttributeTypeRegistry.java bootstrap/BootstrapAttributeTypeRegistry.java
Date Sun, 04 Jun 2006 14:45:46 GMT
Author: akarasulu
Date: Sun Jun  4 07:45:45 2006
New Revision: 411567

URL: http://svn.apache.org/viewvc?rev=411567&view=rev
Log:
corrected for using all aliases of attributeTypes

Modified:
    directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/GlobalAttributeTypeRegistry.java
    directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/bootstrap/BootstrapAttributeTypeRegistry.java

Modified: directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/GlobalAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/GlobalAttributeTypeRegistry.java?rev=411567&r1=411566&r2=411567&view=diff
==============================================================================
--- directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/GlobalAttributeTypeRegistry.java
(original)
+++ directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/GlobalAttributeTypeRegistry.java
Sun Jun  4 07:45:45 2006
@@ -121,7 +121,11 @@
         // update the cached normalizer mapping
         Normalizer normalizer = attributeType.getEquality().getNormalizer();
         mapping.put( attributeType.getOid(), normalizer );
-        mapping.put( attributeType.getName(), normalizer );
+        String[] aliases = attributeType.getNames();
+        for ( int jj = 0; jj < aliases.length; jj++ )
+        {
+            mapping.put( aliases[jj], normalizer );
+        }
     }
 
 
@@ -203,7 +207,11 @@
                 AttributeType type = ( AttributeType ) ii.next();
                 Normalizer normalizer = type.getEquality().getNormalizer();
                 mapping.put( type.getOid(), normalizer );
-                mapping.put( type.getName(), normalizer );
+                String[] aliases = type.getNames();
+                for ( int jj = 0; jj < aliases.length; jj++ )
+                {
+                    mapping.put( aliases[jj], normalizer );
+                }
             }
         }
         return Collections.unmodifiableMap( mapping );

Modified: directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/bootstrap/BootstrapAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/bootstrap/BootstrapAttributeTypeRegistry.java?rev=411567&r1=411566&r2=411567&view=diff
==============================================================================
--- directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/bootstrap/BootstrapAttributeTypeRegistry.java
(original)
+++ directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/schema/bootstrap/BootstrapAttributeTypeRegistry.java
Sun Jun  4 07:45:45 2006
@@ -106,7 +106,11 @@
         // update the cached normalizer mapping
         Normalizer normalizer = attributeType.getEquality().getNormalizer();
         mapping.put( attributeType.getOid(), normalizer );
-        mapping.put( attributeType.getName(), normalizer );
+        String[] aliases = attributeType.getNames();
+        for ( int jj = 0; jj < aliases.length; jj++ )
+        {
+            mapping.put( aliases[jj], normalizer );
+        }
     }
 
 
@@ -173,7 +177,11 @@
                 AttributeType type = ( AttributeType ) ii.next();
                 Normalizer normalizer = type.getEquality().getNormalizer();
                 mapping.put( type.getOid(), normalizer );
-                mapping.put( type.getName(), normalizer );
+                String[] aliases = type.getNames();
+                for ( int jj = 0; jj < aliases.length; jj++ )
+                {
+                    mapping.put( aliases[jj], normalizer );
+                }
             }
         }
         



Mime
View raw message