directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1381950 - /directory/apacheds/branches/apacheds-mvbt/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Date Fri, 07 Sep 2012 09:30:38 GMT
Author: elecharny
Date: Fri Sep  7 09:30:37 2012
New Revision: 1381950

URL: http://svn.apache.org/viewvc?rev=1381950&view=rev
Log:
Fixing code accordingly to the modifications in the search engine

Modified:
    directory/apacheds/branches/apacheds-mvbt/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java

Modified: directory/apacheds/branches/apacheds-mvbt/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mvbt/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java?rev=1381950&r1=1381949&r2=1381950&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mvbt/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
(original)
+++ directory/apacheds/branches/apacheds-mvbt/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Fri Sep  7 09:30:37 2012
@@ -40,10 +40,10 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.i18n.I18n;
 import org.apache.directory.server.xdbm.ForwardIndexEntry;
 import org.apache.directory.server.xdbm.IndexEntry;
+import org.apache.directory.server.xdbm.search.PartitionSearchResult;
 import org.apache.directory.server.xdbm.search.SearchEngine;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.model.cursor.Cursor;
-import org.apache.directory.shared.ldap.model.cursor.SetCursor;
 import org.apache.directory.shared.ldap.model.entry.Attribute;
 import org.apache.directory.shared.ldap.model.entry.Entry;
 import org.apache.directory.shared.ldap.model.entry.StringValue;
@@ -736,10 +736,10 @@ public class ConfigPartitionReader
         try
         {
             // Do the search
-            Set<IndexEntry<String, String>> result = se.buildResultSet( baseDn,
AliasDerefMode.NEVER_DEREF_ALIASES,
+            PartitionSearchResult searchResult = se.computeResult( baseDn, AliasDerefMode.NEVER_DEREF_ALIASES,
                 filter, scope );
 
-            cursor = new SetCursor<IndexEntry<String, String>>( result );
+            cursor = searchResult.getResultSet();
 
             // First, check if we have some entries to process.
             if ( !cursor.next() )



Mime
View raw message