From 40626e819af3e53a2c20de54cbd25aa9f0328222 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 27 Jul 2007 17:22:33 +0000
Subject: [PATCH] Add a method for retrieving the current default values of a property. This can be useful in client applications wishing to indicate to a user what will happen if they reset a property back to its defaults.

---
 opends/src/server/org/opends/server/admin/client/ManagedObject.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/client/ManagedObject.java b/opends/src/server/org/opends/server/admin/client/ManagedObject.java
index e9d385d..bd8ed4a 100644
--- a/opends/src/server/org/opends/server/admin/client/ManagedObject.java
+++ b/opends/src/server/org/opends/server/admin/client/ManagedObject.java
@@ -382,6 +382,24 @@
 
 
   /**
+   * Get the default values of the specified property.
+   *
+   * @param <P>
+   *          The type of the property to be retrieved.
+   * @param pd
+   *          The property to be retrieved.
+   * @return Returns the property's default values, or an empty set
+   *         if there are no default values defined.
+   * @throws IllegalArgumentException
+   *           If the property definition is not associated with this
+   *           managed object's definition.
+   */
+  <P> SortedSet<P> getPropertyDefaultValues(PropertyDefinition<P> pd)
+      throws IllegalArgumentException;
+
+
+
+  /**
    * Get the effective value of the specified property.
    * <p>
    * See the class description for more information about how the

--
Gitblit v1.10.0