From c2371257396d52a53ea9427f1d74c81049a773ce Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 18 Feb 2014 08:55:37 +0000
Subject: [PATCH] OPENDJ-1308 Migrate schema support

---
 opendj-server3x-adapter/src/main/java/org/forgerock/opendj/adapter/server3x/Converters.java |   50 ++------------------------------------------------
 1 files changed, 2 insertions(+), 48 deletions(-)

diff --git a/opendj-server3x-adapter/src/main/java/org/forgerock/opendj/adapter/server3x/Converters.java b/opendj-server3x-adapter/src/main/java/org/forgerock/opendj/adapter/server3x/Converters.java
index 92f95ab..6f021e1 100644
--- a/opendj-server3x-adapter/src/main/java/org/forgerock/opendj/adapter/server3x/Converters.java
+++ b/opendj-server3x-adapter/src/main/java/org/forgerock/opendj/adapter/server3x/Converters.java
@@ -142,22 +142,6 @@
     }
 
     /**
-     * Converts from OpenDJ LDAP SDK {@link org.forgerock.opendj.ldap.SearchScope}
-     * to OpenDJ server {@link org.opends.server.types.SearchScope}.
-     *
-     * @param searchScope
-     *          value to convert
-     * @return the converted value
-     */
-    public static org.opends.server.types.SearchScope to(
-            final org.forgerock.opendj.ldap.SearchScope searchScope) {
-        if (searchScope == null) {
-            return null;
-        }
-        return org.opends.server.types.SearchScope.values()[searchScope.intValue()];
-    }
-
-    /**
      * Converts from OpenDJ LDAP SDK {@link org.forgerock.opendj.ldap.Filter} to
      * OpenDJ server {@link org.opends.server.types.RawFilter}.
      *
@@ -268,7 +252,7 @@
      */
     public static org.opends.server.types.RawModification to(
             final org.forgerock.opendj.ldap.Modification modification) {
-        return new LDAPModification(to(modification.getModificationType()), to(modification
+        return new LDAPModification(modification.getModificationType(), to(modification
                 .getAttribute()));
     }
 
@@ -340,7 +324,7 @@
      */
     public static org.opends.server.types.Modification toModification(
             final org.forgerock.opendj.ldap.Modification modification) {
-        return new org.opends.server.types.Modification(to(modification.getModificationType()),
+        return new org.opends.server.types.Modification(modification.getModificationType(),
             toAttribute(modification.getAttribute()));
     }
 
@@ -365,36 +349,6 @@
     }
 
     /**
-     * Converts from OpenDJ LDAP SDK
-     * {@link org.forgerock.opendj.ldap.ModificationType} to OpenDJ server
-     * {@link org.opends.server.types.ModificationType}.
-     *
-     * @param modificationType
-     *          value to convert
-     * @return the converted value
-     */
-    public static org.opends.server.types.ModificationType to(
-            final org.forgerock.opendj.ldap.ModificationType modificationType) {
-        return org.opends.server.types.ModificationType.values()[modificationType.intValue()];
-    }
-
-    /**
-     * Converts from OpenDJ server {@link org.opends.server.types.SearchScope}. to
-     * OpenDJ LDAP SDK {@link org.forgerock.opendj.ldap.SearchScope}.
-     *
-     * @param searchScope
-     *          value to convert
-     * @return the converted value
-     */
-    public static org.forgerock.opendj.ldap.SearchScope from(
-            final org.opends.server.types.SearchScope searchScope) {
-        if (searchScope == null) {
-            return null;
-        }
-        return org.forgerock.opendj.ldap.SearchScope.values().get(searchScope.intValue());
-    }
-
-    /**
      * Converts from OpenDJ server
      * {@link org.opends.server.protocols.ldap.LDAPControl} to OpenDJ LDAP SDK
      * {@link Control}.

--
Gitblit v1.10.0