From 2a6a436cf43f43eeb25210a5c72301a932598d1c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 05 Aug 2016 10:14:28 +0000
Subject: [PATCH] Partial OPENDJ-3106 Migrate Entry
---
opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
index a38558a..4439ecb 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/RootDSEBackend.java
@@ -238,24 +238,11 @@
*/
private void addAllUserDefinedAttrs(List<Attribute> userDefinedAttrs, Entry configEntry)
{
- for (List<Attribute> attrs : configEntry.getUserAttributes().values())
+ for (Attribute a : configEntry.getAllAttributes())
{
- for (Attribute a : attrs)
+ if (!isDSEConfigAttribute(a))
{
- if (!isDSEConfigAttribute(a))
- {
- userDefinedAttrs.add(a);
- }
- }
- }
- for (List<Attribute> attrs : configEntry.getOperationalAttributes().values())
- {
- for (Attribute a : attrs)
- {
- if (!isDSEConfigAttribute(a))
- {
- userDefinedAttrs.add(a);
- }
+ userDefinedAttrs.add(a);
}
}
}
--
Gitblit v1.10.0