From fe6545499558bb95484defd311ed83eced6aedf4 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 19 Jul 2007 14:54:30 +0000
Subject: [PATCH] Fix issues 1943 (unable to create je-index), 1996 (exception when creating components with empty names), and 1998 (exception when creating components with blank names).

---
 opendj-sdk/opends/resource/admin/clientMO.xsl |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/resource/admin/clientMO.xsl b/opendj-sdk/opends/resource/admin/clientMO.xsl
index 2e6197e..c4d166a 100644
--- a/opendj-sdk/opends/resource/admin/clientMO.xsl
+++ b/opendj-sdk/opends/resource/admin/clientMO.xsl
@@ -306,11 +306,13 @@
                        '{@link DefaultBehaviorException}s that occurred whilst ',
                        'attempting to determine the default values of the ', $ufn,
                        '. This argument can be &lt;code&gt;null&lt;code&gt;.&#xa;',
-                       '@return Returns a new ', $ufn,' configuration instance.&#xa;')" />
+                       '@return Returns a new ', $ufn,' configuration instance.&#xa;',
+                       '@throws IllegalManagedObjectNameException&#xa;',
+                       '         If the name of the new ', $ufn,' is invalid.&#xa;')" />
         </xsl:call-template>
         <xsl:value-of
           select="concat('  &lt;C extends ', $java-class-name,'CfgClient&gt; C create', $java-relation-name, '(&#xa;',
-                           '      ManagedObjectDefinition&lt;C, ?&gt; d, String name, Collection&lt;DefaultBehaviorException&gt; exceptions);&#xa;')" />
+                           '      ManagedObjectDefinition&lt;C, ?&gt; d, String name, Collection&lt;DefaultBehaviorException&gt; exceptions) throws IllegalManagedObjectNameException;&#xa;')" />
         <xsl:text>&#xa;</xsl:text>
         <xsl:text>&#xa;</xsl:text>
         <xsl:text>&#xa;</xsl:text>
@@ -404,6 +406,11 @@
             org.opends.server.admin.client.OperationRejectedException
           </import>
         </xsl:if>
+        <xsl:if test="$this-local-relations/adm:one-to-many">
+          <import>
+            org.opends.server.admin.client.IllegalManagedObjectNameException
+          </import>
+        </xsl:if>
         <xsl:choose>
           <xsl:when test="$this/@extends">
             <xsl:if test="$parent-package != $this-package">

--
Gitblit v1.10.0