From e1ea3e0d8999105f144d2be98e0286928b8319ed Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 03 Apr 2007 18:52:11 +0000
Subject: [PATCH] Add initial support for a virtual attribute subsystem, and implement a few different kinds of virtual attributes.  This commit addresses the following issues:

---
 opends/src/server/org/opends/server/backends/BackupBackend.java |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/BackupBackend.java b/opends/src/server/org/opends/server/backends/BackupBackend.java
index 41dc517..b0d888a 100644
--- a/opends/src/server/org/opends/server/backends/BackupBackend.java
+++ b/opends/src/server/org/opends/server/backends/BackupBackend.java
@@ -97,9 +97,6 @@
        extends Backend
        implements ConfigurableComponent
 {
-
-
-
   // The DN of the configuration entry for this backend.
   private DN configEntryDN;
 
@@ -132,8 +129,6 @@
   {
     super();
 
-
-
     // Perform all initialization in initializeBackend.
   }
 
@@ -413,7 +408,7 @@
     // If the requested entry was the backend base entry, then retrieve it.
     if (entryDN.equals(backupBaseDN))
     {
-      return backupBaseEntry;
+      return backupBaseEntry.duplicate(true);
     }
 
 
@@ -543,7 +538,9 @@
     userAttrs.put(t, attrList);
 
 
-    return new Entry(entryDN, ocMap, userAttrs, opAttrs);
+    Entry e = new Entry(entryDN, ocMap, userAttrs, opAttrs);
+    e.processVirtualAttributes();
+    return e;
   }
 
 
@@ -764,7 +761,9 @@
     }
 
 
-    return new Entry(entryDN, ocMap, userAttrs, opAttrs);
+    Entry e = new Entry(entryDN, ocMap, userAttrs, opAttrs);
+    e.processVirtualAttributes();
+    return e;
   }
 
 

--
Gitblit v1.10.0