From d89c47e7cb1b3c9181e25582539aac1dedb46099 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 07:31:25 +0000
Subject: [PATCH] Partial OPENDJ-3106 Migrate Entry

---
 opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java b/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java
index 77fc8c7..ccdadbe 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tasks/ExportTask.java
@@ -152,7 +152,7 @@
     includeBranchStrings = toListOfString(taskEntry, ATTR_TASK_EXPORT_INCLUDE_BRANCH);
     excludeBranchStrings = toListOfString(taskEntry, ATTR_TASK_EXPORT_EXCLUDE_BRANCH);
 
-    List<Attribute> attrList = taskEntry.getAttribute(typeWrapColumn);
+    List<Attribute> attrList = taskEntry.getAllAttributes(typeWrapColumn);
     wrapColumn = TaskUtils.getSingleValueInteger(attrList, 0);
 
     includeOperationalAttributes = toBoolean(taskEntry, true, ATTR_TASK_EXPORT_INCLUDE_OPERATIONAL_ATTRIBUTES);
@@ -161,21 +161,21 @@
   private boolean toBoolean(Entry entry, boolean defaultValue, String attrName)
   {
     final AttributeType attrType = getSchema().getAttributeType(attrName);
-    final List<Attribute> attrs = entry.getAttribute(attrType);
+    final List<Attribute> attrs = entry.getAllAttributes(attrType);
     return TaskUtils.getBoolean(attrs, defaultValue);
   }
 
   private ArrayList<String> toListOfString(Entry entry, String attrName)
   {
     final AttributeType attrType = getSchema().getAttributeType(attrName);
-    final List<Attribute> attrs = entry.getAttribute(attrType);
+    final List<Attribute> attrs = entry.getAllAttributes(attrType);
     return TaskUtils.getMultiValueString(attrs);
   }
 
   private String toString(Entry entry, String attrName)
   {
     final AttributeType attrType = getSchema().getAttributeType(attrName);
-    final List<Attribute> attrs = entry.getAttribute(attrType);
+    final List<Attribute> attrs = entry.getAllAttributes(attrType);
     return TaskUtils.getSingleValueString(attrs);
   }
 

--
Gitblit v1.10.0