From 486ffa6d0abfa0b91dc7ab22ee71758b5eecfb88 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 26 Sep 2007 18:57:15 +0000
Subject: [PATCH] Fix for 2306: configure replication encryption on or off in dsreplication and setup-gui

---
 opends/src/guitools/org/opends/guitools/replicationcli/EnableReplicationUserData.java |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/replicationcli/EnableReplicationUserData.java b/opends/src/guitools/org/opends/guitools/replicationcli/EnableReplicationUserData.java
index a15aa92..3020754 100644
--- a/opends/src/guitools/org/opends/guitools/replicationcli/EnableReplicationUserData.java
+++ b/opends/src/guitools/org/opends/guitools/replicationcli/EnableReplicationUserData.java
@@ -42,6 +42,7 @@
   private boolean useStartTLS1;
   private boolean useSSL1;
   private int replicationPort1;
+  private boolean secureReplication1;
   private String hostName2;
   private int port2;
   private String pwd2;
@@ -49,6 +50,7 @@
   private boolean useStartTLS2;
   private boolean useSSL2;
   private int replicationPort2;
+  private boolean secureReplication2;
   private boolean replicateSchema = true;
 
   /**
@@ -343,4 +345,48 @@
   {
     this.replicateSchema = replicateSchema;
   }
+
+  /**
+   * Returns <CODE>true</CODE> if the user asked to have secure replication
+   * communication with the first server and <CODE>false</CODE> otherwise.
+   * @return <CODE>true</CODE> if the user asked to have secure replication
+   * communication with the first server and <CODE>false</CODE> otherwise.
+   */
+  public boolean isSecureReplication1()
+  {
+    return secureReplication1;
+  }
+
+  /**
+   * Sets whether to have secure replication communication with the first server
+   * or not.
+   * @param secureReplication1 whether to have secure replication communication
+   * with the first server or not.
+   */
+  public void setSecureReplication1(boolean secureReplication1)
+  {
+    this.secureReplication1 = secureReplication1;
+  }
+
+  /**
+   * Returns <CODE>true</CODE> if the user asked to have secure replication
+   * communication with the second server and <CODE>false</CODE> otherwise.
+   * @return <CODE>true</CODE> if the user asked to have secure replication
+   * communication with the second server and <CODE>false</CODE> otherwise.
+   */
+  public boolean isSecureReplication2()
+  {
+    return secureReplication2;
+  }
+
+  /**
+   * Sets whether to have secure replication communication with the second
+   * server or not.
+   * @param secureReplication2 whether to have secure replication communication
+   * with the second server or not.
+   */
+  public void setSecureReplication2(boolean secureReplication2)
+  {
+    this.secureReplication2 = secureReplication2;
+  }
 }

--
Gitblit v1.10.0