From a3fec1e316d6942be1dc1fd8fde1464f18ba12b6 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 24 Jun 2007 22:19:02 +0000
Subject: [PATCH] Migrate the attribute syntax configuration to the admin framework.
---
opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java
index 138b8b8..3f2a49c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6734,6 +6734,28 @@
+ /**
+ * The message ID for the message that will be used if an attempt is made to
+ * delete an attribute syntax that is in use by an attribute type. This takes
+ * two arguments, which is the name of the attribute syntax and the name or
+ * OID of the attribute type that is using that syntax.
+ */
+ public static final int MSGID_CONFIG_SCHEMA_CANNOT_DELETE_SYNTAX_IN_USE =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_WARNING | 668;
+
+
+
+ /**
+ * The message ID for the message that will be used if an attempt is made to
+ * disable an attribute syntax that is in use by an attribute type. This
+ * takes two arguments, which is the name of the attribute syntax and the name
+ * or OID of the attribute type that is using that syntax.
+ */
+ public static final int MSGID_CONFIG_SCHEMA_CANNOT_DISABLE_SYNTAX_IN_USE =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_WARNING | 669;
+
+
+
/**
* Associates a set of generic messages with the message IDs defined in this
@@ -8015,6 +8037,12 @@
"conflicts with another syntax defined in the server " +
"configuration: %s. This attribute syntax will not be " +
"used");
+ registerMessage(MSGID_CONFIG_SCHEMA_CANNOT_DELETE_SYNTAX_IN_USE,
+ "Attribute syntax %s cannot be deleted from the server " +
+ "because it is in use by attribute type %s");
+ registerMessage(MSGID_CONFIG_SCHEMA_CANNOT_DISABLE_SYNTAX_IN_USE,
+ "Attribute syntax %s cannot be disabled because it is in " +
+ "use by attribute type %s");
registerMessage(MSGID_CONFIG_SCHEMA_NO_SCHEMA_DIR,
--
Gitblit v1.10.0