From fe28834d8a4dbc58701ce7e45bff805e41bb35a6 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 11 May 2015 10:00:38 +0000
Subject: [PATCH] DN2URI.java: Rename put() to update() to match what the pluggable backend is doing. JEB was affectively doing a put like a multimap, but the pluggable backend supports a subset of operations and it does not support puts like in multimaps.

---
 opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
index 8288aa1..a09a615 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2URI.java
@@ -168,7 +168,7 @@
    * @param labeledURIs The labeled URI value of the ref attribute.
    * @throws StorageRuntimeException If an error occurs in the storage.
    */
-  private void put(final WriteableTransaction txn, final DN dn, final Collection<String> labeledURIs)
+  private void update(final WriteableTransaction txn, final DN dn, final Collection<String> labeledURIs)
       throws StorageRuntimeException
   {
     final ByteString key = toKey(dn);
@@ -302,7 +302,7 @@
           case ADD:
             if (a != null)
             {
-              put(txn, entryDN, toStrings(a));
+              update(txn, entryDN, toStrings(a));
             }
             break;
 
@@ -325,7 +325,7 @@
             delete(txn, entryDN);
             if (a != null)
             {
-              put(txn, entryDN, toStrings(a));
+              update(txn, entryDN, toStrings(a));
             }
             break;
         }
@@ -378,7 +378,7 @@
     Set<String> labeledURIs = entry.getReferralURLs();
     if (labeledURIs != null)
     {
-      put(txn, entry.getName(), labeledURIs);
+      update(txn, entry.getName(), labeledURIs);
     }
   }
 

--
Gitblit v1.10.0