From 3dc3f07607a5c720a1452cc75701554a9f3ad715 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Mon, 24 Mar 2014 09:45:42 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1308 Migrate schema support
---
opendj3-server-dev/src/server/org/opends/server/api/MatchingRule.java | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/api/MatchingRule.java b/opendj3-server-dev/src/server/org/opends/server/api/MatchingRule.java
index be53226..0d3c9ee 100644
--- a/opendj3-server-dev/src/server/org/opends/server/api/MatchingRule.java
+++ b/opendj3-server-dev/src/server/org/opends/server/api/MatchingRule.java
@@ -28,6 +28,7 @@
import java.util.Collection;
import java.util.Comparator;
+import java.util.List;
import org.forgerock.opendj.ldap.Assertion;
import org.forgerock.opendj.ldap.ByteSequence;
@@ -148,6 +149,27 @@
public Assertion getLessOrEqualAssertion(final ByteSequence assertionValue) throws DecodeException;
/**
+ * Returns the normalized form of the provided assertion substring values,
+ * which is best suited for efficiently performing matching operations on
+ * that value.
+ *
+ * @param subInitial
+ * The normalized substring value fragment that should appear at
+ * the beginning of the target value.
+ * @param subAnyElements
+ * The normalized substring value fragments that should appear in
+ * the middle of the target value.
+ * @param subFinal
+ * The normalized substring value fragment that should appear at
+ * the end of the target value.
+ * @return The normalized version of the provided assertion value.
+ * @throws DecodeException
+ * if the syntax of the value is not valid.
+ */
+ public Assertion getSubstringAssertion(final ByteSequence subInitial,
+ final List<? extends ByteSequence> subAnyElements, final ByteSequence subFinal) throws DecodeException;
+
+ /**
* Indicates whether this matching rule is declared "OBSOLETE". The
* default implementation will always return {@code false}. If that
* is not acceptable for a particular matching rule implementation,
--
Gitblit v1.10.0