From e91a87afe532a9a3aa42189ca43cf5cd63ecf759 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 07 Oct 2006 19:57:47 +0000
Subject: [PATCH] Add a new ByteStringFactory class that can be used to create ByteString objects without needing to reference any classes outside of the public API.  Also, update several classes that should use the public API to use the ByteStringFactory rather than creating ASN1OctetString objects.

---
 opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java b/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
index 95c944c..254c026 100644
--- a/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
@@ -42,11 +42,11 @@
 import org.opends.server.api.plugin.PreOperationPluginResult;
 import org.opends.server.config.ConfigEntry;
 import org.opends.server.config.ConfigException;
-import org.opends.server.protocols.asn1.ASN1OctetString;
 import org.opends.server.types.Attribute;
 import org.opends.server.types.AttributeType;
 import org.opends.server.types.AttributeUsage;
 import org.opends.server.types.AttributeValue;
+import org.opends.server.types.ByteStringFactory;
 import org.opends.server.types.DirectoryConfig;
 import org.opends.server.types.Entry;
 import org.opends.server.types.LDIFImportConfig;
@@ -184,7 +184,7 @@
 
     LinkedHashSet<AttributeValue> values = new LinkedHashSet<AttributeValue>(1);
     values.add(new AttributeValue(entryUUIDType,
-                                  new ASN1OctetString(uuid.toString())));
+                                  ByteStringFactory.create(uuid.toString())));
 
     uuidList = new ArrayList<Attribute>(1);
     Attribute uuidAttr = new Attribute(entryUUIDType, "entryUUID", values);
@@ -226,7 +226,7 @@
 
     LinkedHashSet<AttributeValue> values = new LinkedHashSet<AttributeValue>(1);
     values.add(new AttributeValue(entryUUIDType,
-                                  new ASN1OctetString(uuid.toString())));
+                                  ByteStringFactory.create(uuid.toString())));
 
     uuidList = new ArrayList<Attribute>(1);
     Attribute uuidAttr = new Attribute(entryUUIDType, "entryUUID", values);

--
Gitblit v1.10.0