From c8b1165dbfbee716e8163f42301c650b370248af 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

---
 opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java b/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java
index 9f1204b..56fc27f 100644
--- a/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java
+++ b/opends/src/server/org/opends/server/replication/plugin/FakeDelOperation.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2009 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 package org.opends.server.replication.plugin;
 
@@ -42,20 +43,21 @@
 public class FakeDelOperation extends FakeOperation
 {
   final private String dn;
-  private final String uid;
+  private final String entryUUID;
 
   /**
    * Creates a new FakeDelOperation from the provided information.
    *
    * @param dn             The dn of the entry that was deleted.
    * @param changeNumber   The ChangeNumber of the operation.
-   * @param uid            The Unique ID of the deleted entry.
+   * @param entryUUID      The Unique ID of the deleted entry.
    */
-  public FakeDelOperation(String dn, ChangeNumber changeNumber, String uid)
+  public FakeDelOperation(String dn, ChangeNumber changeNumber,
+      String entryUUID)
   {
     super(changeNumber);
     this.dn = dn;
-    this.uid = uid;
+    this.entryUUID = entryUUID;
   }
 
 
@@ -65,7 +67,7 @@
   @Override
   public ReplicationMsg generateMessage()
   {
-    return new DeleteMsg(dn, this.getChangeNumber(), uid);
+    return new DeleteMsg(dn, this.getChangeNumber(), entryUUID);
   }
 
   /**
@@ -73,8 +75,8 @@
    *
    * @return  The Unique ID of the entry that was deleted with this operation.
    */
-  public String getUUID()
+  public String getEntryUUID()
   {
-    return uid;
+    return entryUUID;
   }
 }

--
Gitblit v1.10.0