directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r553526 - /directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaHandler.java
Date Thu, 05 Jul 2007 14:44:08 GMT
Author: pamarcelot
Date: Thu Jul  5 07:44:08 2007
New Revision: 553526

URL: http://svn.apache.org/viewvc?view=rev&rev=553526
Log:
Fixed a search problem (the search id was not lower-cased).

Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaHandler.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaHandler.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaHandler.java?view=diff&rev=553526&r1=553525&r2=553526
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaHandler.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/controller/SchemaHandler.java
Thu Jul  5 07:44:08 2007
@@ -199,7 +199,7 @@
      */
     public AttributeTypeImpl getAttributeType( String id )
     {
-        return attributeTypesMap.get( id );
+        return attributeTypesMap.get( id.toLowerCase() );
     }
 
 
@@ -213,7 +213,7 @@
      */
     public MatchingRuleImpl getMatchingRule( String id )
     {
-        return matchingRulesMap.get( id );
+        return matchingRulesMap.get( id.toLowerCase() );
     }
 
 
@@ -227,7 +227,7 @@
      */
     public ObjectClassImpl getObjectClass( String id )
     {
-        return objectClassesMap.get( id );
+        return objectClassesMap.get( id.toLowerCase() );
     }
 
 
@@ -241,7 +241,7 @@
      */
     public Schema getSchema( String name )
     {
-        return schemasMap.get( name );
+        return schemasMap.get( name.toLowerCase() );
     }
 
 
@@ -255,7 +255,7 @@
      */
     public SyntaxImpl getSyntax( String id )
     {
-        return syntaxesMap.get( id );
+        return syntaxesMap.get( id.toLowerCase() );
     }
 
 
@@ -389,7 +389,7 @@
     {
         // Adding the schema
         schemasList.add( schema );
-        schemasMap.put( schema.getName(), schema );
+        schemasMap.put( schema.getName().toLowerCase(), schema );
 
         // Adding its attribute types
         for ( AttributeTypeImpl at : schema.getAttributeTypes() )
@@ -481,7 +481,7 @@
     {
         // Removing the schema
         schemasList.remove( schema );
-        schemasMap.remove( schema.getName() );
+        schemasMap.remove( schema.getName().toLowerCase() );
 
         // Removing its attribute types
         for ( AttributeTypeImpl at : schema.getAttributeTypes() )



Mime
View raw message