directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1746065 - in /directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers: DnNormalizer.java UniqueMemberNormalizer.java
Date Sun, 29 May 2016 22:13:00 GMT
Author: elecharny
Date: Sun May 29 22:13:00 2016
New Revision: 1746065

URL: http://svn.apache.org/viewvc?rev=1746065&view=rev
Log:
Return the normalized name

Modified:
    directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/DnNormalizer.java
    directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/UniqueMemberNormalizer.java

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/DnNormalizer.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/DnNormalizer.java?rev=1746065&r1=1746064&r2=1746065&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/DnNormalizer.java
(original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/DnNormalizer.java
Sun May 29 22:13:00 2016
@@ -57,7 +57,7 @@ public class DnNormalizer extends Normal
     {
         Dn dn = new Dn( schemaManager, value );
 
-        return dn.getName();
+        return dn.getNormName();
     }
 
 
@@ -69,7 +69,7 @@ public class DnNormalizer extends Normal
     {
         Dn dn = new Dn( schemaManager, value );
 
-        return dn.getName();
+        return dn.getNormName();
     }
 
 
@@ -88,7 +88,7 @@ public class DnNormalizer extends Normal
             dn = new Dn( schemaManager, value );
         }
 
-        return dn.getName();
+        return dn.getNormName();
     }
 
 

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/UniqueMemberNormalizer.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/UniqueMemberNormalizer.java?rev=1746065&r1=1746064&r2=1746065&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/UniqueMemberNormalizer.java
(original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/normalizers/UniqueMemberNormalizer.java
Sun May 29 22:13:00 2016
@@ -31,7 +31,7 @@ import org.apache.directory.api.util.Str
 
 
 /**
- * A noirmalizer for UniqueMember
+ * A normalizer for UniqueMember. We will get the Normilzed name of the DN
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -82,7 +82,7 @@ public class UniqueMemberNormalizer exte
                 return null;
             }
 
-            // This is an UID if the '#' is immediatly
+            // This is an UID if the '#' is immediately
             // followed by a BitString, except if the '#' is
             // on the last position
             String uid = value.substring( sharpPos + 1 );
@@ -91,7 +91,7 @@ public class UniqueMemberNormalizer exte
             {
                 Dn dn = new Dn( schemaManager, value.substring( 0, sharpPos ) );
 
-                return dn.getName() + '#' + uid;
+                return dn.getNormName() + '#' + uid;
             }
             else
             {
@@ -102,7 +102,7 @@ public class UniqueMemberNormalizer exte
         {
             // No UID, the strValue is a Dn
             // Return the normalized Dn
-            return new Dn( schemaManager, value ).getName();
+            return new Dn( schemaManager, value ).getNormName();
         }
     }
 



Mime
View raw message