From 93ad50f0e8b182978c790c0707bd0a910ae2a39e Mon Sep 17 00:00:00 2001
From: jcambon <jcambon@localhost>
Date: Mon, 10 Nov 2008 08:07:58 +0000
Subject: [PATCH] Fix for Issue #3569: dsconfig does not handle correctly multi-valued properties

---
 opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java b/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
index 525a6fd..b5bcf32 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
@@ -604,6 +604,25 @@
 
 
   /**
+   * Creates an argument exception which should be used when a multi-valued
+   * property does not contain a given value.
+   *
+   * @param value
+   *          The property value.
+   * @param propertyName
+   *          The property name.
+   * @return Returns an argument exception.
+   */
+  public static ArgumentException unknownValueForMultiValuedProperty(
+    String value, String propertyName) {
+          Message msg = ERR_DSCFG_ERROR_VALUE_DOES_NOT_EXIST.get(
+            value, propertyName);
+    return new ArgumentException(msg);
+  }
+
+
+
+  /**
    * Creates a CLI exception which should be used when a managed
    * object is retrieved but does not have the correct type
    * appropriate for the associated sub-command.

--
Gitblit v1.10.0