From 9f7e54f54e452973cd947137118321672f5ecb65 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 02 Aug 2006 06:30:27 +0000
Subject: [PATCH] Add methods to various operations in order to get the target entry (or, in the case of modify and modify DN operations, both the before and after entries). The entries will not be available for use in pre-parse plugins, and in some cases they may not be available for conflict resolution synchronization processing.
---
opends/src/server/org/opends/server/core/DeleteOperation.java | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DeleteOperation.java b/opends/src/server/org/opends/server/core/DeleteOperation.java
index 4787692..f052974 100644
--- a/opends/src/server/org/opends/server/core/DeleteOperation.java
+++ b/opends/src/server/org/opends/server/core/DeleteOperation.java
@@ -94,6 +94,9 @@
// The DN of the entry for the delete operation.
private DN entryDN;
+ // The entry to be deleted.
+ private Entry entry;
+
// The set of response controls for this delete operation.
private List<Control> responseControls;
@@ -134,6 +137,7 @@
this.rawEntryDN = rawEntryDN;
+ entry = null;
entryDN = null;
responseControls = new ArrayList<Control>();
cancelRequest = null;
@@ -171,6 +175,7 @@
responseControls = new ArrayList<Control>();
cancelRequest = null;
changeNumber = -1;
+ entry = null;
}
@@ -244,6 +249,22 @@
/**
+ * Retrieves the entry to be deleted. This will not be available to pre-parse
+ * plugins.
+ *
+ * @return The entry to be deleted, or <CODE>null</CODE> if the entry is not
+ * yet available.
+ */
+ public Entry getEntryToDelete()
+ {
+ assert debugEnter(CLASS_NAME, "getEntryToDelete");
+
+ return entry;
+ }
+
+
+
+ /**
* Retrieves the time that processing started for this operation.
*
* @return The time that processing started for this operation.
@@ -463,7 +484,6 @@
assert debugEnter(CLASS_NAME, "run");
setResultCode(ResultCode.UNDEFINED);
- Entry entry = null;
// Get the plugin config manager that will be used for invoking plugins.
--
Gitblit v1.10.0