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

lutoff
20.56.2007 265df7b49bf091c79771e8a286f911f8e3ba488c
opends/src/ads/org/opends/admin/ads/ADSContext.java
@@ -762,12 +762,13 @@
   * The call to this method assumes that OpenDS.jar has already been loaded.
   * So this should not be called by the Java Web Start before being sure that
   * this jar is loaded.
   * @param backendName the backend name which will handle admin inforamtion.
   * @throws ADSContextException if something goes wrong.
   */
  public void createAdminData() throws ADSContextException
  public void createAdminData(String backendName) throws ADSContextException
  {
    // Add the administration suffix
    createAdministrationSuffix();
    createAdministrationSuffix(backendName);
    // Create the DIT below the administration suffix
    createTopContainerEntry();
@@ -1748,13 +1749,19 @@
  /**
   * Creates the Administration Suffix.
   * @param backendName TODO
   * @throws ADSContextException if something goes wrong.
   */
  private void createAdministrationSuffix()
  private void createAdministrationSuffix(String backendName)
  throws ADSContextException
  {
    ADSContextHelper helper = new ADSContextHelper();
    helper.createAdministrationSuffix(getDirContext(), getBackendName(),
    String ben = backendName ;
    if (backendName == null)
    {
      ben = getBackendName() ;
    }
    helper.createAdministrationSuffix(getDirContext(), ben,
        "db", "importAdminTemp");
  }