From 80c58327faaa4873369f6bb949e62792c2f708e0 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.
---
opends/src/server/org/opends/server/replication/plugin/Historical.java | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/Historical.java b/opends/src/server/org/opends/server/replication/plugin/Historical.java
index 6b84831..f2c4f8a 100644
--- a/opends/src/server/org/opends/server/replication/plugin/Historical.java
+++ b/opends/src/server/org/opends/server/replication/plugin/Historical.java
@@ -25,10 +25,10 @@
* Portions Copyright 2006-2007 Sun Microsystems, Inc.
*/
package org.opends.server.replication.plugin;
+import org.opends.messages.Message;
import static org.opends.server.loggers.ErrorLogger.logError;
-import static org.opends.server.messages.MessageHandler.getMessage;
-import static org.opends.server.messages.ReplicationMessages.*;
+import static org.opends.messages.ReplicationMessages.*;
import java.util.HashMap;
import java.util.Iterator;
@@ -46,8 +46,6 @@
import org.opends.server.types.AttributeType;
import org.opends.server.types.AttributeValue;
import org.opends.server.types.Entry;
-import org.opends.server.types.ErrorLogCategory;
-import org.opends.server.types.ErrorLogSeverity;
import org.opends.server.types.Modification;
import org.opends.server.types.ModificationType;
import org.opends.server.types.operation.PreOperationAddOperation;
@@ -78,6 +76,12 @@
public static final String HISTORICALATTRIBUTENAME = "ds-sync-hist";
/**
+ * Name used to store attachment of historical information in the
+ * operation.
+ */
+ public static final String HISTORICAL = "ds-synch-historical";
+
+ /**
* The AttributeType associated to the attribute used to store
* hitorical information.
*/
@@ -410,11 +414,8 @@
// Any exception happening here means that the coding of the hsitorical
// information was wrong.
// Log an error and continue with an empty historical.
- int msgID = MSGID_BAD_HISTORICAL;
- String message = getMessage(msgID, entry.getDN().toString());
- logError(ErrorLogCategory.SYNCHRONIZATION,
- ErrorLogSeverity.SEVERE_ERROR,
- message, msgID);
+ Message message = ERR_BAD_HISTORICAL.get(entry.getDN().toString());
+ logError(message);
}
/* set the reference to the historical information in the entry */
--
Gitblit v1.10.0