From cfc513043c5830b5a967733066068c7097b42e3c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opendj-sdk/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java b/opendj-sdk/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
index 34084c8..870c436 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
@@ -25,6 +25,7 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.plugins;
+import org.opends.messages.Message;
@@ -56,8 +57,8 @@
import org.opends.server.types.ResultCode;
import org.opends.server.types.operation.PreOperationAddOperation;
-import static org.opends.server.messages.MessageHandler.*;
-import static org.opends.server.messages.PluginMessages.*;
+import static org.opends.messages.PluginMessages.*;
+
import static org.opends.server.util.StaticUtils.*;
@@ -144,9 +145,9 @@
default:
- int msgID = MSGID_PLUGIN_ENTRYUUID_INVALID_PLUGIN_TYPE;
- String message = getMessage(msgID, t.toString());
- throw new ConfigException(msgID, message);
+ Message message =
+ ERR_PLUGIN_ENTRYUUID_INVALID_PLUGIN_TYPE.get(t.toString());
+ throw new ConfigException(message);
}
}
}
@@ -234,7 +235,7 @@
*/
@Override()
public boolean isConfigurationAcceptable(PluginCfg configuration,
- List<String> unacceptableReasons)
+ List<Message> unacceptableReasons)
{
return isConfigurationChangeAcceptable(configuration, unacceptableReasons);
}
@@ -245,7 +246,7 @@
* {@inheritDoc}
*/
public boolean isConfigurationChangeAcceptable(PluginCfg configuration,
- List<String> unacceptableReasons)
+ List<Message> unacceptableReasons)
{
boolean configAcceptable = true;
@@ -262,8 +263,8 @@
default:
- int msgID = MSGID_PLUGIN_ENTRYUUID_INVALID_PLUGIN_TYPE;
- String message = getMessage(msgID, pluginType.toString());
+ Message message = ERR_PLUGIN_ENTRYUUID_INVALID_PLUGIN_TYPE.get(
+ pluginType.toString());
unacceptableReasons.add(message);
configAcceptable = false;
}
--
Gitblit v1.10.0