From 35af51f9683f5ef8cec66baca7b89aa1e1cbc44e Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 11 May 2007 23:27:30 +0000
Subject: [PATCH] Issue 1532: Remove ConfigEntry from Backend API. (DS-1532)

---
 opends/src/server/org/opends/server/backends/jeb/Config.java |   36 +++++++++---------------------------
 1 files changed, 9 insertions(+), 27 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/jeb/Config.java b/opends/src/server/org/opends/server/backends/jeb/Config.java
index 2d54346..63a1cf3 100644
--- a/opends/src/server/org/opends/server/backends/jeb/Config.java
+++ b/opends/src/server/org/opends/server/backends/jeb/Config.java
@@ -201,50 +201,32 @@
 
 
   /**
-   * Initialize this JE backend configuration from a configuration entry.
+   * Initialize this JE backend configuration from its configuration.
    *
-   * @param configEntry The backend configuration entry.
-   * @param  baseDNs      The set of base DNs that have been configured for this
-   *                      backend.
+   * @param  cfg          The backend configuration.
    * @throws ConfigException If there is an error in the configuration entry.
    */
-  public void initializeConfig(ConfigEntry configEntry, DN[] baseDNs)
+  public void initializeConfig(JEBackendCfg cfg)
        throws ConfigException
   {
-    initializeConfig(BackendImpl.getJEBackendCfg(configEntry), configEntry,
-                     baseDNs);
+    initializeConfig(cfg, DirectoryServer.getConfigEntry(cfg.dn()));
   }
 
 
   /**
-   * Initialize this JE backend configuration from a configuration entry.
-   *
-   * @param  cfg          The backend configuration entry.
-   * @param  baseDNs      The set of base DNs that have been configured for this
-   *                      backend.
-   * @throws ConfigException If there is an error in the configuration entry.
-   */
-  public void initializeConfig(JEBackendCfg cfg, DN[] baseDNs)
-       throws ConfigException
-  {
-    initializeConfig(cfg, DirectoryServer.getConfigEntry(cfg.dn()), baseDNs);
-  }
-
-
-  /**
-   * Initialize this JE backend configuration from a configuration object
+   * Initialize this JE backend configuration from its configuration object
    * and its configuration entry.
    *
    * @param  cfg          The backend configuration object.
    * @param  configEntry  The backend configuration entry.
-   * @param  baseDNs      The set of base DNs that have been configured for this
-   *                      backend.
    * @throws ConfigException If there is an error in the configuration entry.
    */
-  private void initializeConfig(JEBackendCfg cfg, ConfigEntry configEntry,
-                                DN[] baseDNs)
+  private void initializeConfig(JEBackendCfg cfg, ConfigEntry configEntry)
        throws ConfigException
   {
+    DN[] baseDNs = new DN[cfg.getBackendBaseDN().size()];
+    cfg.getBackendBaseDN().toArray(baseDNs);
+
     // Set the base DNs.
     this.baseDNs = baseDNs;
 

--
Gitblit v1.10.0