From 27ede8298aee9ed2b6f83863173ba2415189b4f6 Mon Sep 17 00:00:00 2001
From: abobrov <abobrov@localhost>
Date: Fri, 13 Feb 2009 17:03:19 +0000
Subject: [PATCH] - land NDB Backend implementation.

---
 opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyDNOperation.java |   71 ++++++++++++++++++++++++-----------
 1 files changed, 49 insertions(+), 22 deletions(-)

diff --git a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyDNOperation.java b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyDNOperation.java
index 29bfde0..7aac31d 100644
--- a/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyDNOperation.java
+++ b/opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendModifyDNOperation.java
@@ -104,23 +104,35 @@
 
 
 
-  // The backend in which the operation is to be processed.
-  private Backend backend;
+  /**
+   * The backend in which the operation is to be processed.
+   */
+  protected Backend backend;
 
-  // Indicates whether the no-op control was included in the request.
-  private boolean noOp;
+  /**
+   * Indicates whether the no-op control was included in the request.
+   */
+  protected boolean noOp;
 
-  // The client connection on which this operation was requested.
-  private ClientConnection clientConnection;
+  /**
+   * The client connection on which this operation was requested.
+   */
+  protected ClientConnection clientConnection;
 
-  // The original DN of the entry.
-  DN entryDN;
+  /**
+   * The original DN of the entry.
+   */
+  protected DN entryDN;
 
-  // The current entry, before it is renamed.
-  private Entry currentEntry;
+  /**
+   * The current entry, before it is renamed.
+   */
+  protected Entry currentEntry;
 
-  // The new entry, as it will appear after it has been renamed.
-  private Entry newEntry;
+  /**
+   * The new entry, as it will appear after it has been renamed.
+   */
+  protected Entry newEntry;
 
   // The LDAP post-read request control, if present in the request.
   private LDAPPostReadRequestControl postReadRequest;
@@ -128,8 +140,10 @@
   // The LDAP pre-read request control, if present in the request.
   private LDAPPreReadRequestControl preReadRequest;
 
-  // The new RDN for the entry.
-  private RDN newRDN;
+  /**
+   * The new RDN for the entry.
+   */
+  protected RDN newRDN;
 
 
 
@@ -187,7 +201,7 @@
    * @throws CanceledOperationException
    *           if this operation should be cancelled
    */
-  void processLocalModifyDN(final LocalBackendWorkflowElement wfe)
+  public void processLocalModifyDN(final LocalBackendWorkflowElement wfe)
       throws CanceledOperationException
   {
     boolean executePostOpPlugins = false;
@@ -684,7 +698,7 @@
    * @throws  DirectoryException  If a problem occurs that should cause the
    *                              modify DN operation to fail.
    */
-  private void handleRequestControls()
+  protected void handleRequestControls()
           throws DirectoryException
   {
     List<Control> requestControls = getRequestControls();
@@ -836,7 +850,7 @@
    * @throws  DirectoryException  If a problem occurs that should cause the
    *                              modify DN operation to fail.
    */
-  private void applyRDNChanges(List<Modification> modifications)
+  protected void applyRDNChanges(List<Modification> modifications)
           throws DirectoryException
   {
     // If we should delete the old RDN values from the entry, then do so.
@@ -951,7 +965,7 @@
    * @throws  DirectoryException  If a problem occurs that should cause the
    *                              modify DN operation to fail.
    */
-  private void applyPreOpModifications(List<Modification> modifications,
+  protected void applyPreOpModifications(List<Modification> modifications,
                                        int startPos)
           throws DirectoryException
   {
@@ -1007,7 +1021,7 @@
    * Performs any necessary processing to create the pre-read and/or post-read
    * response controls and attach them to the response.
    */
-  private void processReadEntryControls()
+  protected void processReadEntryControls()
   {
     if (preReadRequest != null)
     {
@@ -1109,7 +1123,12 @@
     }
   }
 
-  private boolean handleConflictResolution() {
+  /**
+   * Handle conflict resolution.
+   * @return  {@code true} if processing should continue for the operation, or
+   *          {@code false} if not.
+   */
+  protected boolean handleConflictResolution() {
       boolean returnVal = true;
 
       for (SynchronizationProvider<?> provider :
@@ -1141,7 +1160,12 @@
       return returnVal;
   }
 
-  private boolean processPreOperation() {
+  /**
+   * Process pre operation.
+   * @return  {@code true} if processing should continue for the operation, or
+   *          {@code false} if not.
+   */
+  protected boolean processPreOperation() {
       boolean returnVal = true;
 
       for (SynchronizationProvider<?> provider :
@@ -1171,7 +1195,10 @@
       return returnVal;
   }
 
-  private void processSynchPostOperationPlugins() {
+  /**
+   * Invoke post operation synchronization providers.
+   */
+  protected void processSynchPostOperationPlugins() {
       for (SynchronizationProvider<?> provider : DirectoryServer
               .getSynchronizationProviders()) {
           try {

--
Gitblit v1.10.0