From 2e86eba101ac08b44de0b4b95dd6a1a302b66763 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 12 Feb 2016 21:47:19 +0000
Subject: [PATCH] Removed Utilities.getRDNString()
---
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java | 20 +-------------------
1 files changed, 1 insertions(+), 19 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
index 9d1350c..0362761 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
@@ -99,7 +99,7 @@
import org.forgerock.i18n.slf4j.LocalizedLogger;
import org.forgerock.opendj.config.ConfigurationFramework;
import org.forgerock.opendj.config.server.ConfigException;
-import org.forgerock.opendj.ldap.ByteString;
+import org.forgerock.opendj.ldap.schema.AttributeType;
import org.forgerock.opendj.ldap.schema.MatchingRule;
import org.forgerock.opendj.ldap.schema.Syntax;
import org.opends.guitools.controlpanel.ControlPanel;
@@ -124,14 +124,11 @@
import org.opends.server.admin.ClassLoaderProvider;
import org.opends.server.api.ConfigHandler;
import org.opends.server.config.ConfigEntry;
-import org.opends.server.core.DirectoryServer;
import org.opends.server.core.LockFileManager;
import org.opends.server.schema.SchemaConstants;
import org.opends.server.schema.SomeSchemaElement;
-import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.types.DN;
import org.opends.server.types.OpenDsException;
-import org.opends.server.types.RDN;
import org.opends.server.types.Schema;
import org.opends.server.util.ServerConstants;
import org.opends.server.util.StaticUtils;
@@ -1479,26 +1476,11 @@
}
}
-
- /**
- * Gets the RDN string for a given attribute name and value.
- * @param attrName the attribute name.
- * @param attrValue the attribute value.
- * @return the RDN string for the attribute name and value.
- */
- public static String getRDNString(String attrName, String attrValue)
- {
- AttributeType attrType = DirectoryServer.getAttributeType(attrName);
- RDN rdn = new RDN(attrType, attrName, ByteString.valueOfUtf8(attrValue));
- return rdn.toString();
- }
-
/**
* Returns the attribute name with no options (or subtypes).
* @param attrName the complete attribute name.
* @return the attribute name with no options (or subtypes).
*/
-
public static String getAttributeNameWithoutOptions(String attrName)
{
int index = attrName.indexOf(";");
--
Gitblit v1.10.0