From 73fe1b1f4f6c50c2e8d4de7b3b0e09f9c5f1365b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 12 Sep 2007 23:21:22 +0000
Subject: [PATCH] Fix for issues: 1335: define, document, review CLI to register a server in a synch 1336: CLI implementation to register a server in a synchronization 1878: provide a CLI to initialize a replication topology from a gi 2201: ads-trustore missing when not configuring replication with t 2250: Setup and dsreplication utilities should configure schema sy

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
index 6133171..4c72ac0 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliArgumentParser.java
@@ -148,6 +148,11 @@
   private BooleanArgument skipPortCheckArg;
 
   /**
+   * The 'noSchemaReplication' argument to not replicate schema.
+   */
+  private BooleanArgument noSchemaReplicationArg;
+
+  /**
    * The 'hostName' argument for the source server.
    */
   private StringArgument hostNameSourceArg = null;
@@ -489,6 +494,10 @@
         "skipportcheck", 'S', "skipPortCheck",
         INFO_DESCRIPTION_ENABLE_REPLICATION_SKIPPORT.get());
 
+    noSchemaReplicationArg = new BooleanArgument(
+        "noschemareplication", null, "noSchemaReplication",
+        INFO_DESCRIPTION_ENABLE_REPLICATION_NO_SCHEMA_REPLICATION.get());
+
     enableReplicationSubCmd = new SubCommand(this,
         ENABLE_REPLICATION_SUBCMD_NAME,
         INFO_DESCRIPTION_SUBCMD_ENABLE_REPLICATION.get());
@@ -498,7 +507,7 @@
         bindPasswordFile1Arg, useStartTLS1Arg, useSSL1Arg, replicationPort1Arg,
         hostName2Arg, port2Arg, bindDn2Arg, bindPassword2Arg,
         bindPasswordFile2Arg, useStartTLS2Arg, useSSL2Arg, replicationPort2Arg,
-        skipPortCheckArg
+        skipPortCheckArg, noSchemaReplicationArg
     };
     for (int i=0; i<argsToAdd.length; i++)
     {
@@ -1046,6 +1055,16 @@
   }
 
   /**
+   * Returns whether the user asked to not replicate the schema between servers.
+   * @return <CODE>true</CODE> the user asked to not replicate schema and <CODE>
+   * false</CODE> otherwise.
+   */
+  public boolean noSchemaReplication()
+  {
+    return noSchemaReplicationArg.isPresent();
+  }
+
+  /**
    * Returns the host name explicitly provided in the disable replication
    * subcommand.
    * @return the host name explicitly provided in the disable replication

--
Gitblit v1.10.0