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/protocol/AddMsg.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/protocol/AddMsg.java b/opends/src/server/org/opends/server/replication/protocol/AddMsg.java
index 84625ad..307e619 100644
--- a/opends/src/server/org/opends/server/replication/protocol/AddMsg.java
+++ b/opends/src/server/org/opends/server/replication/protocol/AddMsg.java
@@ -26,7 +26,6 @@
  */
 package org.opends.server.replication.protocol;
 
-import org.opends.server.core.AddOperation;
 import org.opends.server.core.AddOperationBasis;
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.protocols.asn1.ASN1Element;
@@ -43,10 +42,12 @@
 import org.opends.server.protocols.internal.InternalClientConnection;
 import org.opends.server.protocols.ldap.LDAPAttribute;
 import org.opends.server.replication.common.ChangeNumber;
+import org.opends.server.types.AbstractOperation;
 import org.opends.server.types.Attribute;
 import org.opends.server.types.AttributeValue;
 import org.opends.server.types.LDAPException;
 import org.opends.server.types.RawAttribute;
+import org.opends.server.types.operation.PostOperationAddOperation;
 
 import static org.opends.server.replication.protocol.OperationContext.*;
 import static org.opends.server.util.StaticUtils.toLowerCase;
@@ -65,7 +66,7 @@
    * Creates a new AddMessage.
    * @param op the operation to use when creating the message
    */
-  public AddMsg(AddOperation op)
+  public AddMsg(PostOperationAddOperation op)
   {
     super((AddContext) op.getAttachment(SYNCHROCONTEXT),
           op.getRawEntryDN().stringValue());
@@ -187,9 +188,9 @@
    * {@inheritDoc}
    */
   @Override
-  public AddOperation createOperation(InternalClientConnection connection,
-                                      String newDn)
-                      throws LDAPException, ASN1Exception
+  public AbstractOperation createOperation(
+         InternalClientConnection connection, String newDn)
+         throws LDAPException, ASN1Exception
   {
     ArrayList<RawAttribute> attr = new ArrayList<RawAttribute>();
     ArrayList<ASN1Element> elems;

--
Gitblit v1.10.0