From 30f5175327333dcfaaeafb02560697bcdce6166d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 30 Apr 2007 16:24:15 +0000
Subject: [PATCH] Implement support for the virtual list view (VLV) control as defined in draft-ietf-ldapext-ldapv3-vlv.  This can be used to retrieve a specified page of a search result set.  Any result set that can be used with server-side sorting can also be used with VLV.  The ldapsearch tool has also been updated to support this control.

---
 opends/src/server/org/opends/server/messages/CoreMessages.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/CoreMessages.java b/opends/src/server/org/opends/server/messages/CoreMessages.java
index e63864a..d27a8e9 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -6092,6 +6092,36 @@
 
 
   /**
+   * The message ID for the string representation of the result code that will
+   * be used for search operations containing the VLV request control that do
+   * not also include the server-side sort control.
+   */
+  public static final int MSGID_RESULT_SORT_CONTROL_MISSING =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 608;
+
+
+
+  /**
+   * The message ID for the string representation of the result code that will
+   * be used for search operations containing the VLV request control with an
+   * invalid offset or target count.
+   */
+  public static final int MSGID_RESULT_OFFSET_RANGE_ERROR =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 609;
+
+
+
+  /**
+   * The message ID for the string representation of the result code that will
+   * be used for operations that failed because the request would have impacted
+   * information in multiple servers or repositories.
+   */
+  public static final int MSGID_RESULT_VIRTUAL_LIST_VIEW_ERROR =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 610;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined
    * in this class.
    */
@@ -6219,6 +6249,8 @@
     registerMessage(MSGID_RESULT_UNAVAILABLE, "Unavailable");
     registerMessage(MSGID_RESULT_UNWILLING_TO_PERFORM, "Unwilling to Perform");
     registerMessage(MSGID_RESULT_LOOP_DETECT, "Loop Detected");
+    registerMessage(MSGID_RESULT_SORT_CONTROL_MISSING, "Sort Control Missing");
+    registerMessage(MSGID_RESULT_OFFSET_RANGE_ERROR, "Offset Range Error");
     registerMessage(MSGID_RESULT_NAMING_VIOLATION, "Naming Violation");
     registerMessage(MSGID_RESULT_OBJECTCLASS_VIOLATION,
                     "ObjectClass Violation");
@@ -6230,6 +6262,8 @@
                     "ObjectClass Modifications Prohibited");
     registerMessage(MSGID_RESULT_AFFECTS_MULTIPLE_DSAS,
                     "Affects Multiple DSAs");
+    registerMessage(MSGID_RESULT_VIRTUAL_LIST_VIEW_ERROR,
+                    "Virtual List View Error");
     registerMessage(MSGID_RESULT_OTHER, "Other");
     registerMessage(MSGID_RESULT_CLIENT_SIDE_SERVER_DOWN, "Server Down");
     registerMessage(MSGID_RESULT_CLIENT_SIDE_LOCAL_ERROR, "Local Error");

--
Gitblit v1.10.0