From 836e359af22b0362453e9fabcb3f8a47e2780e8e Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Tue, 22 May 2007 14:35:47 +0000
Subject: [PATCH] Various improvements and refactorings of the admin framework client API, including:
---
opends/src/server/org/opends/server/admin/client/InitialManagedObject.java | 39 +++++++++++++++++----------------------
1 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/client/InitialManagedObject.java b/opends/src/server/org/opends/server/admin/client/InitialManagedObject.java
index aa478dc..b5a7c64 100644
--- a/opends/src/server/org/opends/server/admin/client/InitialManagedObject.java
+++ b/opends/src/server/org/opends/server/admin/client/InitialManagedObject.java
@@ -92,9 +92,9 @@
/**
* {@inheritDoc}
*/
- public Collection<?> getDefaultPropertyValues(
- ManagedObjectPath path, String propertyName)
- throws OperationsException, PropertyNotFoundException {
+ public Collection<?> getDefaultPropertyValues(ManagedObjectPath path,
+ String propertyName) throws OperationsException,
+ PropertyNotFoundException {
throw new PropertyNotFoundException(propertyName);
}
@@ -142,7 +142,7 @@
* This implementation throws an
* {@link UnsupportedOperationException}.
*/
- public void commit() throws OperationsException {
+ public void commit() throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -156,9 +156,8 @@
*/
public <M extends ConfigurationClient, N extends M>
ManagedObject<N> createChild(
- InstantiableRelationDefinition<M, ?> r,
- ManagedObjectDefinition<N, ?> d, String name, PropertyProvider p)
- throws IllegalArgumentException, OperationsException {
+ InstantiableRelationDefinition<M, ?> r, ManagedObjectDefinition<N, ?> d,
+ String name, PropertyProvider p) throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -172,9 +171,8 @@
*/
public <M extends ConfigurationClient, N extends M>
ManagedObject<N> createChild(
- OptionalRelationDefinition<M, ?> r,
- ManagedObjectDefinition<N, ?> d, PropertyProvider p)
- throws IllegalArgumentException, OperationsException {
+ OptionalRelationDefinition<M, ?> r, ManagedObjectDefinition<N, ?> d,
+ PropertyProvider p) throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -188,7 +186,7 @@
*/
public <M extends ConfigurationClient> ManagedObject<? extends M> getChild(
InstantiableRelationDefinition<M, ?> d, String name)
- throws IllegalArgumentException, OperationsException {
+ throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -201,8 +199,7 @@
* {@link UnsupportedOperationException}.
*/
public <M extends ConfigurationClient> ManagedObject<? extends M> getChild(
- OptionalRelationDefinition<M, ?> d)
- throws IllegalArgumentException, OperationsException {
+ OptionalRelationDefinition<M, ?> d) throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -216,7 +213,7 @@
*/
public <M extends ConfigurationClient> ManagedObject<? extends M> getChild(
SingletonRelationDefinition<M, ?> d)
- throws IllegalArgumentException, OperationsException {
+ throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -279,7 +276,7 @@
* {@link UnsupportedOperationException}.
*/
public boolean hasChild(OptionalRelationDefinition<?, ?> d)
- throws IllegalArgumentException, OperationsException {
+ throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -292,7 +289,7 @@
* {@link UnsupportedOperationException}.
*/
public String[] listChildren(InstantiableRelationDefinition<?, ?> d)
- throws IllegalArgumentException, OperationsException {
+ throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -306,7 +303,7 @@
*/
public <M extends ConfigurationClient> void removeChild(
InstantiableRelationDefinition<M, ?> d, String name)
- throws IllegalArgumentException, OperationsException {
+ throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -319,8 +316,7 @@
* {@link UnsupportedOperationException}.
*/
public <M extends ConfigurationClient> void removeChild(
- OptionalRelationDefinition<M, ?> d)
- throws IllegalArgumentException, OperationsException {
+ OptionalRelationDefinition<M, ?> d) throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
@@ -331,9 +327,8 @@
* {@inheritDoc}
*/
public <T> void setPropertyValue(PropertyDefinition<T> d, T value)
- throws IllegalPropertyValueException,
- PropertyIsReadOnlyException, PropertyIsMandatoryException,
- IllegalArgumentException {
+ throws IllegalPropertyValueException, PropertyIsReadOnlyException,
+ PropertyIsMandatoryException, IllegalArgumentException {
properties.setPropertyValue(d, value);
}
--
Gitblit v1.10.0