directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r329147 - in /directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name: NameComponentNormalizer.java SimpleNameComponentNormalizer.java
Date Fri, 28 Oct 2005 07:30:39 GMT
Author: elecharny
Date: Fri Oct 28 00:30:34 2005
New Revision: 329147

URL: http://svn.apache.org/viewcvs?rev=329147&view=rev
Log:
Added two methods which accepts byte[] instead of String

Modified:
    directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/NameComponentNormalizer.java
    directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java

Modified: directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/NameComponentNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/NameComponentNormalizer.java?rev=329147&r1=329146&r2=329147&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/NameComponentNormalizer.java
(original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/NameComponentNormalizer.java
Fri Oct 28 00:30:34 2005
@@ -43,24 +43,49 @@
      * Normalizes an attribute's value given the name of the attribute - short
      * names like 'cn' as well as 'commonName' should work here.
      *
-     * @param a_attributeName the name of the attribute
-     * @param a_value the value of the attribute to normalize
+     * @param attributeName the name of the attribute
+     * @param value the value of the attribute to normalize
      * @return the normalized value
      * @throws NamingException if there is a recognition problem or a syntax 
      * issue
      */
-    String normalizeByName( String a_attributeName, String a_value )
+    String normalizeByName( String attributeName, String value )
         throws NamingException ;
 
+    /**
+     * Normalizes an attribute's value given the name of the attribute - short
+     * names like 'cn' as well as 'commonName' should work here.
+     *
+     * @param attributeName the name of the attribute
+     * @param value the value of the attribute to normalize
+     * @return the normalized value
+     * @throws NamingException if there is a recognition problem or a syntax 
+     * issue
+     */
+    String normalizeByName( String attributeName, byte[] value )
+        throws NamingException ;
+
     /**
      * Normalizes an attribute's value given the OID of the attribute.
      *
-     * @param a_attributeOid the OID of the attribute
-     * @param a_value the value of the attribute to normalize
+     * @param attributeOid the OID of the attribute
+     * @param value the value of the attribute to normalize
      * @return the normalized value
      * @throws NamingException if there is a recognition problem or a syntax 
      * issue
      */
-    String normalizeByOid( String a_attributeOid, String a_value )
+    String normalizeByOid( String attributeOid, String value )
         throws NamingException ;
+
+    /**
+     * Normalizes an attribute's value given the OID of the attribute.
+     *
+     * @param attributeOid the OID of the attribute
+     * @param value the value of the attribute to normalize
+     * @return the normalized value
+     * @throws NamingException if there is a recognition problem or a syntax 
+     * issue
+     */
+    String normalizeByOid( String attributeOid, byte[] value )
+        throws NamingException ;
 }

Modified: directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java?rev=329147&r1=329146&r2=329147&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
(original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/common/src/java/org/apache/ldap/common/name/SimpleNameComponentNormalizer.java
Fri Oct 28 00:30:34 2005
@@ -54,8 +54,17 @@
         return normalizer.normalize( val ).toString();
     }
 
+    public String normalizeByName( String name, byte[] val ) throws NamingException
+    {
+        return normalizer.normalize( val ).toString();
+    }
 
     public String normalizeByOid( String oid, String val ) throws NamingException
+    {
+        return normalizer.normalize( val ).toString();
+    }
+
+    public String normalizeByOid( String oid, byte[] val ) throws NamingException
     {
         return normalizer.normalize( val ).toString();
     }



Mime
View raw message