From 7ae21709bb6dbdc092052acb5098bfa5cb316d9e Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Thu, 29 Mar 2007 15:09:14 +0000
Subject: [PATCH] These refactorings are essential in anticipation of a new quicksetup application for the upgrader feature (issue 598).  These changes were reviewed by Josu. 

---
 opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallUserData.java |   36 +++++++-----------------------------
 1 files changed, 7 insertions(+), 29 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UserUninstallData.java b/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallUserData.java
similarity index 89%
rename from opends/src/quicksetup/org/opends/quicksetup/uninstaller/UserUninstallData.java
rename to opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallUserData.java
index be80151..5e15eda 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UserUninstallData.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallUserData.java
@@ -27,16 +27,16 @@
 
 package org.opends.quicksetup.uninstaller;
 
-import java.util.HashSet;
+import org.opends.quicksetup.UserData;
+
 import java.util.Set;
+import java.util.HashSet;
 
 /**
- * This class is used to provide a data model for the different parameters
- * that the user can provide in the uninstall wizard.
- *
+ * UserData with specific properties for Uninstall.
  */
-public class UserUninstallData
-{
+public class UninstallUserData extends UserData {
+
   private Set<String> externalDbsToRemove = new HashSet<String>();
   private Set<String> externalLogsToRemove = new HashSet<String>();
   private boolean removeDatabases;
@@ -46,8 +46,6 @@
   private boolean removeLDIFs;
   private boolean removeConfigurationAndSchema;
 
-  private boolean stopServer;
-
   /**
    * Sets the database directories located outside the installation which must
    * be removed.
@@ -80,6 +78,7 @@
     externalLogsToRemove.clear();
     externalLogsToRemove.addAll(logFiles);
   }
+
   /**
    * Returns the list of log files located outside the installation that must
    * be removed.
@@ -110,7 +109,6 @@
     this.removeLibrariesAndTools = removeLibrariesAndTools;
   }
 
-
   /**
    * Sets whether to remove databases or not.
    * @param removeDatabases remove databases or not.
@@ -208,24 +206,4 @@
   {
     return removeConfigurationAndSchema;
   }
-
-  /**
-   * Sets whether to stop the server or not.
-   * @param stopServer stop the server or not.
-   */
-  public void setStopServer(boolean stopServer)
-  {
-    this.stopServer = stopServer;
-  }
-
-  /**
-   * Returns whether the user wants to stop the server or not.
-   * @return <CODE>true</CODE> if the user wants to stop the server and <CODE>\
-   * false</CODE> otherwise.
-   */
-  public boolean getStopServer()
-  {
-    return stopServer;
-  }
 }
-

--
Gitblit v1.10.0