From 4cb8262e95fde77e6a0d2c84f1aa118e3b1ee850 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Thu, 06 Nov 2014 14:50:48 +0000
Subject: [PATCH] OPENDJ-1591 CR-5092 Switch server to SDK matching rules

---
 opendj3-server-dev/src/server/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java b/opendj3-server-dev/src/server/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java
index e6a97af..ca1d685 100644
--- a/opendj3-server-dev/src/server/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java
+++ b/opendj3-server-dev/src/server/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java
@@ -30,10 +30,11 @@
 
 import java.util.Collection;
 import java.util.Collections;
-import org.opends.server.api.MatchingRuleFactory;
-import org.opends.server.admin.std.server.MatchingRuleCfg;
-import org.opends.server.api.MatchingRule;
+
 import org.forgerock.opendj.config.server.ConfigException;
+import org.forgerock.opendj.ldap.schema.CoreSchema;
+import org.opends.server.admin.std.server.MatchingRuleCfg;
+import org.opends.server.api.MatchingRuleFactory;
 import org.opends.server.types.InitializationException;
 
 /**
@@ -43,7 +44,7 @@
         extends MatchingRuleFactory<MatchingRuleCfg>
 {
   //Associated Matching Rule.
-  private MatchingRule matchingRule;
+  private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
 
 
 
@@ -54,16 +55,14 @@
  public final void initializeMatchingRule(MatchingRuleCfg configuration)
          throws ConfigException, InitializationException
  {
-   matchingRule = new UUIDOrderingMatchingRule();
+   matchingRule = CoreSchema.getUUIDOrderingMatchingRule();
  }
 
-
-
  /**
   * {@inheritDoc}
   */
  @Override
- public final Collection<MatchingRule> getMatchingRules()
+ public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
  {
     return Collections.singleton(matchingRule);
  }

--
Gitblit v1.10.0