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/authorization/dseecompat/PatternRDN.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/authorization/dseecompat/PatternRDN.java b/opendj3-server-dev/src/server/org/opends/server/authorization/dseecompat/PatternRDN.java
index 8e911ed..6e2dfb8 100644
--- a/opendj3-server-dev/src/server/org/opends/server/authorization/dseecompat/PatternRDN.java
+++ b/opendj3-server-dev/src/server/org/opends/server/authorization/dseecompat/PatternRDN.java
@@ -212,8 +212,7 @@
     // Sort the attribute-value pairs by attribute type.
     TreeMap<String,ArrayList<ByteString>> patternMap =
          new TreeMap<String, ArrayList<ByteString>>();
-    TreeMap<String,AttributeValue> rdnMap =
-         new TreeMap<String, AttributeValue>();
+    TreeMap<String, ByteString> rdnMap = new TreeMap<String, ByteString>();
 
     for (int i = 0; i < rdn.getNumValues(); i++)
     {
@@ -264,7 +263,7 @@
    */
   private boolean matchValuePattern(List<ByteString> pattern,
                                     AttributeType type,
-                                    AttributeValue value)
+                                    ByteString value)
   {
     if (pattern == null)
     {
@@ -277,7 +276,7 @@
       {
         // Handle this just like an equality filter.
         MatchingRule rule = type.getEqualityMatchingRule();
-        ByteString thatNormValue = rule.normalizeAttributeValue(value.getValue());
+        ByteString thatNormValue = rule.normalizeAttributeValue(value);
         return rule.getAssertion(pattern.get(0)).matches(thatNormValue).toBoolean();
       }
 

--
Gitblit v1.10.0