From c230cbeeea46ffcfc12442c8bde08cc9a2291da4 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 14 May 2007 18:57:42 +0000
Subject: [PATCH] Update the JE backend search processing code so that any unindexed search will be checked against the virtual attribute subsystem to see if any of the virtual attribute providers can help process the search.
---
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
index 5f14abf..96161a3 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -805,6 +805,16 @@
}
else
{
+ // See if we could use a virtual attribute rule to process the search.
+ for (VirtualAttributeRule rule : DirectoryServer.getVirtualAttributes())
+ {
+ if (rule.getProvider().isSearchable(rule, searchOperation))
+ {
+ rule.getProvider().processSearch(rule, searchOperation);
+ return;
+ }
+ }
+
ClientConnection clientConnection =
searchOperation.getClientConnection();
if(! clientConnection.hasPrivilege(Privilege.UNINDEXED_SEARCH,
--
Gitblit v1.10.0