From ccd66a6d38f7d3a55a4fddd2945d8ab8920b007e Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 07 Nov 2016 15:05:30 +0000
Subject: [PATCH] OPENDJ-3417 Move management of backends and listeners from DirectoryServer to BackendConfigManager

---
 opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
index fff1f37..fc300ea 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
@@ -331,7 +331,7 @@
 
     // Add the "ds-private-naming-contexts" attribute.
     Attribute privateNamingContextAttr = createAttribute(
-        ATTR_PRIVATE_NAMING_CONTEXTS, serverContext.getBackendManager().getPrivateNamingContexts().keySet());
+        ATTR_PRIVATE_NAMING_CONTEXTS, serverContext.getBackendConfigManager().getPrivateNamingContexts().keySet());
     addAttribute(privateNamingContextAttr, dseUserAttrs, dseOperationalAttrs);
 
     // Add the "supportedControl" attribute.
@@ -419,7 +419,7 @@
     // TODO: this duplicates what is done in DirectoryServer (see DirectoryServer.getSupportedControls())
     // How should this be handled ?
     final Set<String> controls = new HashSet<>();
-    for (Backend<?> backend : serverContext.getBackendManager().getAllBackends())
+    for (Backend<?> backend : serverContext.getBackendConfigManager().getAllBackends())
     {
       controls.addAll(backend.getSupportedControls());
     }
@@ -429,7 +429,7 @@
   private Set<DN> getAllPublicNamingContexts()
   {
     Set<DN> namingContexts = new HashSet<>();
-    for (Backend<?> backend : serverContext.getBackendManager().getAllBackends())
+    for (Backend<?> backend : serverContext.getBackendConfigManager().getAllBackends())
     {
       namingContexts.addAll(backend.getBaseDNs());
     }
@@ -440,7 +440,7 @@
   {
     // TODO: this implementation is insufficient because it handles only the local backends
     // The non-local backends must be added for completeness
-    return new HashSet<DN>(serverContext.getBackendManager().getPublicNamingContexts().keySet());
+    return new HashSet<DN>(serverContext.getBackendConfigManager().getPublicNamingContexts().keySet());
   }
 
   private void addAll(Collection<Attribute> attributes,

--
Gitblit v1.10.0