From c3502b5d887989e12d6b653568ee0c20a90b6dd9 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 13 Mar 2007 19:43:19 +0000
Subject: [PATCH] Update the config file handler so that it will do something with the ConfigChangeResult objects that are returned from attempting to apply configuration changes.  It will perform the following (in order of precedence):

---
 opends/src/server/org/opends/server/messages/ConfigMessages.java |   63 +++++++++++++++++++++++++++++++
 1 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opends/src/server/org/opends/server/messages/ConfigMessages.java
index 2a9ed6c..7eef8e8 100644
--- a/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6478,6 +6478,56 @@
 
 
   /**
+   * The message ID for the message that will be used if a configuration add,
+   * delete, or change listener or a configurable component return a result of
+   * {@code null} instead of a valid config change result.  This takes three
+   * arguments, which are the class name of the object, the name of the method
+   * that was invoked, and the DN of the target entry.
+   */
+  public static final int MSGID_CONFIG_CHANGE_NO_RESULT =
+       CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 645;
+
+
+
+  /**
+   * The message ID for the message that will be used if an error occurs while
+   * attempting to update the configuration as a result of an added, deleted,
+   * or modified configuration entry.  This takes six arguments, which are the
+   * class name of the object that generated the error, the name of the method
+   * that was invoked, the DN of the target entry, the result code generated,
+   * whether administrative action is required to apply the change, and any
+   * messages generated.
+   */
+  public static final int MSGID_CONFIG_CHANGE_RESULT_ERROR =
+       CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 646;
+
+
+
+  /**
+   * The message ID for the message that will be used if a configuration change
+   * requires some kind of administrative action before it will take effect.
+   * This takes four arguments, which are the class name of the object that
+   * indicated the action was required, the name of the method that was invoked,
+   * the DN of the target entry, and any messages generated.
+   */
+  public static final int MSGID_CONFIG_CHANGE_RESULT_ACTION_REQUIRED =
+       CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_WARNING | 647;
+
+
+
+  /**
+   * The message ID for the message that will be used if a configuration change
+   * was successful and no administrative action is required, but there were
+   * messages generated.  This takes four arguments, which are the name of the
+   * object that performed the processing, the name of the method that was
+   * invoked, the DN of the target entry, and the messages generated.
+   */
+  public static final int MSGID_CONFIG_CHANGE_RESULT_MESSAGES =
+       CATEGORY_MASK_CONFIG | SEVERITY_MASK_INFORMATIONAL | 648;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -9320,6 +9370,19 @@
                     "configuration attribute " +
                     ATTR_REJECT_UNAUTHENTICATED_REQ + "(the value should " +
                     "be either true or false)");
+
+
+    registerMessage(MSGID_CONFIG_CHANGE_NO_RESULT,
+                    "%s.%s returned a result of null for entry %s.");
+    registerMessage(MSGID_CONFIG_CHANGE_RESULT_ERROR,
+                    "%s.%s failed for entry %s:  result code=%s, admin " +
+                    "action required=%b, messages=\"%s\".");
+    registerMessage(MSGID_CONFIG_CHANGE_RESULT_ACTION_REQUIRED,
+                    "%s.%s indicated that administrative action is required " +
+                    "for entry %s:  messages=\"%s\".");
+    registerMessage(MSGID_CONFIG_CHANGE_RESULT_MESSAGES,
+                    "%s.%s succeeded but generated the following messages " +
+                    "for entry %s:  %s.");
   }
 }
 

--
Gitblit v1.10.0