directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1027987 - in /directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api: CursorStudioNamingEnumeration.java DirectoryApiConnectionWrapper.java
Date Wed, 27 Oct 2010 14:56:49 GMT
Author: pamarcelot
Date: Wed Oct 27 14:56:49 2010
New Revision: 1027987

URL: http://svn.apache.org/viewvc?rev=1027987&view=rev
Log:
Applied changed done to the LDAP API.

Modified:
    directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java
    directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java?rev=1027987&r1=1027986&r2=1027987&view=diff
==============================================================================
--- directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java
(original)
+++ directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java
Wed Oct 27 14:56:49 2010
@@ -34,8 +34,7 @@ import javax.naming.ldap.BasicControl;
 import javax.naming.ldap.Control;
 import javax.naming.ldap.PagedResultsResponseControl;
 
-import org.apache.directory.ldap.client.api.SearchCursor;
-import org.apache.directory.shared.ldap.cursor.Cursor;
+import org.apache.directory.shared.ldap.cursor.SearchCursor;
 import org.apache.directory.shared.ldap.message.Referral;
 import org.apache.directory.shared.ldap.message.Response;
 import org.apache.directory.shared.ldap.message.SearchResultDone;
@@ -63,7 +62,7 @@ import org.apache.directory.studio.conne
  */
 public class CursorStudioNamingEnumeration extends AbstractStudioNamingEnumeration
 {
-    private Cursor<Response> cursor;
+    private SearchCursor cursor;
     private SearchResultEntry currentSearchResultEntry;
     private List<Referral> referralsList = new ArrayList<Referral>();
     private List<String> currentReferralUrlsList;
@@ -75,7 +74,7 @@ public class CursorStudioNamingEnumerati
      * Creates a new instance of ReferralNamingEnumeration.
      * 
      * @param connection the connection
-     * @param ctx the JNDI context
+     * @param cursor the search cursor
      * @param searchBase the search base
      * @param filter the filter
      * @param searchControls the search controls
@@ -85,7 +84,7 @@ public class CursorStudioNamingEnumerati
      * @param monitor the progress monitor
      * @param referralsInfo the referrals info
      */
-    public CursorStudioNamingEnumeration( Connection connection, Cursor<Response> cursor,
+    public CursorStudioNamingEnumeration( Connection connection, SearchCursor cursor,
         String searchBase, String filter, SearchControls searchControls,
         AliasDereferencingMethod aliasesDereferencingMethod, ReferralHandlingMethod referralsHandlingMethod,
         Control[] controls, long requestNum, StudioProgressMonitor monitor, ReferralsInfo
referralsInfo )
@@ -160,7 +159,7 @@ public class CursorStudioNamingEnumerati
             // Storing the search result done (if needed)
             if ( searchResultDone == null )
             {
-                searchResultDone = ( ( SearchCursor ) cursor ).getSearchDone();
+                searchResultDone = ( ( SearchCursor ) cursor ).getSearchResultDone();
             }
 
             // Are we following referrals manually?

Modified: directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1027987&r1=1027986&r2=1027987&view=diff
==============================================================================
--- directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Wed Oct 27 14:56:49 2010
@@ -41,7 +41,7 @@ import javax.net.ssl.X509TrustManager;
 import org.apache.directory.ldap.client.api.LdapConnectionConfig;
 import org.apache.directory.ldap.client.api.LdapNetworkConnection;
 import org.apache.directory.shared.ldap.codec.controls.ControlImpl;
-import org.apache.directory.shared.ldap.cursor.Cursor;
+import org.apache.directory.shared.ldap.cursor.SearchCursor;
 import org.apache.directory.shared.ldap.entry.DefaultModification;
 import org.apache.directory.shared.ldap.entry.Modification;
 import org.apache.directory.shared.ldap.entry.ModificationOperation;
@@ -60,7 +60,6 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.message.ModifyRequest;
 import org.apache.directory.shared.ldap.message.ModifyRequestImpl;
 import org.apache.directory.shared.ldap.message.ModifyResponse;
-import org.apache.directory.shared.ldap.message.Response;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.message.ResultResponse;
 import org.apache.directory.shared.ldap.message.SearchRequest;
@@ -395,7 +394,7 @@ public class DirectoryApiConnectionWrapp
                     request.setDerefAliases( convertAliasDerefMode( aliasesDereferencingMethod
) );
 
                     // Performing the search operation
-                    Cursor<Response> cursor = getLdapConnection().search( request );
+                    SearchCursor cursor = getLdapConnection().search( request );
 
                     // Returning the result of the search
                     namingEnumeration = new CursorStudioNamingEnumeration( connection, cursor,
searchBase, filter,



Mime
View raw message