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/quicksetup/org/opends/quicksetup/installer/ConfiguredReplication.java | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/ConfiguredReplication.java b/opends/src/quicksetup/org/opends/quicksetup/installer/ConfiguredReplication.java
index 0215b6d..4ab223b 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/ConfiguredReplication.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/ConfiguredReplication.java
@@ -39,6 +39,7 @@
{
private boolean synchProviderCreated;
private boolean synchProviderEnabled;
+ private boolean secureReplicationEnabled;
private boolean replicationServerCreated;
private Set<String> newReplicationServers;
private Set<ConfiguredDomain> domainsConf;
@@ -49,6 +50,8 @@
* created or not.
* @param synchProviderEnabled whether the synchronization provider was
* enabled or not.
+ * @param secureReplicationEnabled whether we enabled security for
+ * replication.
* @param replicationServerCreated whether the replication server was
* created or not.
* @param newReplicationServers the set of replication servers added to
@@ -58,11 +61,13 @@
*/
ConfiguredReplication(boolean synchProviderCreated,
boolean synchProviderEnabled, boolean replicationServerCreated,
- Set<String> newReplicationServers, Set<ConfiguredDomain> domainsConf)
+ boolean secureReplicationEnabled, Set<String> newReplicationServers,
+ Set<ConfiguredDomain> domainsConf)
{
this.synchProviderCreated = synchProviderCreated;
this.synchProviderEnabled = synchProviderEnabled;
this.replicationServerCreated = replicationServerCreated;
+ this.secureReplicationEnabled = secureReplicationEnabled;
this.newReplicationServers = new HashSet<String>();
this.newReplicationServers.addAll(newReplicationServers);
this.domainsConf = new HashSet<ConfiguredDomain>();
@@ -104,6 +109,17 @@
}
/**
+ * Returns <CODE>true</CODE> if the Security was enabled for replication and
+ * <CODE>false</CODE> otherwise.
+ * @return <CODE>true</CODE> if the Security was enabled for replication and
+ * <CODE>false</CODE> otherwise.
+ */
+ boolean isSecureReplicationEnabled()
+ {
+ return secureReplicationEnabled;
+ }
+
+ /**
* Returns <CODE>true</CODE> if the Synchronization Provider was created and
* <CODE>false</CODE> otherwise.
* @return <CODE>true</CODE> if the Synchronization Provider was created and
--
Gitblit v1.10.0