From 4dc4aa0c15b318b761b92e2394d0fde58a3e8232 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 18 Dec 2007 11:24:28 +0000
Subject: [PATCH] Fix for issue 1862 (verbosity options for quicksetup tools)

---
 opends/src/quicksetup/org/opends/quicksetup/UserData.java |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/UserData.java b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
index bc4a967..8b48a3d 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/UserData.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -84,6 +84,8 @@
 
   private boolean quiet;
 
+  private boolean verbose;
+
   private boolean interactive;
 
   private boolean forceOnError;
@@ -100,6 +102,7 @@
     startServer = true;
     enableWindowsService = false;
     forceOnError = true;
+    verbose = false;
 
     LinkedList<String> baseDn = new LinkedList<String>();
     baseDn.add("dc=example,dc=com");
@@ -473,6 +476,23 @@
   }
 
   /**
+   * Sets whether or not this session should be verbose.
+   * @param verbose where true indicates this sesssion should be verbose
+   */
+  public void setVerbose(boolean verbose) {
+    this.verbose = verbose;
+  }
+
+  /**
+   * Indicates whether or not the user has requested verbose mode.
+   *
+   * @return boolean where true indicates this session should be verbose.
+   */
+  public boolean isVerbose() {
+    return this.verbose;
+  }
+
+  /**
    * Sets whether or not we must continue when there is a non critical error.
    * @param forceOnError where true indicates to continue uninstall if there is
    * a non critical error.

--
Gitblit v1.10.0