You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/05/11 23:25:13 UTC
svn commit: r943299 -
/directory/apacheds/trunk/syncrepl/src/main/java/org/apache/directory/server/syncrepl/EntryInjector.java
Author: kayyagari
Date: Tue May 11 21:25:12 2010
New Revision: 943299
URL: http://svn.apache.org/viewvc?rev=943299&view=rev
Log:
fixed the issues after Entry API refactoring
Modified:
directory/apacheds/trunk/syncrepl/src/main/java/org/apache/directory/server/syncrepl/EntryInjector.java
Modified: directory/apacheds/trunk/syncrepl/src/main/java/org/apache/directory/server/syncrepl/EntryInjector.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/syncrepl/src/main/java/org/apache/directory/server/syncrepl/EntryInjector.java?rev=943299&r1=943298&r2=943299&view=diff
==============================================================================
--- directory/apacheds/trunk/syncrepl/src/main/java/org/apache/directory/server/syncrepl/EntryInjector.java (original)
+++ directory/apacheds/trunk/syncrepl/src/main/java/org/apache/directory/server/syncrepl/EntryInjector.java Tue May 11 21:25:12 2010
@@ -35,7 +35,8 @@ import org.apache.directory.ldap.client.
import org.apache.directory.ldap.client.api.message.SearchResponse;
import org.apache.directory.ldap.client.api.message.SearchResultEntry;
import org.apache.directory.shared.ldap.cursor.Cursor;
-import org.apache.directory.shared.ldap.entry.client.DefaultClientEntry;
+import org.apache.directory.shared.ldap.entry.DefaultEntry;
+import org.apache.directory.shared.ldap.entry.Entry;
import org.apache.directory.shared.ldap.filter.SearchScope;
import org.apache.directory.shared.ldap.name.DN;
import org.slf4j.Logger;
@@ -82,7 +83,7 @@ public class EntryInjector extends JPane
{
String cn = "entry-" + System.currentTimeMillis();
DN dn = new DN( "cn=" + cn + "," + config.getBaseDn() );
- DefaultClientEntry entry = new DefaultClientEntry();
+ Entry entry = new DefaultEntry();
entry.add( "objectclass", "person" );
entry.add( "cn", cn );
entry.add( "sn", cn );
@@ -108,7 +109,7 @@ public class EntryInjector extends JPane
}
else if( dn == null )
{
- Cursor<SearchResponse> cursor = connection.search( config.getBaseDn(), config.getFilter(), SearchScope.getSearchScope( config.getSearchScope() ), config.getAttributes() );
+ Cursor<SearchResponse> cursor = connection.search( config.getBaseDn(), config.getFilter(), config.getSearchScope(), config.getAttributes() );
cursor.beforeFirst();
if( cursor.next() && cursor.next() ) // to skip the baseDN
{