From aaff8bbe83e02bba861c5cf1c6645dedc4e0ac1d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 07 Aug 2007 21:45:40 +0000
Subject: [PATCH] Add support for a new type of plugin which can be used to detect changes and take some action whenever a subordinate entry is modified as a result of a modify DN operation that targets an entry that has one or more children (i.e., a subtree move or subtree rename operation).  At present, subordinate modify DN plugins are not allowed to change the contents of the entry as it is being moved/renamed, but an appropriate API is in place if we decide to add this functionality in the future.

---
 opends/src/server/org/opends/server/api/plugin/PreOperationPluginResult.java |   33 ++++++++++++++++-----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/plugin/PreOperationPluginResult.java b/opends/src/server/org/opends/server/api/plugin/PreOperationPluginResult.java
index 628e325..99af89a 100644
--- a/opends/src/server/org/opends/server/api/plugin/PreOperationPluginResult.java
+++ b/opends/src/server/org/opends/server/api/plugin/PreOperationPluginResult.java
@@ -81,7 +81,7 @@
    * information.
    *
    * @param  connectionTerminated      Indicates whether the
-   *                                   post-response plugin terminated
+   *                                   pre-operation plugin terminated
    *                                   the client connection.
    * @param  continuePluginProcessing  Indicates whether any further
    *                                   pre-operation plugins should be
@@ -107,7 +107,7 @@
    * information.
    *
    * @param  connectionTerminated      Indicates whether the
-   *                                   post-response plugin terminated
+   *                                   pre-operation plugin terminated
    *                                   the client connection.
    * @param  continuePluginProcessing  Indicates whether any further
    *                                   pre-operation plugins should be
@@ -139,11 +139,11 @@
 
 
   /**
-   * Indicates whether the post-response plugin terminated the client
+   * Indicates whether the pre-operation plugin terminated the client
    * connection.
    *
-   * @return  <CODE>true</CODE> if the post-response plugin terminated
-   *          the client connection, or <CODE>false</CODE> if not.
+   * @return  {@code true} if the pre-operation plugin terminated the
+   *          client connection, or {@code false} if not.
    */
   public boolean connectionTerminated()
   {
@@ -153,12 +153,11 @@
 
 
   /**
-   * Indicates whether any further post-response plugins should be
+   * Indicates whether any further pre-operation plugins should be
    * invoked for this operation.
    *
-   * @return  <CODE>true</CODE> if any further post-response plugins
-   *          should be invoked for this operation, or
-   *          <CODE>false</CODE> if not.
+   * @return  {@code true} if any further pre-operation plugins should
+   *          be invoked for this operation, or {@code false} if not.
    */
   public boolean continuePluginProcessing()
   {
@@ -172,10 +171,10 @@
    * plugin to the client immediately with no further processing on
    * the operation.
    *
-   * @return  <CODE>true</CODE> if the server should send the response
-   *          set by this plugin to the client immediately, or
-   *          <CODE>false</CODE> if further processing should be
-   *          performed on the operation.
+   * @return  {@code true} if the server should send the response set
+   *          by this plugin to the client immediately, or
+   *          {@code false} if further processing should be performed
+   *          on the operation.
    */
   public boolean sendResponseImmediately()
   {
@@ -201,10 +200,10 @@
 
 
   /**
-   * Retrieves a string representation of this post-response plugin
+   * Retrieves a string representation of this pre-operation plugin
    * result.
    *
-   * @return  A string representation of this post-response plugin
+   * @return  A string representation of this pre-operation plugin
    *          result.
    */
   public String toString()
@@ -217,7 +216,7 @@
 
 
   /**
-   * Appends a string representation of this post-response plugin
+   * Appends a string representation of this pre-operation plugin
    * result to the provided buffer.
    *
    * @param  buffer  The buffer to which the information should be
@@ -225,7 +224,7 @@
    */
   public void toString(StringBuilder buffer)
   {
-    buffer.append("PostResponsePluginResult(connectionTerminated=");
+    buffer.append("PreOperationPluginResult(connectionTerminated=");
     buffer.append(connectionTerminated);
     buffer.append(", continuePluginProcessing=");
     buffer.append(continuePluginProcessing);

--
Gitblit v1.10.0