From 70b0e3d553e5a2a896337730b6c0540488b78f08 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Tue, 10 Dec 2013 12:43:16 +0000
Subject: [PATCH] OpenDJ 3 : config framework
---
opendj-admin/src/main/resources/stylesheets/clientMO.xsl | 63 +++++++++++--------------------
1 files changed, 22 insertions(+), 41 deletions(-)
diff --git a/opendj-admin/src/main/resources/stylesheets/clientMO.xsl b/opendj-admin/src/main/resources/stylesheets/clientMO.xsl
index bc2b893..92a441d 100644
--- a/opendj-admin/src/main/resources/stylesheets/clientMO.xsl
+++ b/opendj-admin/src/main/resources/stylesheets/clientMO.xsl
@@ -112,16 +112,14 @@
' If the ', $ufn, ' could not be found on the server.
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to retrieve the ', $ufn, ' because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' ', $java-class-name, 'CfgClient get', $java-relation-name, '()
',
' throws DefinitionDecodingException, ManagedObjectDecodingException,
',
' ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException;
')" />
+ ' ErrorResultException;
')" />
</xsl:when>
<xsl:when test="adm:one-to-zero-or-one">
<xsl:call-template name="add-java-comment2">
@@ -132,15 +130,13 @@
'@return Returns <true> if the ', $ufn,' exists.
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to make the determination because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' boolean has',
$java-relation-name, '() throws ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException;
')" />
+ ' ErrorResultException;
')" />
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
@@ -159,16 +155,14 @@
' If the ', $ufn, ' is not present.
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to retrieve the ', $ufn, ' because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' ', $java-class-name, 'CfgClient get', $java-relation-name, '()
',
' throws DefinitionDecodingException, ManagedObjectDecodingException,
',
' ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException;
')" />
+ ' ErrorResultException;
')" />
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
@@ -211,16 +205,13 @@
' If the server refuses to remove the ', $ufn, ' due to some server-side constraint which cannot be satisfied (for example, if it is referenced by another managed object).
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to remove the ', $ufn, ' because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' void remove', $java-relation-name, '()
',
' throws ManagedObjectNotFoundException, OperationRejectedException,
',
- ' ConcurrentModificationException, AuthorizationException,
',
- ' CommunicationException;
')" />
+ ' ConcurrentModificationException, ErrorResultException;
')" />
</xsl:when>
<xsl:when test="adm:one-to-many">
<xsl:variable name="plural-name"
@@ -243,15 +234,13 @@
'@return Returns an array containing the names of the ', $ufpn,'.
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to list the ', $ufpn, ' because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' String[] list',
$java-relation-plural-name, '() throws ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException;
')" />
+ ' ErrorResultException;
')" />
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
@@ -272,16 +261,14 @@
' If the named ', $ufn, ' was not found on the server.
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to retrieve the named ', $ufn, ' because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' ', $java-class-name, 'CfgClient get', $java-relation-name, '(String name)
',
' throws DefinitionDecodingException, ManagedObjectDecodingException,
',
' ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException;
')" />
+ ' ErrorResultException;
')" />
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
@@ -360,16 +347,13 @@
' If the server refuses to remove the ', $ufn, ' due to some server-side constraint which cannot be satisfied (for example, if it is referenced by another managed object).
',
'@throws ConcurrentModificationException
',
' If this ', $this-ufn, ' has been removed from the server by another client.
',
- '@throws AuthorizationException
',
- ' If the server refuses to remove the ', $ufn, ' because the client does not have the correct privileges.
',
- '@throws CommunicationException
',
- ' If the client cannot contact the server due to an underlying communication problem.')" />
+ '@throws ErrorResultException
',
+ ' If any other error occurs.')" />
</xsl:call-template>
<xsl:value-of
select="concat(' void remove', $java-relation-name, '(String name)
',
' throws ManagedObjectNotFoundException, OperationRejectedException,
',
- ' ConcurrentModificationException, AuthorizationException,
',
- ' CommunicationException;
')" />
+ ' ConcurrentModificationException, ErrorResultException;
')" />
</xsl:when>
<xsl:otherwise>
<xsl:message terminate="yes">
@@ -425,10 +409,7 @@
org.opends.server.admin.client.ConcurrentModificationException
</import>
<import>
- org.opends.server.admin.client.AuthorizationException
- </import>
- <import>
- org.opends.server.admin.client.CommunicationException
+ org.forgerock.opendj.ldap.ErrorResultException
</import>
</xsl:if>
<xsl:for-each
--
Gitblit v1.10.0