From bf58a21e71230bff9b456627fd31789cc98507bd Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Mon, 27 Apr 2015 10:03:47 +0000
Subject: [PATCH] OPENDJ-1963 Use backend type printable name in UI
---
opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java
index 2e2ad0a..ed59f9f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java
@@ -57,6 +57,7 @@
import org.opends.quicksetup.installer.NewSuffixOptions;
import org.opends.quicksetup.installer.SuffixesToReplicateOptions;
import org.opends.quicksetup.ui.UIFactory;
+import org.opends.server.tools.BackendTypeHelper;
import org.opends.server.util.SetupUtils;
import org.opends.server.util.StaticUtils;
@@ -1381,7 +1382,7 @@
final DataReplicationOptions repl = userInstallData.getReplicationOptions();
final SuffixesToReplicateOptions suf = userInstallData.getSuffixesToReplicateOptions();
- final String backendType = userInstallData.getBackendType();
+ final String backendType = userInstallData.getBackendType().getUserFriendlyName().toString();
boolean createSuffix = repl.getType() == DataReplicationOptions.Type.FIRST_IN_TOPOLOGY
|| repl.getType() == DataReplicationOptions.Type.STANDALONE
@@ -1639,7 +1640,7 @@
if (!baseDNs.isEmpty())
{
cmdLine.add("--" + ArgumentConstants.OPTION_LONG_BACKEND_TYPE);
- cmdLine.add(userData.getBackendType());
+ cmdLine.add(BackendTypeHelper.filterSchemaBackendName(userData.getBackendType().getName()));
}
for (final String baseDN : baseDNs)
--
Gitblit v1.10.0