From 5064c8626efa1e9d351f05792f9ccc403ec2eac0 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Jun 2007 17:12:53 +0000
Subject: [PATCH] Add some UI to be able to let the user choose whether to enable Windows Service or not.

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

diff --git a/opends/src/quicksetup/org/opends/quicksetup/UserData.java b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
index 7aa2a7b..cd1833e 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/UserData.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -69,6 +69,8 @@
 
   private boolean stopServer;
 
+  private boolean enableWindowsService;
+
   private NewSuffixOptions newSuffixOptions;
 
   private DataReplicationOptions replicationOptions;
@@ -88,6 +90,7 @@
    */
   public UserData() {
     startServer = true;
+    enableWindowsService = false;
 
     NewSuffixOptions defaultNewSuffixOptions = new NewSuffixOptions(
         NewSuffixOptions.Type.CREATE_BASE_ENTRY, "dc=example,dc=com");
@@ -277,6 +280,27 @@
   }
 
   /**
+   * Returns <CODE>true</CODE> if the windows service must be enabled during
+   * installation, <CODE>false</CODE> if not.
+   * @return <CODE>true</CODE> if the windows service must be enabled during
+   * installation, <CODE>false</CODE> if not.
+   */
+  public boolean getEnableWindowsService()
+  {
+    return enableWindowsService;
+  }
+
+  /**
+   * Sets whether we want to enable windows service during installation or not.
+   * @param enableWindowsService the boolean indicating whether we want to
+   * enable windows service during installation or not.
+   */
+  public void setEnableWindowsService(boolean enableWindowsService)
+  {
+    this.enableWindowsService = enableWindowsService;
+  }
+
+  /**
    * Returns the NewSuffixOptions object representing the data in the New Suffix
    * Data Options panel.
    * @return the NewSuffixOptions object representing the data in the New Suffix

--
Gitblit v1.10.0