directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1142154 - in /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name: Ava.java Dn.java
Date Sat, 02 Jul 2011 05:24:23 GMT
Author: elecharny
Date: Sat Jul  2 05:24:23 2011
New Revision: 1142154

URL: http://svn.apache.org/viewvc?rev=1142154&view=rev
Log:
o Added a getAttributeType() accessor in the Ava class
o Fixed a bug in Dn : the SchemaManager wasn't injected into the Ava when the Dn was normalized

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java?rev=1142154&r1=1142153&r2=1142154&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Ava.java
Sat Jul  2 05:24:23 2011
@@ -997,6 +997,15 @@ public class Ava implements Externalizab
     {
         return attributeType != null;
     }
+
+
+    /**
+     * @return the attributeType
+     */
+    public AttributeType getAttributeType()
+    {
+        return attributeType;
+    }
     
     
     /**

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java?rev=1142154&r1=1142153&r2=1142154&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/name/Dn.java
Sat Jul  2 05:24:23 2011
@@ -1081,12 +1081,15 @@ public class Dn implements Iterable<Rdn>
             {
                 try
                 {
-                    return new Ava(
+                    Ava newAva = new Ava(
                         atav.getUpType(),
                         oidNormalizer.getAttributeTypeOid(),
                         atav.getUpValue(),
                         oidNormalizer.getNormalizer().normalize( atav.getNormValue() ),
                         atav.getUpName() );
+                    newAva.apply( schemaManager );
+                    
+                    return newAva;
                 }
                 catch ( LdapException le )
                 {



Mime
View raw message