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/metaMO.xsl | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/opendj-admin/src/main/resources/stylesheets/metaMO.xsl b/opendj-admin/src/main/resources/stylesheets/metaMO.xsl
index d77b70e..343f0b5 100644
--- a/opendj-admin/src/main/resources/stylesheets/metaMO.xsl
+++ b/opendj-admin/src/main/resources/stylesheets/metaMO.xsl
@@ -466,8 +466,7 @@
' */
',
' public void commit() throws ManagedObjectAlreadyExistsException,
',
' MissingMandatoryPropertiesException, ConcurrentModificationException,
',
- ' OperationRejectedException, AuthorizationException,
',
- ' CommunicationException {
',
+ ' OperationRejectedException, ErrorResultException {
',
' impl.commit();
',
' }
')" />
<xsl:text>
</xsl:text>
@@ -1193,7 +1192,7 @@
' public ', $java-class-name, 'CfgClient get', $java-relation-name, '()
',
' throws DefinitionDecodingException, ManagedObjectDecodingException,
',
' ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException {
',
+ ' ErrorResultException {
',
' return impl.getChild(INSTANCE.get', $java-relation-name,'RelationDefinition()).getConfiguration();
',
' }
')" />
</xsl:when>
@@ -1203,7 +1202,7 @@
' * {@inheritDoc}
',
' */
',
' public boolean has', $java-relation-name, '() throws ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException {
',
+ ' ErrorResultException {
',
' return impl.hasChild(INSTANCE.get', $java-relation-name,'RelationDefinition());
',
' }
')" />
<xsl:text>
</xsl:text>
@@ -1216,7 +1215,7 @@
' public ', $java-class-name, 'CfgClient get', $java-relation-name, '()
',
' throws DefinitionDecodingException, ManagedObjectDecodingException,
',
' ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException {
',
+ ' ErrorResultException {
',
' return impl.getChild(INSTANCE.get', $java-relation-name,'RelationDefinition()).getConfiguration();
',
' }
')" />
<xsl:text>
</xsl:text>
@@ -1239,7 +1238,7 @@
' */
',
' public void remove', $java-relation-name, '()
',
' throws ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' OperationRejectedException, AuthorizationException, CommunicationException {
',
+ ' OperationRejectedException, ErrorResultException {
',
' impl.removeChild(INSTANCE.get', $java-relation-name,'RelationDefinition());
',
' }
')" />
</xsl:when>
@@ -1256,7 +1255,7 @@
' * {@inheritDoc}
',
' */
',
' public String[] list', $java-relation-plural-name, '() throws ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException {
',
+ ' ErrorResultException {
',
' return impl.listChildren(INSTANCE.get', $java-relation-plural-name,'RelationDefinition());
',
' }
')" />
<xsl:text>
</xsl:text>
@@ -1269,7 +1268,7 @@
' public ', $java-class-name, 'CfgClient get', $java-relation-name, '(String name)
',
' throws DefinitionDecodingException, ManagedObjectDecodingException,
',
' ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' AuthorizationException, CommunicationException {
',
+ ' ErrorResultException {
',
' return impl.getChild(INSTANCE.get', $java-relation-plural-name,'RelationDefinition(), name).getConfiguration();
',
' }
')" />
<xsl:text>
</xsl:text>
@@ -1307,7 +1306,7 @@
' */
',
' public void remove', $java-relation-name, '(String name)
',
' throws ManagedObjectNotFoundException, ConcurrentModificationException,
',
- ' OperationRejectedException, AuthorizationException, CommunicationException {
',
+ ' OperationRejectedException, ErrorResultException {
',
' impl.removeChild(INSTANCE.get', $java-relation-plural-name,'RelationDefinition(), name);
',
' }
')" />
</xsl:when>
@@ -1925,10 +1924,7 @@
org.opends.server.admin.ManagedObjectAlreadyExistsException
</import>
<import>
- org.opends.server.admin.client.AuthorizationException
- </import>
- <import>
- org.opends.server.admin.client.CommunicationException
+ org.forgerock.opendj.ldap.ErrorResultException
</import>
<import>
org.opends.server.admin.client.ConcurrentModificationException
--
Gitblit v1.10.0