directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r695471 - /directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultReferenceDsml.java
Date Mon, 15 Sep 2008 13:56:21 GMT
Author: pamarcelot
Date: Mon Sep 15 06:56:20 2008
New Revision: 695471

URL: http://svn.apache.org/viewvc?rev=695471&view=rev
Log:
Part of a fix for DIRSTUDIO-359 (Improve DSML parser classes).

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

Modified: directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultReferenceDsml.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultReferenceDsml.java?rev=695471&r1=695470&r2=695471&view=diff
==============================================================================
--- directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultReferenceDsml.java
(original)
+++ directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultReferenceDsml.java
Mon Sep 15 06:56:20 2008
@@ -40,6 +40,15 @@
 {
     /**
      * Creates a new instance of SearchResultReferenceDsml.
+     */
+    public SearchResultReferenceDsml()
+    {
+        super( new SearchResultReference() );
+    }
+
+
+    /**
+     * Creates a new instance of SearchResultReferenceDsml.
      *
      * @param ldapMessage
      *      the message to decorate
@@ -76,4 +85,26 @@
 
         return element;
     }
+
+
+    /**
+     * Add a new reference to the list.
+     * 
+     * @param searchResultReference The search result reference
+     */
+    public void addSearchResultReference( LdapURL searchResultReference )
+    {
+        ( ( SearchResultReference ) instance ).addSearchResultReference( searchResultReference
);
+    }
+
+
+    /**
+     * Get the list of references
+     * 
+     * @return An ArrayList of SearchResultReferences
+     */
+    public List<LdapURL> getSearchResultReferences()
+    {
+        return ( ( SearchResultReference ) instance ).getSearchResultReferences();
+    }
 }



Mime
View raw message