From 0f7b83578af3a66529590cf0516dc8bc1b79b8c1 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Tue, 05 Jun 2007 21:02:26 +0000
Subject: [PATCH] This commit introduces several bits of quicksetup plumbing necessary to support the upgrader's interaction in asking the user whether they would like to cancel an upgrade if there are problems found:
---
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/UserData.java | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/UserData.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/UserData.java
index 1c7da78..71efd86 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/UserData.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -72,6 +72,10 @@
private SuffixesToReplicateOptions suffixesToReplicateOptions;
+ private boolean silent;
+
+ private boolean noninteractive;
+
/**
* Creates a user data object with default values.
*/
@@ -387,6 +391,40 @@
}
/**
+ * Sets whether or not this session should print messages to the
+ * console if in CLI mode.
+ * @param silent where true indicates this sesssion should be silent
+ */
+ public void setSilent(boolean silent) {
+ this.silent = silent;
+ }
+
+ /**
+ * Indicates whether or not the user has requested silent mode.
+ * @return boolean where true indicates this session should be silent.
+ */
+ public boolean isSilent() {
+ return this.silent;
+ }
+
+ /**
+ * Sets whether or not this session should solicite feedback from the user.
+ * @param noninteractive boolean where true indicates this application
+ * should NOT solicite feedback from the user
+ */
+ public void setNoninteractive(boolean noninteractive) {
+ this.noninteractive = noninteractive;
+ }
+
+ /**
+ * Indicates whether or not the user has requested noninteractive mode.
+ * @return boolean where true indicates this session should be noninteractive
+ */
+ public boolean isNoninteractive() {
+ return this.noninteractive;
+ }
+
+ /**
* Provides the port that will be proposed to the user in the second page of
* the installation wizard. It will check whether we can use ports of type
* X389 and if not it will return -1.
--
Gitblit v1.10.0