From 377b2709c64b32fe93905b466482216c2cc0581c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 19 Mar 2014 16:30:32 +0000
Subject: [PATCH] OPENDJ-1368 (CR-3232) Remove AttributeValue
---
opendj3-server-dev/src/server/org/opends/server/admin/ManagedObjectPath.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/admin/ManagedObjectPath.java b/opendj3-server-dev/src/server/org/opends/server/admin/ManagedObjectPath.java
index fec2d05..b95d4aa 100644
--- a/opendj3-server-dev/src/server/org/opends/server/admin/ManagedObjectPath.java
+++ b/opendj3-server-dev/src/server/org/opends/server/admin/ManagedObjectPath.java
@@ -24,24 +24,21 @@
* Copyright 2008-2009 Sun Microsystems, Inc.
* Portions Copyright 2011-2014 ForgeRock AS
*/
-
package org.opends.server.admin;
-
-
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import org.forgerock.opendj.ldap.ByteString;
import org.opends.server.admin.std.client.RootCfgClient;
import org.opends.server.admin.std.meta.RootCfgDefn;
import org.opends.server.admin.std.server.RootCfg;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.*;
-
/**
* A path which can be used to determine the location of a managed
* object instance.
@@ -157,7 +154,7 @@
String type = profile.getRelationChildRDNType(r);
AttributeType atype = DirectoryServer.getAttributeType(
type.toLowerCase(), true);
- AttributeValue avalue = AttributeValues.create(atype, name);
+ ByteString avalue = ByteString.valueOf(name);
dn = dn.child(RDN.create(atype, avalue));
}
@@ -177,7 +174,7 @@
String type = profile.getRelationChildRDNType(r);
AttributeType atype = DirectoryServer.getAttributeType(
type.toLowerCase(), true);
- AttributeValue avalue = AttributeValues.create(atype, d.getName());
+ ByteString avalue = ByteString.valueOf(d.getName());
dn = dn.child(RDN.create(atype, avalue));
}
--
Gitblit v1.10.0