From 9d0cd2315ad10d4afce13c8865bd2e16a68b2b71 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 04 Aug 2016 15:06:12 +0000
Subject: [PATCH] remove CustomSearchResult, replaced by SDK's Entry
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/browser/BrowserController.java | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/browser/BrowserController.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/browser/BrowserController.java
index 9d9f7a7..81cc654 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/browser/BrowserController.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/browser/BrowserController.java
@@ -52,7 +52,6 @@
import org.forgerock.opendj.ldap.responses.SearchResultEntry;
import org.opends.admin.ads.ADSContext;
import org.opends.admin.ads.util.ConnectionWrapper;
-import org.opends.guitools.controlpanel.datamodel.CustomSearchResult;
import org.opends.guitools.controlpanel.datamodel.ServerDescriptor;
import org.opends.guitools.controlpanel.event.BrowserEvent;
import org.opends.guitools.controlpanel.event.BrowserEventListener;
@@ -1780,18 +1779,6 @@
return getNumSubOrdinates(entry) > 0;
}
- /**
- * Get the value of the numSubordinates attribute.
- * If numSubordinates is not present, returns 0.
- * @param entry the entry to analyze.
- * @return the value of the numSubordinates attribute. 0 if the attribute
- * could not be found.
- */
- private static int getNumSubOrdinates(CustomSearchResult entry)
- {
- return getNumSubOrdinates(entry.getSdkEntry());
- }
-
private static int toInt(String v)
{
if (v == null)
@@ -1809,19 +1796,6 @@
}
/**
- * Returns whether the entry has subordinates or not. It uses an algorithm
- * based in hasSubordinates and numSubordinates attributes.
- * @param entry the entry to analyze.
- * @return {@code true} if the entry has subordinates according to the values
- * of hasSubordinates and numSubordinates, returns {@code false} if none of
- * the attributes could be found.
- */
- public static boolean getHasSubOrdinates(CustomSearchResult entry)
- {
- return getHasSubOrdinates(entry.getSdkEntry());
- }
-
- /**
* Returns the value of the 'ref' attribute.
* {@code null} if the attribute is not present.
* @param entry the entry to analyze.
--
Gitblit v1.10.0