From 426f6fff96db9c07683e5a27b8b745b3e13c29ff Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Fri, 08 Jun 2007 19:15:27 +0000
Subject: [PATCH] This commit address several related issues regarding the upgrader CLI:

---
 opends/src/quicksetup/org/opends/quicksetup/UserData.java |   30 +++++++++++++++++++++---------
 1 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/UserData.java b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
index cd1833e..0ad6cd5 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/UserData.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -83,7 +83,7 @@
 
   private boolean silent;
 
-  private boolean noninteractive;
+  private boolean interactive;
 
   /**
    * Creates a user data object with default values.
@@ -454,6 +454,11 @@
 
   /**
    * Indicates whether or not the user has requested silent mode.
+   * <p>
+   * Silent mode in the CLI means that nothing is written to output including
+   * prompts for information and whether or not to continue an operation
+   * experiencing errors.
+   *
    * @return boolean where true indicates this session should be silent.
    */
   public boolean isSilent() {
@@ -461,20 +466,27 @@
   }
 
   /**
-   * Sets whether or not this session should solicite feedback from the user.
-   * @param noninteractive boolean where true indicates this application
+   * Sets whether or not this session should solicite feedback from the user
+   * for missing information.
+   * @param interactive boolean where true indicates this application
    *        should NOT solicite feedback from the user
    */
-  public void setNoninteractive(boolean noninteractive) {
-    this.noninteractive = noninteractive;
+  public void setInteractive(boolean interactive) {
+    this.interactive = interactive;
   }
 
   /**
-   * Indicates whether or not the user has requested noninteractive mode.
-   * @return boolean where true indicates this session should be noninteractive
+   * Indicates whether or not the user has requested interactive mode.
+   * <p>
+   * Interactive mode in the CLI means that the CLI will prompt the user
+   * for more information if it is required.  Interactivity does NOT
+   * affect prompts to the user regarding actions like continuing an operation
+   * that is experiencing errors.
+   *
+   * @return boolean where true indicates this session should be interactive
    */
-  public boolean isNoninteractive() {
-    return this.noninteractive;
+  public boolean isInteractive() {
+    return !this.silent && this.interactive;
   }
 
   /**

--
Gitblit v1.10.0