From 00786b8f6e90c1a848c9c09d8b82e73a56042a0a 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).
---
opends/resource/admin/clientMO.xsl | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/opends/resource/admin/clientMO.xsl b/opends/resource/admin/clientMO.xsl
index 2e6197e..c4d166a 100644
--- a/opends/resource/admin/clientMO.xsl
+++ b/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 <code>null<code>.
',
- '@return Returns a new ', $ufn,' configuration instance.
')" />
+ '@return Returns a new ', $ufn,' configuration instance.
',
+ '@throws IllegalManagedObjectNameException
',
+ ' If the name of the new ', $ufn,' is invalid.
')" />
</xsl:call-template>
<xsl:value-of
select="concat(' <C extends ', $java-class-name,'CfgClient> C create', $java-relation-name, '(
',
- ' ManagedObjectDefinition<C, ?> d, String name, Collection<DefaultBehaviorException> exceptions);
')" />
+ ' ManagedObjectDefinition<C, ?> d, String name, Collection<DefaultBehaviorException> exceptions) throws IllegalManagedObjectNameException;
')" />
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>
</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