From 6e99e0e4fb95bd7ea289fa24a2e541a7641b4c32 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 13 Aug 2007 22:50:41 +0000
Subject: [PATCH] Implement support for the "list" tag for use with MakeLDIF.  This was the last major tag type that was supported by the SLAMD variant of MakeLDIF that was not available with the OpenDS version.  Unfortunately, the OpenDS version is not able to use exactly the same syntax as the SLAMD version, but the OpenDS version has all of the same functionality and its syntax is actually more consistent with that used by other tags than the SLAMD version.

---
 opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
index b8847dc..448e311 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -9751,6 +9751,27 @@
 
 
   /**
+   * The message ID for the message that will be used if a list tag does not
+   * contain any arguments.  This takes a single argument, which is the line
+   * number on which it appears in the template file.
+   */
+  public static final int MSGID_MAKELDIF_TAG_LIST_NO_ARGUMENTS =
+       CATEGORY_MASK_TOOLS | SEVERITY_MASK_MILD_ERROR | 1291;
+
+
+
+  /**
+   * The message ID for the message that will be used if a list tag includes an
+   * argument with a semicolon that is not followed by an integer.  This takes
+   * two arguments, which are the line number on which it appears in the
+   * template file and the list item containing the semicolon.
+   */
+  public static final int MSGID_MAKELDIF_TAG_LIST_INVALID_WEIGHT =
+       CATEGORY_MASK_TOOLS | SEVERITY_MASK_MILD_WARNING | 1292;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -11499,6 +11520,16 @@
                     "LDIF:  %s");
     registerMessage(MSGID_MAKELDIF_PROCESSING_COMPLETE,
                     "LDIF processing complete.  %d entries written");
+    registerMessage(MSGID_MAKELDIF_TAG_LIST_NO_ARGUMENTS,
+                    "The list tag on line %d of the template file does not " +
+                    "contain any arguments to specify the list values.  At " +
+                    "least one list value must be provided");
+    registerMessage(MSGID_MAKELDIF_TAG_LIST_INVALID_WEIGHT,
+                    "The list tag on line %d of the template file contains " +
+                    "item '%s' that includes a semicolon but that semicolon " +
+                    "is not followed by an integer.  The semicolon will be " +
+                    "assumed to be part of the value and not a delimiter to " +
+                    "separate the value from its relative weight");
 
 
     registerMessage(MSGID_LDIFMODIFY_CANNOT_ADD_ENTRY_TWICE,

--
Gitblit v1.10.0