From e1ea3e0d8999105f144d2be98e0286928b8319ed Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 03 Apr 2007 18:52:11 +0000
Subject: [PATCH] Add initial support for a virtual attribute subsystem, and implement a few different kinds of virtual attributes. This commit addresses the following issues:
---
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 7eef8e8..751e211 100644
--- a/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6528,6 +6528,51 @@
/**
+ * The message ID for the message that will be used if a virtual attribute
+ * definition has an invalid search filter. This takes three arguments, which
+ * are the filter string, the configuration entry DN, and a message explaining
+ * the problem that occurred.
+ */
+ public static final int MSGID_CONFIG_VATTR_INVALID_SEARCH_FILTER =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 649;
+
+
+
+ /**
+ * The message ID for the message that will be used if an error occurs while
+ * trying to load and/or initialize a class as a virtual attribute provider.
+ * This takes three arguments, which are the class name, the configuration
+ * entry DN, and string representation of the exception that was caught.
+ */
+ public static final int MSGID_CONFIG_VATTR_INITIALIZATION_FAILED =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 650;
+
+
+
+ /**
+ * The message ID for the message that will be used if the configured
+ * attribute type is single-valued, but the virtual attribute provider may
+ * generate multiple values. This takes three arguments, which are the DN of
+ * the configuration entry, the name or OID of the attribute type, and the
+ * name of the virtual attribute provider class.
+ */
+ public static final int MSGID_CONFIG_VATTR_SV_TYPE_WITH_MV_PROVIDER =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 651;
+
+
+
+ /**
+ * The message ID for the message that will be used if the configured
+ * attribute type is single-valued, but the conflict behavior is to merge the
+ * real and virtual values. This takes two arguments, which are the DN of
+ * the configuration entry and the name or OID of the attribute type.
+ */
+ public static final int MSGID_CONFIG_VATTR_SV_TYPE_WITH_MERGE_VALUES =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 652;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -9383,6 +9428,24 @@
registerMessage(MSGID_CONFIG_CHANGE_RESULT_MESSAGES,
"%s.%s succeeded but generated the following messages " +
"for entry %s: %s.");
+
+
+ registerMessage(MSGID_CONFIG_VATTR_INVALID_SEARCH_FILTER,
+ "Unable to parse value \"%s\" from config entry \"%s\" " +
+ "as a valid search filter: %s.");
+ registerMessage(MSGID_CONFIG_VATTR_SV_TYPE_WITH_MV_PROVIDER,
+ "The virtual attribute configuration in entry \"%s\" is " +
+ "not valid because attribute type %s is single-valued " +
+ "but provider %s may generate multiple values.");
+ registerMessage(MSGID_CONFIG_VATTR_SV_TYPE_WITH_MERGE_VALUES,
+ "The virtual attribute configuration in entry \"%s\" is " +
+ "not valid because attribute type %s is single-valued " +
+ "but the conflict behavior is configured to merge real " +
+ "and virtual values.");
+ registerMessage(MSGID_CONFIG_VATTR_INITIALIZATION_FAILED,
+ "An error occurred while trying to load an instance " +
+ "of class %s referenced in configuration entry %s as a " +
+ "virtual attribute provider: %s.");
}
}
--
Gitblit v1.10.0