directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r827982 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
Date Wed, 21 Oct 2009 12:15:20 GMT
Author: seelmann
Date: Wed Oct 21 12:15:20 2009
New Revision: 827982

URL: http://svn.apache.org/viewvc?rev=827982&view=rev
Log:
Fixed subentries search

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java?rev=827982&r1=827981&r2=827982&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
Wed Oct 21 12:15:20 2009
@@ -367,7 +367,7 @@
     }
 
 
-    private static ISearch createSearch( IEntry parent, StudioControl pagedSearchControl,
boolean isSubSearch,
+    private static ISearch createSearch( IEntry parent, StudioControl pagedSearchControl,
boolean isSubentriesSearch,
         boolean isAliasSearch, boolean isReferralsSearch )
     {
         // scope
@@ -375,7 +375,7 @@
 
         // filter
         String filter = parent.getChildrenFilter();
-        if ( isSubSearch )
+        if ( isSubentriesSearch )
         {
             filter = ISearch.FILTER_SUBENTRY;
         }
@@ -414,6 +414,10 @@
         {
             search.getSearchParameter().getControls().add( StudioControl.MANAGEDSAIT_CONTROL
);
         }
+        if ( isSubentriesSearch )
+        {
+            search.getSearchParameter().getControls().add( StudioControl.SUBENTRIES_CONTROL
);
+        }
         if ( pagedSearchControl != null )
         {
             search.getSearchParameter().getControls().add( pagedSearchControl );



Mime
View raw message