mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
28.52.2009 f5e5afb2c4d8160293cb1812a57aa8d990f8cd3f
Simplify the name of the domain and use (when possible) only the base DN as ID for the domain.  This is helpful when using dsreplication.
2 files modified
9 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java 5 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java 4 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
@@ -98,7 +98,6 @@
      InstallerHelper.class.getName());
  private static final int MAX_ID_VALUE = Short.MAX_VALUE;
  private static final String DOMAIN_BASE_NAME = "domain ";
  /**
   * Invokes the method ConfigureDS.configMain with the provided parameters.
@@ -841,7 +840,7 @@
  public static String getDomainName(String[] existingDomains, int newDomainId,
      String baseDN)
  {
    String domainName = baseDN + " ("+DOMAIN_BASE_NAME+newDomainId+")";
    String domainName = baseDN;
    boolean nameExists = true;
    int j = 0;
    while (nameExists)
@@ -853,7 +852,7 @@
      }
      if (found)
      {
        domainName = DOMAIN_BASE_NAME+newDomainId+"-"+j;
        domainName = baseDN+"-"+j;
      }
      else
      {
opends/src/quicksetup/org/opends/quicksetup/util/Utils.java
@@ -1158,6 +1158,10 @@
    {
      arg = ne.getLocalizedMessage();
    }
    else if (ne.getExplanation() != null)
    {
      arg = ne.getExplanation();
    }
    else
    {
      arg = ne.toString(true);