From 19fb5731ffbe883fe8375ee9b785984c8ccf1880 Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 20 Apr 2007 22:23:11 +0000
Subject: [PATCH] Migrate the BackendConfigManager to the new configuration framework.
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index f017b69..2472675 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -4196,8 +4196,11 @@
baseName = "___NAME___";
}
- lines.add(" <adm:property name=\"" + baseName + "\" mandatory=\"" +
- String.valueOf(attr.isRequired()) + "\">");
+ lines.add(" <adm:property name=\"" + baseName + "\"");
+ lines.add(" mandatory=\""
+ + String.valueOf(attr.isRequired()) + "\"");
+ lines.add(" multi-valued=\""
+ + String.valueOf(attr.isMultiValued()) + "\">");
lines.add(" <adm:synopsis>");
lines.add(" ___SYNOPSIS___");
lines.add(" </adm:synopsis>");
@@ -4238,6 +4241,18 @@
}
lines.add(" </adm:description>");
+ if (attr.requiresAdminAction())
+ {
+ lines.add(" <adm:requires-admin-action>");
+ lines.add(" <adm:server-restart/>");
+ lines.add(" </adm:requires-admin-action>");
+ }
+ if (!attr.isRequired())
+ {
+ lines.add(" <adm:default-behavior>");
+ lines.add(" <adm:undefined/>");
+ lines.add(" </adm:default-behavior>");
+ }
lines.add(" <adm:syntax>");
if (attr instanceof org.opends.server.config.BooleanConfigAttribute)
--
Gitblit v1.10.0