From 92a7350758362b7b90576a01fdf96417298e0a5c Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Mon, 09 Oct 2006 14:15:55 +0000
Subject: [PATCH] - Change the synchronization code so that the changelog server can now be used directly through the ChangelogBroker class as a client API.

---
 opends/src/server/org/opends/server/synchronization/ModifyDNMsg.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/synchronization/ModifyDNMsg.java b/opends/src/server/org/opends/server/synchronization/ModifyDNMsg.java
index eb4a162..c794f4d 100644
--- a/opends/src/server/org/opends/server/synchronization/ModifyDNMsg.java
+++ b/opends/src/server/org/opends/server/synchronization/ModifyDNMsg.java
@@ -69,6 +69,32 @@
   }
 
   /**
+   * construct a new Modify DN message.
+   *
+   * @param dn The dn to use for building the message.
+   * @param changeNumber The changeNumberto use for building the message.
+   * @param uid The unique id to use for building the message.
+   * @param newParentUid The new parent unique id to use for building
+   *                     the message.
+   * @param deleteOldRdn boolean indicating if old rdn must be deleted to use
+   *                     for building the message.
+   * @param newSuperior The new Superior entry to use for building the message.
+   * @param newRDN The new Rdn to use for building the message.
+   */
+  public ModifyDNMsg(String dn, ChangeNumber changeNumber, String uid,
+                     String newParentUid, boolean deleteOldRdn,
+                     String newSuperior, String newRDN)
+  {
+    super(new ModifyDnContext(changeNumber, uid, newParentUid), dn);
+
+    newSuperiorId = newParentUid;
+
+    this.deleteOldRdn = deleteOldRdn;
+    this.newSuperior = newSuperior;
+    this.newRDN = newRDN;
+  }
+
+  /**
    * Creates a new ModifyDN message from a byte[].
    *
    * @param in The byte[] from which the operation must be read.

--
Gitblit v1.10.0