From b7b304994dd037ced0df2d5d04c1aa4d41c6bb72 Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Wed, 17 Dec 2008 19:25:45 +0000
Subject: [PATCH] Integerated first part of the Fix for Issue# 262:Plugin for Collation/Internationalization
---
opends/src/server/org/opends/server/schema/CaseExactIA5EqualityMatchingRule.java | 28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/opends/src/server/org/opends/server/schema/CaseExactIA5EqualityMatchingRule.java b/opends/src/server/org/opends/server/schema/CaseExactIA5EqualityMatchingRule.java
index ff34703..04bd75e 100644
--- a/opends/src/server/org/opends/server/schema/CaseExactIA5EqualityMatchingRule.java
+++ b/opends/src/server/org/opends/server/schema/CaseExactIA5EqualityMatchingRule.java
@@ -31,14 +31,13 @@
import java.util.Arrays;
-import org.opends.server.admin.std.server.EqualityMatchingRuleCfg;
+import java.util.Collection;
+import java.util.Collections;
import org.opends.server.api.EqualityMatchingRule;
-import org.opends.server.config.ConfigException;
import org.opends.server.core.DirectoryServer;
import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.types.ByteString;
import org.opends.server.types.DirectoryException;
-import org.opends.server.types.InitializationException;
import org.opends.server.types.ResultCode;
import static org.opends.messages.SchemaMessages.*;
@@ -50,7 +49,7 @@
* This class implements the caseExactIA5Match matching rule defined in RFC
* 2252.
*/
-public class CaseExactIA5EqualityMatchingRule
+class CaseExactIA5EqualityMatchingRule
extends EqualityMatchingRule
{
/**
@@ -64,17 +63,6 @@
/**
- * {@inheritDoc}
- */
- public void initializeMatchingRule(EqualityMatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- // No initialization is required.
- }
-
-
-
- /**
* Retrieves the common name for this matching rule.
*
* @return The common name for this matching rule, or <CODE>null</CODE> if
@@ -88,6 +76,16 @@
/**
+ * {@inheritDoc}
+ */
+ public Collection<String> getAllNames()
+ {
+ return Collections.singleton(getName());
+ }
+
+
+
+ /**
* Retrieves the OID for this matching rule.
*
* @return The OID for this matching rule.
--
Gitblit v1.10.0