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/DisconnectClientTask.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tasks/DisconnectClientTask.java b/opendj-server-legacy/src/main/java/org/opends/server/tasks/DisconnectClientTask.java
index c0adade..db6be4b 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tasks/DisconnectClientTask.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tasks/DisconnectClientTask.java
@@ -94,7 +94,7 @@
   private long getConnectionID(Entry taskEntry) throws DirectoryException
   {
     final AttributeType attrType = DirectoryServer.getSchema().getAttributeType(ATTR_TASK_DISCONNECT_CONN_ID);
-    for (Attribute a : taskEntry.getAttribute(attrType))
+    for (Attribute a : taskEntry.getAllAttributes(attrType))
     {
       for (ByteString v : a)
       {
@@ -115,7 +115,7 @@
   private boolean mustNotifyClient(Entry taskEntry) throws DirectoryException
   {
     final AttributeType attrType = DirectoryServer.getSchema().getAttributeType(ATTR_TASK_DISCONNECT_NOTIFY_CLIENT);
-    for (Attribute a : taskEntry.getAttribute(attrType))
+    for (Attribute a : taskEntry.getAllAttributes(attrType))
     {
       for (ByteString v : a)
       {
@@ -141,7 +141,7 @@
   private LocalizableMessage getDisconnectMessage(Entry taskEntry)
   {
     AttributeType attrType = DirectoryServer.getSchema().getAttributeType(ATTR_TASK_DISCONNECT_MESSAGE);
-    for (Attribute a : taskEntry.getAttribute(attrType))
+    for (Attribute a : taskEntry.getAllAttributes(attrType))
     {
       for (ByteString v : a)
       {

--
Gitblit v1.10.0