From 6fa0b021682d98ef9f908dfa248985a8507c6fa0 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 17 Sep 2007 15:43:08 +0000
Subject: [PATCH] Implement a new configuration definition called "TopCfgDefn" which acts as the parent of all other configuration definitions. This is analogous to the the "top" object class in LDAP.
---
opends/src/server/org/opends/server/admin/LDAPProfile.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/LDAPProfile.java b/opends/src/server/org/opends/server/admin/LDAPProfile.java
index 3e2505d..c4835e9 100644
--- a/opends/src/server/org/opends/server/admin/LDAPProfile.java
+++ b/opends/src/server/org/opends/server/admin/LDAPProfile.java
@@ -268,6 +268,10 @@
*/
public String getObjectClass(AbstractManagedObjectDefinition<?, ?> d)
throws MissingResourceException {
+ if (d.isTop()) {
+ return "top";
+ }
+
for (Wrapper profile : profiles) {
String objectClass = profile.getObjectClass(d);
if (objectClass != null) {
@@ -309,11 +313,6 @@
d = d.getParent();
}
- // Make sure that we have top.
- if (!s.contains("top")) {
- objectClasses.addFirst("top");
- }
-
return objectClasses;
}
--
Gitblit v1.10.0