From 7a6f3dd0c046db02a9cebddd7e635c2189e378ff Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Sat, 21 Jul 2012 20:43:37 +0000
Subject: [PATCH] Fix OPENDJ-522: Add capability to force the upgrade to complete if errors occur during non-interactive mode

---
 opends/src/quicksetup/org/opends/quicksetup/UserInteraction.java |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/UserInteraction.java b/opends/src/quicksetup/org/opends/quicksetup/UserInteraction.java
index b560ab1..09cfcd2 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/UserInteraction.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/UserInteraction.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2008-2010 Sun Microsystems, Inc.
+ *      Portions copyright 2012 ForgeRock AS.
  */
 
 package org.opends.quicksetup;
@@ -107,19 +108,27 @@
   String createUnorderedList(List<?> list);
 
   /**
-   * Promt the user for a string.
-   * @param prompt for string
-   * @param title of prompt dialog
-   * @param defaultValue for default
-   * @return String typed by user
-   */
-  String promptForString(Message prompt, Message title, String defaultValue);
-
-  /**
    * Tells whether the interaction is command-line based.
    * @return <CODE>true</CODE> if the user interaction is command-line based and
    * <CODE>false</CODE> otherwise.
    */
   boolean isCLI();
 
+  /**
+   * Indicates whether or not the CLI based user has requested to continue when
+   * a non critical error occurs.
+   *
+   * @return boolean where true indicates to continue if there is a non critical
+   *         error.
+   */
+  boolean isForceOnError();
+
+  /**
+   * Indicates whether or not the CLI user has requested interactive behavior.
+   *
+   * @return <code>true</code> if the CLI user has requested interactive
+   *         behavior.
+   */
+  boolean isInteractive();
+
 }

--
Gitblit v1.10.0