directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r693471 - /directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/request/AddRequestDsml.java
Date Tue, 09 Sep 2008 14:38:13 GMT
Author: pamarcelot
Date: Tue Sep  9 07:38:12 2008
New Revision: 693471

URL: http://svn.apache.org/viewvc?rev=693471&view=rev
Log:
o Added a setEntry(...) method
o Fixed a bug in the handling of the DN.

Modified:
    directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/request/AddRequestDsml.java

Modified: directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/request/AddRequestDsml.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/request/AddRequestDsml.java?rev=693471&r1=693470&r2=693471&view=diff
==============================================================================
--- directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/request/AddRequestDsml.java
(original)
+++ directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/request/AddRequestDsml.java
Tue Sep  9 07:38:12 2008
@@ -83,7 +83,7 @@
         // DN
         if ( request.getEntry() != null )
         {
-            element.addAttribute( "dn", request.getEntry().toString() );
+            element.addAttribute( "dn", request.getEntry().getDn().toString() );
         }
 
         // Attributes
@@ -187,6 +187,18 @@
 
 
     /**
+     * Sets the entry.
+     *
+     * @param entry
+     *      the entry
+     */
+    public void setEntry( Entry entry )
+    {
+        ( ( AddRequest ) instance ).setEntry( entry );
+    }
+
+
+    /**
      * @return Returns the currentAttribute type.
      */
     public String getCurrentAttributeType()



Mime
View raw message