From 4c3c02f4a1c985cf51251e00fc4165e95cb38229 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 07 Jun 2007 21:48:09 +0000
Subject: [PATCH] Add a virtual attribute provider that can be used to assign entryUUID values for entries in private backends (e.g., the root DSE, schema, monitor entries, config entries, etc.).  The entryUUID value that will be generated is based on an MD5 hash of the entry DN, but this shouldn't be a problem for entries in private backends because none of them allow modify DN operations.  User entries should have a real entryUUID value generated when the entry is created (either via an LDAP add or an LDIF import).

---
 opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
index 8c60538..31ce6dd 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
@@ -5208,6 +5208,19 @@
   public static final int MSGID_FSCACHE_INDEX_IMPAIRED =
        CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_SEVERE_ERROR | 500;
 
+
+
+  /**
+   * The message ID for the message that will be used if a search operation has
+   * a filter targeting the entryUUID virtual attribute, which is not
+   * searchable.  This takes a single argument, which is the name of the
+   * entryUUID attribute type.
+   */
+  public static final int MSGID_ENTRYUUID_VATTR_NOT_SEARCHABLE =
+       CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_MILD_ERROR | 501;
+
+
+
   /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
@@ -7490,6 +7503,10 @@
     registerMessage(MSGID_FSCACHE_INDEX_IMPAIRED,
                     "The persistent cache index is inconsistent or damaged. " +
                     "Persistent cache will be flushed now");
+
+    registerMessage(MSGID_ENTRYUUID_VATTR_NOT_SEARCHABLE,
+                    "The %s attribute is not searchable and should not be " +
+                    "included in otherwise unindexed search filters");
   }
 }
 

--
Gitblit v1.10.0