From 66680d3613957ad09437fc8b64885a0ad87f9e53 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 11:59:52 +0000
Subject: [PATCH] Extend RFC3672 subtreeSpecification to allow OpenDS specific RelativeSubtreeSpec and AbsoluteSubtreeSpec.
---
opends/src/server/org/opends/server/api/SubtreeSpecification.java | 26 +++++++++++++++++++++++++-
1 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/SubtreeSpecification.java b/opends/src/server/org/opends/server/api/SubtreeSpecification.java
index d89aeff..ffebe35 100644
--- a/opends/src/server/org/opends/server/api/SubtreeSpecification.java
+++ b/opends/src/server/org/opends/server/api/SubtreeSpecification.java
@@ -22,12 +22,13 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2008 Sun Microsystems, Inc.
+ * Copyright 2006-2010 Sun Microsystems, Inc.
*/
package org.opends.server.api;
+import org.opends.server.types.DN;
import org.opends.server.types.Entry;
@@ -53,6 +54,16 @@
/**
+ * Get the absolute base DN of the subtree specification.
+ *
+ * @return Returns the absolute base DN of the subtree
+ * specification.
+ */
+ public abstract DN getBaseDN();
+
+
+
+ /**
* Determine if an entry is within the scope of the subtree
* specification.
*
@@ -66,6 +77,19 @@
/**
+ * Determine if the specified DN is within the scope of the subtree
+ * specification.
+ *
+ * @param dn The distinguished name.
+ * @return Returns <code>true</code> if the DN is within the scope
+ * of the subtree specification, or <code>false</code>
+ * otherwise.
+ */
+ public abstract boolean isDNWithinScope(DN dn);
+
+
+
+ /**
* Indicates whether the provided object is logically equal to this
* subtree specification object.
*
--
Gitblit v1.10.0