From e651d8a4ba69ea4764d780ccf66068bd6f9c9c46 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 04 Nov 2008 17:47:26 +0000
Subject: [PATCH] Fix for issue 3554 (Control Panel : Error displayed after deleting several entries).
---
opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java b/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
index 320b5e3..bc370d4 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/util/Utilities.java
@@ -51,8 +51,6 @@
import javax.naming.Name;
import javax.naming.NamingException;
import javax.naming.directory.SearchControls;
-import javax.naming.ldap.BasicControl;
-import javax.naming.ldap.Control;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapName;
import javax.swing.BorderFactory;
@@ -2065,31 +2063,6 @@
public static final String SUBTREE_CTRL_OID =
(new SubtreeDeleteControl()).getID();
- /**
- * Deletes a subtree using the provided connection.
- * @param ctx the connection to be used to delete the subtree.
- * @param dnToRemove the DN of the subtree to be deleted.
- * @throws NamingException if an error occurs deleting the subtree.
- */
- public static void deleteSubtree(InitialLdapContext ctx, DN dnToRemove)
- throws NamingException
- {
- Control[] oldCtls = null;
- try
- {
- oldCtls = ctx.getRequestControls();
- Control[] ctls = {new BasicControl(SUBTREE_CTRL_OID)};
- ctx.setRequestControls(ctls);
- ctx.destroySubcontext(Utilities.getJNDIName(dnToRemove.toString()));
- }
- finally
- {
- if (oldCtls != null)
- {
- ctx.setRequestControls(oldCtls);
- }
- }
- }
/**
* Sets the required icon to the provided label.
--
Gitblit v1.10.0