From c3ddd7489abd06155b872cc23cef3575e2ee1b9a Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 08 Jan 2014 09:55:13 +0000
Subject: [PATCH] Align server types API with SDK types API
---
opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java b/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java
index 4c19f42..23a97f4 100644
--- a/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java
+++ b/opendj3-server-dev/src/server/org/opends/server/replication/plugin/EntryHistorical.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2006-2010 Sun Microsystems, Inc.
- * Portions Copyright 2011-2013 ForgeRock AS
+ * Portions Copyright 2011-2014 ForgeRock AS
*/
package org.opends.server.replication.plugin;
@@ -690,7 +690,8 @@
* Log information for the repair tool.
*/
Message message = ERR_UNKNOWN_ATTRIBUTE_IN_HISTORICAL.get(
- entry.getDN().toNormalizedString(), histVal.getAttrString());
+ entry.getName().toNormalizedString(),
+ histVal.getAttrString());
logError(message);
continue;
}
@@ -733,7 +734,7 @@
// Any exception happening here means that the coding of the historical
// information was wrong.
// Log an error and continue with an empty historical.
- Message message = ERR_BAD_HISTORICAL.get(entry.getDN().toString());
+ Message message = ERR_BAD_HISTORICAL.get(entry.getName().toString());
logError(message);
}
@@ -800,7 +801,7 @@
{
String uuidString = getEntryUUID(entry);
FakeModifyOperation modifyFakeOperation =
- new FakeModifyOperation(entry.getDN(), csn, uuidString);
+ new FakeModifyOperation(entry.getName(), csn, uuidString);
modifyFakeOperation.addModification(mod);
operations.put(histVal.getCSN(), modifyFakeOperation);
}
@@ -839,7 +840,7 @@
DirectoryServer.getSchema().getAttributeType(ENTRYUUID_ATTRIBUTE_NAME);
List<Attribute> uuidAttrs =
entry.getOperationalAttribute(entryuuidAttrType);
- return extractEntryUUID(uuidAttrs, entry.getDN());
+ return extractEntryUUID(uuidAttrs, entry.getName());
}
/**
--
Gitblit v1.10.0