From 699b72b68caa1f6e0ce2a5dde30432d1811fe93d 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.
---
opends/src/server/org/opends/server/backends/jeb/EntryContainer.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java b/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
index 5f14abf..96161a3 100644
--- a/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
+++ b/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