From 7ddf5a923866031a7034f457715d6a5e4ecbca67 Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Sat, 31 Jan 2009 07:06:11 +0000
Subject: [PATCH] Integrating the changes related to Collation indexing support
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index bd3e97a..9551fdc 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2008 Sun Microsystems, Inc.
+ * Copyright 2006-2009 Sun Microsystems, Inc.
*/
package org.opends.server.core;
@@ -75,6 +75,7 @@
import org.opends.server.api.AccessControlHandler;
import org.opends.server.api.plugin.PluginType;
import org.opends.server.api.plugin.PluginResult;
+import org.opends.server.api.ExtensibleMatchingRule;
import org.opends.server.backends.RootDSEBackend;
import static org.opends.server.config.ConfigConstants.DN_CONFIG_ROOT;
import static org.opends.server.config.ConfigConstants.DN_MONITOR_ROOT;
@@ -3515,6 +3516,41 @@
/**
+ * Retrieves the set of extensible matching rules registered with the
+ * Directory Server. The mapping will be between the lowercase name or OID
+ * for each extensible matching rule and the matching rule implementation. The
+ * same extensible matching rule instance may be included multiple times with
+ * different keys.
+ *
+ * @return The set of extensible matching rules registered with the Directory
+ * Server.
+ */
+ public static Map<String,ExtensibleMatchingRule>
+ getExtensibleMatchingRules()
+ {
+ return directoryServer.schema.getExtensibleMatchingRules();
+ }
+
+
+
+ /**
+ * Retrieves the extensible matching rule with the specified name or OID.
+ *
+ * @param lowerName The lowercase name or OID for the extensible matching
+ * rule to retrieve.
+ *
+ * @return The requested extensible matching rule, or <CODE>null</CODE> if no
+ * such matching rule has been defined in the server.
+ */
+ public static ExtensibleMatchingRule
+ getExtensibleMatchingRule(String lowerName)
+ {
+ return directoryServer.schema.getExtensibleMatchingRule(lowerName);
+ }
+
+
+
+ /**
* Retrieves the set of objectclasses defined in the Directory Server.
*
* @return The set of objectclasses defined in the Directory Server.
--
Gitblit v1.10.0