From 265df7b49bf091c79771e8a286f911f8e3ba488c Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 20 Jun 2007 08:56:58 +0000
Subject: [PATCH] Add the following global options in dsservice

---
 opends/src/ads/org/opends/admin/ads/ADSContext.java |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/opends/src/ads/org/opends/admin/ads/ADSContext.java b/opends/src/ads/org/opends/admin/ads/ADSContext.java
index 239cfb2..bc1e02f 100644
--- a/opends/src/ads/org/opends/admin/ads/ADSContext.java
+++ b/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");
   }
 

--
Gitblit v1.10.0