From e1ea3e0d8999105f144d2be98e0286928b8319ed Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 03 Apr 2007 18:52:11 +0000
Subject: [PATCH] Add initial support for a virtual attribute subsystem, and implement a few different kinds of virtual attributes. This commit addresses the following issues:
---
opends/src/server/org/opends/server/backends/RootDSEBackend.java | 35 ++++-------------------------------
1 files changed, 4 insertions(+), 31 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/RootDSEBackend.java b/opends/src/server/org/opends/server/backends/RootDSEBackend.java
index 9c7daf1..142f6e9 100644
--- a/opends/src/server/org/opends/server/backends/RootDSEBackend.java
+++ b/opends/src/server/org/opends/server/backends/RootDSEBackend.java
@@ -105,9 +105,6 @@
extends Backend
implements ConfigurableComponent
{
-
-
-
// The set of standard "static" attributes that we will always include in the
// root DSE entry and won't change while the server is running.
private ArrayList<Attribute> staticDSEAttributes;
@@ -153,8 +150,6 @@
{
super();
-
-
// Perform all initialization in initializeBackend.
}
@@ -644,30 +639,6 @@
}
-
- // Add the "subschemaSubentry" attribute.
- DN schemaDN = DirectoryServer.getSchemaDN();
- if (schemaDN != null)
- {
- Attribute subschemaSubentryAttr =
- createAttribute(ATTR_SUBSCHEMA_SUBENTRY, ATTR_SUBSCHEMA_SUBENTRY_LC,
- String.valueOf(schemaDN));
- ArrayList<Attribute> subschemaSubentryAttrs = new ArrayList<Attribute>(1);
- subschemaSubentryAttrs.add(subschemaSubentryAttr);
- if (showAllAttributes ||
- (! subschemaSubentryAttr.getAttributeType().isOperational()))
- {
- dseUserAttrs.put(subschemaSubentryAttr.getAttributeType(),
- subschemaSubentryAttrs);
- }
- else
- {
- dseOperationalAttrs.put(subschemaSubentryAttr.getAttributeType(),
- subschemaSubentryAttrs);
- }
- }
-
-
// Add all the standard "static" attributes.
for (Attribute a : staticDSEAttributes)
{
@@ -741,8 +712,10 @@
// Construct and return the entry.
- return new Entry(rootDSEDN, dseObjectClasses, dseUserAttrs,
- dseOperationalAttrs);
+ Entry e = new Entry(rootDSEDN, dseObjectClasses, dseUserAttrs,
+ dseOperationalAttrs);
+ e.processVirtualAttributes();
+ return e;
}
--
Gitblit v1.10.0