From c2eaf97f09d246d92b8259687472304c5bab695c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 28 Jan 2016 08:29:17 +0000
Subject: [PATCH] (PR-201) Removed all matching rule factories when matching rules are part of the core schema Only left CollationMatchingRuleFactory in order to fix OPENDJ-2638
---
/dev/null | 63 -------
opendj-server-legacy/src/main/java/org/opends/server/schema/CollationMatchingRuleFactory.java | 57 +-----
opendj-server-legacy/src/main/java/org/opends/server/core/MatchingRuleConfigManager.java | 16 -
opendj-server-legacy/resource/config/config.ldif | 346 --------------------------------------
4 files changed, 13 insertions(+), 469 deletions(-)
diff --git a/opendj-server-legacy/resource/config/config.ldif b/opendj-server-legacy/resource/config/config.ldif
index 53fcae6..30e79d2 100644
--- a/opendj-server-legacy/resource/config/config.ldif
+++ b/opendj-server-legacy/resource/config/config.ldif
@@ -21,7 +21,7 @@
#
# Copyright 2006-2010 Sun Microsystems, Inc.
# Portions Copyright 2012-2014 Manuel Gaupp
-# Portions Copyright 2010-2015 ForgeRock AS.
+# Portions Copyright 2010-2016 ForgeRock AS.
# Portions copyright 2015 Edan Idzerda
#
#
@@ -772,134 +772,6 @@
ds-cfg-java-class: org.opends.server.schema.AuthPasswordEqualityMatchingRuleFactory
ds-cfg-enabled: true
-dn: cn=Auth Password Exact Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Auth Password Exact Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.AuthPasswordExactEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Bit String Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Bit String Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.BitStringEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Boolean Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Boolean Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.BooleanEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Exact Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Case Exact Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseExactEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Exact Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: Case Exact Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseExactOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Exact Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Case Exact Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseExactSubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Exact IA5 Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Case Exact IA5 Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseExactIA5EqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Exact IA5 Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Case Exact IA5 Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseExactIA5SubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Case Ignore Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: Case Ignore Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Case Ignore Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreSubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore IA5 Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Case Ignore IA5 Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreIA5EqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore IA5 Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Case Ignore IA5 Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreIA5SubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore List Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Case Ignore List Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreListEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Case Ignore List Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Case Ignore List Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CaseIgnoreListSubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Certificate Exact Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Certificate Exact Matching Rule
-ds-cfg-java-class: org.opends.server.schema.CertificateExactMatchingRuleFactory
-ds-cfg-enabled: true
-
dn: cn=Collation Matching Rule,cn=Matching Rules,cn=config
objectClass: top
objectClass: ds-cfg-matching-rule
@@ -1073,46 +945,6 @@
#ds-cfg-collation: zh-SG:1.3.6.1.4.1.42.2.27.9.4.147.1
ds-cfg-collation: zh-TW:1.3.6.1.4.1.42.2.27.9.4.148.1
-dn: cn=Directory String First Component Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Directory String First Component Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.DirectoryStringFirstComponentEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Distinguished Name Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Distinguished Name Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.DistinguishedNameEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Double Metaphone Approximate Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-approximate-matching-rule
-cn: Double Metaphone Approximate Matching Rule
-ds-cfg-java-class: org.opends.server.schema.DoubleMetaphoneApproximateMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Generalized Time Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Generalized Time Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.GeneralizedTimeEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Generalized Time Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: Generalized Time Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.GeneralizedTimeOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
dn: cn=Historical CSN Ordering Matching Rule,cn=Matching Rules,cn=config
objectClass: ds-cfg-ordering-matching-rule
objectClass: top
@@ -1121,150 +953,6 @@
ds-cfg-enabled: true
cn: Historical CSN Ordering Matching Rule
-dn: cn=Integer Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Integer Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.IntegerEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Integer Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: Integer Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.IntegerOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Integer First Component Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Integer First Component Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.IntegerFirstComponentEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Keyword Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Keyword Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.KeywordEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Numeric String Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Numeric String Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.NumericStringEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Numeric String Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: Numeric String Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.NumericStringOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Numeric String Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Numeric String Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.NumericStringSubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Object Identifier Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Object Identifier Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.ObjectIdentifierEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Object Identifier First Component Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Object Identifier First Component Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.ObjectIdentifierFirstComponentEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Octet String Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Octet String Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.OctetStringEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Octet String Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: Octet String Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.OctetStringOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Octet String Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Octet String Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.OctetStringSubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Presentation Address Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Presentation Address Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.PresentationAddressEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Protocol Information Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Protocol Information Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.ProtocolInformationEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Telephone Number Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Telephone Number Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.TelephoneNumberEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Telephone Number Substring Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-substring-matching-rule
-cn: Telephone Number Substring Matching Rule
-ds-cfg-java-class: org.opends.server.schema.TelephoneNumberSubstringMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Time Based Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-extensible-matching-rule
-cn: Time Based Matching Rule
-ds-cfg-java-class: org.opends.server.schema.TimeBasedMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Unique Member Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Unique Member Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.UniqueMemberEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
dn: cn=User Password Equality Matching Rule,cn=Matching Rules,cn=config
objectClass: top
objectClass: ds-cfg-matching-rule
@@ -1273,38 +961,6 @@
ds-cfg-java-class: org.opends.server.schema.UserPasswordEqualityMatchingRuleFactory
ds-cfg-enabled: true
-dn: cn=User Password Exact Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: User Password Exact Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.UserPasswordExactEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=UUID Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: UUID Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.UUIDEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=UUID Ordering Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-ordering-matching-rule
-cn: UUID Ordering Matching Rule
-ds-cfg-java-class: org.opends.server.schema.UUIDOrderingMatchingRuleFactory
-ds-cfg-enabled: true
-
-dn: cn=Word Equality Matching Rule,cn=Matching Rules,cn=config
-objectClass: top
-objectClass: ds-cfg-matching-rule
-objectClass: ds-cfg-equality-matching-rule
-cn: Word Equality Matching Rule
-ds-cfg-java-class: org.opends.server.schema.WordEqualityMatchingRuleFactory
-ds-cfg-enabled: true
-
dn: cn=Monitor Providers,cn=config
objectClass: top
objectClass: ds-cfg-branch
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/core/MatchingRuleConfigManager.java b/opendj-server-legacy/src/main/java/org/opends/server/core/MatchingRuleConfigManager.java
index a0bcf5a..8e0ab20 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/core/MatchingRuleConfigManager.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/core/MatchingRuleConfigManager.java
@@ -50,12 +50,10 @@
import org.opends.server.admin.std.server.MatchingRuleCfg;
import org.opends.server.admin.std.server.RootCfg;
import org.opends.server.api.MatchingRuleFactory;
-import org.opends.server.schema.CollationMatchingRuleFactory;
import org.opends.server.types.DN;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.InitializationException;
import org.opends.server.types.MatchingRuleUse;
-import org.opends.server.types.Schema;
/**
* This class defines a utility that will be used to manage the set of matching
@@ -137,12 +135,7 @@
{
for(MatchingRule matchingRule: factory.getMatchingRules())
{
- Schema schema = serverContext.getSchema();
- // skip the matching rule registration if already defined in the (core) schema
- if (!schema.hasMatchingRule(matchingRule.getNameOrOID()))
- {
- DirectoryServer.registerMatchingRule(matchingRule, false);
- }
+ DirectoryServer.registerMatchingRule(matchingRule, false);
}
matchingRuleFactories.put(mrConfiguration.dn(), factory);
}
@@ -500,13 +493,6 @@
propertyDefinition.loadClass(className,
MatchingRuleFactory.class);
factory = matchingRuleFactoryClass.newInstance();
- // specific behavior for collation
- // in order to avoid useless injection of context server for all factories
- if (factory instanceof CollationMatchingRuleFactory)
- {
- CollationMatchingRuleFactory collationFactory = (CollationMatchingRuleFactory) factory;
- collationFactory.setServerContext(serverContext);
- }
if (initialize)
{
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordExactEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordExactEqualityMatchingRuleFactory.java
deleted file mode 100644
index 89f3e29..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/AuthPasswordExactEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for AuthPasswordExactEqualityMatchingRule.
- */
-public final class AuthPasswordExactEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getAuthPasswordExactMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/BitStringEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/BitStringEqualityMatchingRuleFactory.java
deleted file mode 100644
index d7f270e..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/BitStringEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for BitStringEqualityMatchingRule.
- */
-public final class BitStringEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getBitStringMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/BooleanEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/BooleanEqualityMatchingRuleFactory.java
deleted file mode 100644
index 24502a3..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/BooleanEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for BooleanEqualityMatchingRule.
- */
-public final class BooleanEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getBooleanMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactEqualityMatchingRuleFactory.java
deleted file mode 100644
index 0c1b2ab..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseExactEqualityMatchingRule.
- */
-public final class CaseExactEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseExactMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactIA5EqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactIA5EqualityMatchingRuleFactory.java
deleted file mode 100644
index 598de12..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactIA5EqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseExactIA5EqualityMatchingRule.
- */
-public final class CaseExactIA5EqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseExactIA5MatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactIA5SubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactIA5SubstringMatchingRuleFactory.java
deleted file mode 100644
index f37c8f6..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactIA5SubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseExactIA5SubstringMatchingRule.
- */
-public final class CaseExactIA5SubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getInstance().getMatchingRule(SchemaConstants.SMR_CASE_EXACT_IA5_OID);
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactOrderingMatchingRuleFactory.java
deleted file mode 100644
index d9c284a..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseExactOrderingMatchingRule.
- */
-public final class CaseExactOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseExactOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactSubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactSubstringMatchingRuleFactory.java
deleted file mode 100644
index a03ac3c..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseExactSubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseExactSubstringMatchingRule.
- */
-public final class CaseExactSubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseExactSubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreEqualityMatchingRuleFactory.java
deleted file mode 100644
index 776ca0e..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreEqualityMatchingRule.
- */
-public final class CaseIgnoreEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreIA5EqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreIA5EqualityMatchingRuleFactory.java
deleted file mode 100644
index f518b4e..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreIA5EqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreIA5EqualityMatchingRule.
- */
-public final class CaseIgnoreIA5EqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated MatchingRule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreIA5MatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRuleFactory.java
deleted file mode 100644
index 9f77da2..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreIA5SubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreIA5SubstringMatchingRule.
- */
-public final class CaseIgnoreIA5SubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreIA5SubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreListEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreListEqualityMatchingRuleFactory.java
deleted file mode 100644
index c22254b..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreListEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreListEqualityMatchingRule.
- */
-public final class CaseIgnoreListEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreListMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreListSubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreListSubstringMatchingRuleFactory.java
deleted file mode 100644
index cd3d7df..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreListSubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreSubstringMatchingRule.
- */
-public final class CaseIgnoreListSubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreListSubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreOrderingMatchingRuleFactory.java
deleted file mode 100644
index 99d859a..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreOrderingMatchingRule.
- */
-public final class CaseIgnoreOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreSubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreSubstringMatchingRuleFactory.java
deleted file mode 100644
index 94cdd45..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CaseIgnoreSubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CaseIgnoreSubstringMatchingRule.
- */
-public final class CaseIgnoreSubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCaseIgnoreSubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CertificateExactMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CertificateExactMatchingRuleFactory.java
deleted file mode 100644
index e965518..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CertificateExactMatchingRuleFactory.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2013-2014 Manuel Gaupp
- * Portions Copyright 2015 ForgeRock AS.
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for CertificateExactMatchingRule.
- */
-public final class CertificateExactMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getCertificateExactMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/CollationMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/CollationMatchingRuleFactory.java
index ecdc0bb..1a6d452 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/CollationMatchingRuleFactory.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/schema/CollationMatchingRuleFactory.java
@@ -26,6 +26,9 @@
*/
package org.opends.server.schema;
+import static org.opends.messages.ConfigMessages.*;
+import static org.opends.messages.SchemaMessages.*;
+
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@@ -45,14 +48,10 @@
import org.opends.server.admin.std.server.CollationMatchingRuleCfg;
import org.opends.server.api.MatchingRuleFactory;
import org.opends.server.core.DirectoryServer;
-import org.opends.server.core.ServerContext;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.InitializationException;
import org.opends.server.util.CollectionUtils;
-import static org.opends.messages.ConfigMessages.*;
-import static org.opends.messages.SchemaMessages.*;
-
/**
* This class is a factory class for Collation matching rules. It
* creates different matching rules based on the configuration entries.
@@ -71,29 +70,14 @@
/** Map of OID and the Matching Rule. */
private final Map<String, MatchingRule> matchingRules = new HashMap<>();
- private ServerContext serverContext;
-
-
/** Creates a new instance of CollationMatchingRuleFactory. */
public CollationMatchingRuleFactory()
{
super();
}
- /**
- * Sets the server context.
- *
- * @param serverContext
- * The server context.
- */
- public void setServerContext(ServerContext serverContext)
- {
- this.serverContext = serverContext;
- }
-
- /** {@inheritDoc} */
@Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
+ public final Collection<MatchingRule> getMatchingRules()
{
return Collections.unmodifiableCollection(matchingRules.values());
}
@@ -111,15 +95,6 @@
matchingRules.put(oid, matchingRule);
}
- /**
- * Clears the Map containing matching Rules.
- */
- private void resetRules()
- {
- matchingRules.clear();
- }
-
- /** {@inheritDoc} */
@Override
public void initializeMatchingRule(CollationMatchingRuleCfg configuration)
throws ConfigException, InitializationException
@@ -172,7 +147,6 @@
currentConfig.addCollationChangeListener(this);
}
- /** {@inheritDoc} */
@Override
public void finalizeMatchingRule()
{
@@ -180,7 +154,6 @@
currentConfig.removeCollationChangeListener(this);
}
- /** {@inheritDoc} */
@Override
public ConfigChangeResult applyConfigurationChange(
CollationMatchingRuleCfg configuration)
@@ -199,18 +172,16 @@
}
// Since we have come here it means that this Factory is enabled and
- // there is a change in the CollationMatchingRuleFactory's
- // configuration.
+ // there is a change in the CollationMatchingRuleFactory's configuration.
// Deregister all the Matching Rule corresponding to this factory.
for (MatchingRule rule : getMatchingRules())
{
DirectoryServer.deregisterMatchingRule(rule);
}
- // Clear the associated matching rules.
- resetRules();
+ matchingRules.clear();
- final Schema schema = serverContext.getSchemaNG();
+ final Schema schema = DirectoryServer.getSchema().getSchemaNG();
for (String collation : configuration.getCollation())
{
// validation has already been performed in isConfigurationChangeAcceptable()
@@ -237,7 +208,6 @@
return ccr;
}
- /** {@inheritDoc} */
@Override
public boolean isConfigurationChangeAcceptable(
CollationMatchingRuleCfg configuration,
@@ -245,15 +215,14 @@
{
boolean configAcceptable = true;
- // If the new configuration disables this factory, don't do
- // anything.
+ // If the new configuration disables this factory, don't do anything.
if (!configuration.isEnabled())
{
return configAcceptable;
}
- // If it comes here we don't need to verify MatchingRuleType; it
- // should be okay as its syntax is verified by the admin framework.
+ // If it comes here we don't need to verify MatchingRuleType;
+ // it should be okay as its syntax is verified by the admin framework.
// Iterate over the collations and verify if the format is okay.
// Also, verify if the locale is allowed by the JVM.
for (String collation : configuration.getCollation())
@@ -283,7 +252,6 @@
return configAcceptable;
}
-
/**
* Verifies if the locale is supported by the JVM.
*
@@ -329,10 +297,7 @@
return locale;
}
- /**
- * A utility class for extracting the OID and Language Tag from the
- * configuration entry.
- */
+ /** A utility class for extracting the OID and Language Tag from the configuration entry. */
private final class CollationMapper
{
/** OID of the collation rule. */
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/DirectoryStringFirstComponentEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/DirectoryStringFirstComponentEqualityMatchingRuleFactory.java
deleted file mode 100644
index ff61d34..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/DirectoryStringFirstComponentEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for DirectoryStringFirstComponentEqualityMatchingRule.
- */
-public final class DirectoryStringFirstComponentEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getDirectoryStringFirstComponentMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/DistinguishedNameEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/DistinguishedNameEqualityMatchingRuleFactory.java
deleted file mode 100644
index b968f7f..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/DistinguishedNameEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for DistinguishedNameEqualityMatchingRule.
- */
-public final class DistinguishedNameEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getDistinguishedNameMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRuleFactory.java
deleted file mode 100644
index 0f5a5d8..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for DoubleMetaphoneApproximateMatchingRule.
- */
-public final class DoubleMetaphoneApproximateMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getInstance().getMatchingRule("1.3.6.1.4.1.26027.1.4.1");
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeEqualityMatchingRuleFactory.java
deleted file mode 100644
index 940cc6d..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for GeneralizedTimeEqualityMatchingRule.
- */
-public final class GeneralizedTimeEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getGeneralizedTimeMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeOrderingMatchingRuleFactory.java
deleted file mode 100644
index cd25c05..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/GeneralizedTimeOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for GeneralizedTimeOrderingMatchingRule.
- */
-public final class GeneralizedTimeOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getGeneralizedTimeOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerEqualityMatchingRuleFactory.java
deleted file mode 100644
index a1ee055..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for IntegerEqualityMatchingRule.
- */
-public final class IntegerEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getIntegerMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerFirstComponentEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerFirstComponentEqualityMatchingRuleFactory.java
deleted file mode 100644
index 5e2814c..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerFirstComponentEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for IntegerFirstComponentEqualityMatchingRule.
- */
-public final class IntegerFirstComponentEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getIntegerFirstComponentMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerOrderingMatchingRuleFactory.java
deleted file mode 100644
index a9746b3..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/IntegerOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for IntegerOrderingMatchingRule.
- */
-public final class IntegerOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getIntegerOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/KeywordEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/KeywordEqualityMatchingRuleFactory.java
deleted file mode 100644
index a42486d..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/KeywordEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for KeywordEqualityMatchingRule.
- */
-public final class KeywordEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getKeywordMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringEqualityMatchingRuleFactory.java
deleted file mode 100644
index 43519eb..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for NumericStringEqualityMatchingRule.
- */
-public final class NumericStringEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getNumericStringMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringOrderingMatchingRuleFactory.java
deleted file mode 100644
index 3a5953e..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for NumericStringOrderingMatchingRule.
- */
-public final class NumericStringOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getNumericStringOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringSubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringSubstringMatchingRuleFactory.java
deleted file mode 100644
index fd83add..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/NumericStringSubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for NumericStringSubstringMatchingRule.
- */
-public final class NumericStringSubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getNumericStringSubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/ObjectIdentifierEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/ObjectIdentifierEqualityMatchingRuleFactory.java
deleted file mode 100644
index c88e84a..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/ObjectIdentifierEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for ObjectIdentifierEqualityMatchingRule.
- */
-public final class ObjectIdentifierEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getObjectIdentifierMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/ObjectIdentifierFirstComponentEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/ObjectIdentifierFirstComponentEqualityMatchingRuleFactory.java
deleted file mode 100644
index 2a32d65..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/ObjectIdentifierFirstComponentEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for ObjectIdentifierFirstComponentEqualityMatchingRule.
- */
-public final class ObjectIdentifierFirstComponentEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getObjectIdentifierFirstComponentMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringEqualityMatchingRuleFactory.java
deleted file mode 100644
index 498d1a5..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for OctetStringEqualityMatchingRule.
- */
-public final class OctetStringEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getOctetStringMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringOrderingMatchingRuleFactory.java
deleted file mode 100644
index 57120b8..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for OctetStringOrderingMatchingRule.
- */
-public final class OctetStringOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getOctetStringOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringSubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringSubstringMatchingRuleFactory.java
deleted file mode 100644
index 7a3050a..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/OctetStringSubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for OctetStringSubstringMatchingRule.
- */
-public final class OctetStringSubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getOctetStringSubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/PresentationAddressEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/PresentationAddressEqualityMatchingRuleFactory.java
deleted file mode 100644
index d1b278c..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/PresentationAddressEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for PresentationAddressEqualityMatchingRule.
- */
-public final class PresentationAddressEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getPresentationAddressMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/ProtocolInformationEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/ProtocolInformationEqualityMatchingRuleFactory.java
deleted file mode 100644
index 4ba7cd1..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/ProtocolInformationEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-import org.opends.server.api.MatchingRuleFactory;
-import org.opends.server.admin.std.server.MatchingRuleCfg;
-import org.forgerock.opendj.ldap.schema.CoreSchema;
-import org.forgerock.opendj.config.server.ConfigException;
-import org.opends.server.types.InitializationException;
-
-/**
- * This class is a factory class for ProtocolInformationEqualityMatchingRule.
- */
-public final class ProtocolInformationEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getProtocolInformationMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/TelephoneNumberEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/TelephoneNumberEqualityMatchingRuleFactory.java
deleted file mode 100644
index fb811a0..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/TelephoneNumberEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for TelephoneNumberEqualityMatchingRule.
- */
-public final class TelephoneNumberEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getTelephoneNumberMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/TelephoneNumberSubstringMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/TelephoneNumberSubstringMatchingRuleFactory.java
deleted file mode 100644
index 8e22dda..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/TelephoneNumberSubstringMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for TelephoneNumberSubstringMatchingRule.
- */
-public final class TelephoneNumberSubstringMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getTelephoneNumberSubstringsMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/TimeBasedMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/TimeBasedMatchingRuleFactory.java
deleted file mode 100644
index 97cec09..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/TimeBasedMatchingRuleFactory.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2009 Sun Microsystems, Inc.
- * Portions Copyright 2011-2015 ForgeRock AS
- */
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.forgerock.opendj.config.server.ConfigException;
-import org.forgerock.opendj.ldap.schema.CoreSchema;
-import org.forgerock.opendj.ldap.schema.MatchingRule;
-import org.opends.server.admin.std.server.MatchingRuleCfg;
-import org.opends.server.api.MatchingRuleFactory;
-import org.opends.server.types.InitializationException;
-
-/**
- * This class acts as a factory for time-based matching rules.
- */
-public final class TimeBasedMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
-
- /** A Collection of matching rules managed by this factory. */
- private Set<MatchingRule> matchingRules;
-
- /** {@inheritDoc} */
- @Override
- public void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRules = new HashSet<>();
- // relative time greater than
- matchingRules.add(CoreSchema.getInstance().getMatchingRule("1.3.6.1.4.1.26027.1.4.5"));
- // relative time less than
- matchingRules.add(CoreSchema.getInstance().getMatchingRule("1.3.6.1.4.1.26027.1.4.6"));
- // partial date and time
- matchingRules.add(CoreSchema.getInstance().getMatchingRule("1.3.6.1.4.1.26027.1.4.7"));
- }
-
- /** {@inheritDoc} */
- @Override
- public Collection<MatchingRule> getMatchingRules()
- {
- return Collections.unmodifiableCollection(matchingRules);
- }
-
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/UUIDEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/UUIDEqualityMatchingRuleFactory.java
deleted file mode 100644
index 51b68b3..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/UUIDEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for UUIDEqualityMatchingRule.
- */
-public final class UUIDEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getUUIDMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java
deleted file mode 100644
index 1217f63..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/UUIDOrderingMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for UUIDOrderingMatchingRule.
- */
-public final class UUIDOrderingMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getUUIDOrderingMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/UniqueMemberEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/UniqueMemberEqualityMatchingRuleFactory.java
deleted file mode 100644
index 3dcacb1..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/UniqueMemberEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
- /**
- * This class is a factory class for UniqueMemberEqualityMatchingRule.
- */
-public final class UniqueMemberEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getUniqueMemberMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/UserPasswordExactEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/UserPasswordExactEqualityMatchingRuleFactory.java
deleted file mode 100644
index 23128f4..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/UserPasswordExactEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-import org.forgerock.opendj.config.server.ConfigException;
-import org.forgerock.opendj.ldap.schema.CoreSchema;
-import org.forgerock.opendj.ldap.schema.MatchingRule;
-import org.opends.server.admin.std.server.MatchingRuleCfg;
-import org.opends.server.api.MatchingRuleFactory;
-import org.opends.server.types.InitializationException;
-
-/**
- * This class is a factory class for UserPasswordExactEqualityMatchingRule.
- */
-public final class UserPasswordExactEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getInstance().getMatchingRule("1.3.6.1.4.1.26027.1.4.2");
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/schema/WordEqualityMatchingRuleFactory.java b/opendj-server-legacy/src/main/java/org/opends/server/schema/WordEqualityMatchingRuleFactory.java
deleted file mode 100644
index cad0614..0000000
--- a/opendj-server-legacy/src/main/java/org/opends/server/schema/WordEqualityMatchingRuleFactory.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
- * or http://forgerock.org/license/CDDLv1.0.html.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at legal-notices/CDDLv1_0.txt.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information:
- * Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- *
- *
- * Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014-2015 ForgeRock AS
- */
-
-
-package org.opends.server.schema;
-
-import java.util.Collection;
-import java.util.Collections;
-
-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;
-
-/**
- * This class is a factory class for WordEqualityMatchingRule.
- */
-public final class WordEqualityMatchingRuleFactory
- extends MatchingRuleFactory<MatchingRuleCfg>
-{
- /** Associated Matching Rule. */
- private org.forgerock.opendj.ldap.schema.MatchingRule matchingRule;
-
- /** {@inheritDoc} */
- @Override
- public final void initializeMatchingRule(MatchingRuleCfg configuration)
- throws ConfigException, InitializationException
- {
- matchingRule = CoreSchema.getWordMatchingRule();
- }
-
- /** {@inheritDoc} */
- @Override
- public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
- {
- return Collections.singleton(matchingRule);
- }
-}
--
Gitblit v1.10.0