| | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.config.ManagedObjectDefinition; |
| | | import org.forgerock.opendj.server.config.client.BackendCfgClient; |
| | | import org.forgerock.opendj.server.config.server.BackendCfg; |
| | | import org.opends.admin.ads.ADSContext; |
| | | import org.opends.admin.ads.ReplicaDescriptor; |
| | | import org.opends.admin.ads.ServerDescriptor; |
| | |
| | | |
| | | final DataReplicationOptions repl = userInstallData.getReplicationOptions(); |
| | | final SuffixesToReplicateOptions suf = userInstallData.getSuffixesToReplicateOptions(); |
| | | final String backendType = userInstallData.getBackendType().getUserFriendlyName().toString(); |
| | | |
| | | boolean createSuffix = repl.getType() == DataReplicationOptions.Type.FIRST_IN_TOPOLOGY |
| | | || repl.getType() == DataReplicationOptions.Type.STANDALONE |
| | |
| | | { |
| | | msg = INFO_REVIEW_CREATE_NO_SUFFIX.get(); |
| | | } |
| | | else if (options.getBaseDns().size() > 1) |
| | | { |
| | | msg = INFO_REVIEW_CREATE_SUFFIX.get( |
| | | backendType, joinAsString(Constants.LINE_SEPARATOR, options.getBaseDns()), arg2); |
| | | } |
| | | else |
| | | { |
| | | msg = INFO_REVIEW_CREATE_SUFFIX.get(backendType, options.getBaseDns().getFirst(), arg2); |
| | | final String backendType = userInstallData.getBackendType().getUserFriendlyName().toString(); |
| | | if (options.getBaseDns().size() > 1) |
| | | { |
| | | msg = INFO_REVIEW_CREATE_SUFFIX.get( |
| | | backendType, joinAsString(Constants.LINE_SEPARATOR, options.getBaseDns()), arg2); |
| | | } |
| | | else |
| | | { |
| | | msg = INFO_REVIEW_CREATE_SUFFIX.get(backendType, options.getBaseDns().getFirst(), arg2); |
| | | } |
| | | } |
| | | } |
| | | else |
| | |
| | | cmdLine.add(getInstallDir(userData) + getSetupFilename()); |
| | | cmdLine.add("--cli"); |
| | | |
| | | final List<String> baseDNs = getBaseDNs(userData); |
| | | if (!baseDNs.isEmpty()) |
| | | final ManagedObjectDefinition<? extends BackendCfgClient, ? extends BackendCfg> backendType = |
| | | userData.getBackendType(); |
| | | if (backendType != null) |
| | | { |
| | | cmdLine.add("--" + ArgumentConstants.OPTION_LONG_BACKEND_TYPE); |
| | | cmdLine.add(BackendTypeHelper.filterSchemaBackendName(userData.getBackendType().getName())); |
| | | cmdLine.add(BackendTypeHelper.filterSchemaBackendName(backendType.getName())); |
| | | } |
| | | |
| | | for (final String baseDN : baseDNs) |
| | | for (final String baseDN : getBaseDNs(userData)) |
| | | { |
| | | cmdLine.add("--baseDN"); |
| | | cmdLine.add(baseDN); |