From 22094368c2865dcfb6daf8366425212b721a4657 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 05 Feb 2009 17:42:14 +0000
Subject: [PATCH] Merge ASN1 branch to trunk
---
opends/src/server/org/opends/server/extensions/EntryUUIDVirtualAttributeProvider.java | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/EntryUUIDVirtualAttributeProvider.java b/opends/src/server/org/opends/server/extensions/EntryUUIDVirtualAttributeProvider.java
index 036a995..3f64cea 100644
--- a/opends/src/server/org/opends/server/extensions/EntryUUIDVirtualAttributeProvider.java
+++ b/opends/src/server/org/opends/server/extensions/EntryUUIDVirtualAttributeProvider.java
@@ -39,15 +39,7 @@
import org.opends.server.config.ConfigException;
import org.opends.server.core.SearchOperation;
import org.opends.server.loggers.debug.DebugTracer;
-import org.opends.server.types.AttributeValue;
-import org.opends.server.types.ByteString;
-import org.opends.server.types.ByteStringFactory;
-import org.opends.server.types.ConditionResult;
-import org.opends.server.types.DebugLogLevel;
-import org.opends.server.types.Entry;
-import org.opends.server.types.InitializationException;
-import org.opends.server.types.ResultCode;
-import org.opends.server.types.VirtualAttributeRule;
+import org.opends.server.types.*;
import static org.opends.messages.ExtensionMessages.*;
import static org.opends.server.loggers.debug.DebugLogger.*;
@@ -118,9 +110,9 @@
String normDNString = entry.getDN().toNormalizedString();
String uuidString =
UUID.nameUUIDFromBytes(getBytes(normDNString)).toString();
- AttributeValue value = new AttributeValue(
- ByteStringFactory.create(uuidString),
- ByteStringFactory.create(uuidString));
+ AttributeValue value = AttributeValues.create(
+ ByteString.valueOf(uuidString),
+ ByteString.valueOf(uuidString));
return Collections.singleton(value);
}
@@ -151,7 +143,7 @@
String uuidString =
UUID.nameUUIDFromBytes(getBytes(normalizedDN)).toString();
- String normalizedValue = value.getNormalizedStringValue();
+ String normalizedValue = value.getNormalizedValue().toString();
return uuidString.equals(normalizedValue);
}
catch (Exception e)
--
Gitblit v1.10.0