From f388765afea9a353ef2e616ab9960e8acbf32d25 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

---
 opendj-sdk/opends/src/server/org/opends/server/schema/CaseExactEqualityMatchingRule.java |   21 ++++++++-------------
 1 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/schema/CaseExactEqualityMatchingRule.java b/opendj-sdk/opends/src/server/org/opends/server/schema/CaseExactEqualityMatchingRule.java
index 56ed6f6..fcdffa9 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/schema/CaseExactEqualityMatchingRule.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/schema/CaseExactEqualityMatchingRule.java
@@ -30,13 +30,12 @@
 
 import java.util.Arrays;
 
-import org.opends.server.admin.std.server.EqualityMatchingRuleCfg;
+import java.util.Collections;
+import java.util.Collection;
 import org.opends.server.api.EqualityMatchingRule;
-import org.opends.server.config.ConfigException;
 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 static org.opends.server.schema.SchemaConstants.*;
 
@@ -46,7 +45,7 @@
  * This class defines the caseExactMatch matching rule defined in X.520 and
  * referenced in RFC 4519.
  */
-public class CaseExactEqualityMatchingRule
+class CaseExactEqualityMatchingRule
        extends EqualityMatchingRule
 {
   /**
@@ -62,23 +61,19 @@
   /**
    * {@inheritDoc}
    */
-  public void initializeMatchingRule(EqualityMatchingRuleCfg configuration)
-         throws ConfigException, InitializationException
+  public String getName()
   {
-    // No initialization is required.
+    return EMR_CASE_EXACT_NAME;
   }
 
 
 
   /**
-   * Retrieves the common name for this matching rule.
-   *
-   * @return  The common name for this matching rule, or <CODE>null</CODE> if
-   * it does not have a name.
+   * {@inheritDoc}
    */
-  public String getName()
+  public Collection<String> getAllNames()
   {
-    return EMR_CASE_EXACT_NAME;
+    return Collections.singleton(getName());
   }
 
 

--
Gitblit v1.10.0