From d491fe177f1740e7b5882569d51987a15662fc85 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 12 Jul 2007 09:30:40 +0000
Subject: [PATCH] fix for 1887 : Define new interfaces used by the synchronization provider so that LocalBackend operations are not exposed
---
opends/src/server/org/opends/server/replication/plugin/Historical.java | 11 +++++------
1 files changed, 5 insertions(+), 6 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 969c1e0..6b84831 100644
--- a/opends/src/server/org/opends/server/replication/plugin/Historical.java
+++ b/opends/src/server/org/opends/server/replication/plugin/Historical.java
@@ -39,9 +39,7 @@
import java.util.TreeMap;
import java.util.HashSet;
-import org.opends.server.core.AddOperation;
import org.opends.server.core.DirectoryServer;
-import org.opends.server.core.ModifyOperation;
import org.opends.server.replication.common.ChangeNumber;
import org.opends.server.replication.protocol.OperationContext;
import org.opends.server.types.Attribute;
@@ -52,7 +50,8 @@
import org.opends.server.types.ErrorLogSeverity;
import org.opends.server.types.Modification;
import org.opends.server.types.ModificationType;
-import org.opends.server.workflowelement.localbackend.*;
+import org.opends.server.types.operation.PreOperationAddOperation;
+import org.opends.server.types.operation.PreOperationModifyOperation;
/**
* This class is used to store historical information that is
@@ -116,7 +115,7 @@
* @param modifiedEntry the entry that is being modified (before modification)
* @return true if the replayed operation was in conflict
*/
- public boolean replayOperation(ModifyOperation modifyOperation,
+ public boolean replayOperation(PreOperationModifyOperation modifyOperation,
Entry modifiedEntry)
{
boolean bConflict = false;
@@ -146,7 +145,7 @@
*
* @param modifyOperation the modification.
*/
- public void generateState(LocalBackendModifyOperation modifyOperation)
+ public void generateState(PreOperationModifyOperation modifyOperation)
{
List<Modification> mods = modifyOperation.getModifications();
Entry modifiedEntry = modifyOperation.getModifiedEntry();
@@ -517,7 +516,7 @@
* @param op The operation
* @return The Entry Unique Id String form.
*/
- public static String getEntryUuid(AddOperation op)
+ public static String getEntryUuid(PreOperationAddOperation op)
{
String uuidString = null;
Map<AttributeType, List<Attribute>> attrs = op.getOperationalAttributes();
--
Gitblit v1.10.0