From 672dbb3b94ee245fe6e4b0e5393135f57d394223 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 15 Dec 2006 22:03:46 +0000
Subject: [PATCH] Add initial support for updating the Directory Server schema over protocol. In particular, this commit makes it possible to add new attribute types and objectclasses and have them written to the 99-user.ldif file. This implementation does not yet support interacting with any other schema element types, removing or replacing existing schema elements, or interacting with any files other than 99-user.ldif. Additional functionality will be added in the future to enable these capabilities.
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 1d60a8e..6817cbc 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -2326,6 +2326,20 @@
/**
+ * Replaces the Directory Server schema with the provided schema.
+ *
+ * @param schema The new schema to use for the Directory Server.
+ */
+ public static void setSchema(Schema schema)
+ {
+ assert debugEnter(CLASS_NAME, "setSchema", String.valueOf(schema));
+
+ directoryServer.schema = schema;
+ }
+
+
+
+ /**
* Retrieves the set of matching rules registered with the Directory Server.
* The mapping will be between the lowercase name or OID for each matching
* rule and the matching rule implementation. The same matching rule instance
--
Gitblit v1.10.0