From 2d13862af451882e06a892347cab630304a9455c Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 21 Feb 2012 15:49:01 +0000
Subject: [PATCH] Initial cleanup work for OPENDJ-181: DirectoryException provided value has an invalid length for a UUID

---
 opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyDnContext.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyDnContext.java b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyDnContext.java
index f5d6717..1338659 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyDnContext.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/protocol/ModifyDnContext.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 package org.opends.server.replication.protocol;
 
@@ -34,22 +35,22 @@
  */
 public class ModifyDnContext extends OperationContext
 {
-  private String newParentId;
+  private String newSuperiorEntryUUID;
 
   /**
    * Creates a new ModifyDN Context with the provided parameters.
    *
    * @param changeNumber The change number of the operation.
-   * @param uid the unique Id of the modified entry.
-   * @param newParentId The unique Identifier of the new parent,
+   * @param entryUUID the unique Id of the modified entry.
+   * @param newSuperiorEntryUUID The unique Identifier of the new parent,
    *                    can be null if the entry is to stay below the same
    *                    parent.
    */
-  public ModifyDnContext(ChangeNumber changeNumber, String uid,
-                         String newParentId)
+  public ModifyDnContext(ChangeNumber changeNumber, String entryUUID,
+                         String newSuperiorEntryUUID)
   {
-    super(changeNumber, uid);
-    this.newParentId = newParentId;
+    super(changeNumber, entryUUID);
+    this.newSuperiorEntryUUID = newSuperiorEntryUUID;
   }
 
   /**
@@ -58,8 +59,8 @@
    *
    * @return Returns the unique Identifier of the new parent..
    */
-  public String getNewParentId()
+  public String getNewSuperiorEntryUUID()
   {
-    return newParentId;
+    return newSuperiorEntryUUID;
   }
 }

--
Gitblit v1.10.0