directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1404152 - in /directory/apacheds/trunk/core-shared: pom.xml src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
Date Wed, 31 Oct 2012 14:15:01 GMT
Author: kayyagari
Date: Wed Oct 31 14:15:01 2012
New Revision: 1404152

URL: http://svn.apache.org/viewvc?rev=1404152&view=rev
Log:
o set the synreplsearch flag based on the control
o added dependency on extras-codec-api

Modified:
    directory/apacheds/trunk/core-shared/pom.xml
    directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java

Modified: directory/apacheds/trunk/core-shared/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-shared/pom.xml?rev=1404152&r1=1404151&r2=1404152&view=diff
==============================================================================
--- directory/apacheds/trunk/core-shared/pom.xml (original)
+++ directory/apacheds/trunk/core-shared/pom.xml Wed Oct 31 14:15:01 2012
@@ -59,6 +59,11 @@
     
     <dependency>
       <groupId>org.apache.directory.shared</groupId>
+      <artifactId>shared-ldap-extras-codec-api</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
       <artifactId>shared-ldap-extras-util</artifactId>
     </dependency>
     

Modified: directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java?rev=1404152&r1=1404151&r2=1404152&view=diff
==============================================================================
--- directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
(original)
+++ directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
Wed Oct 31 14:15:01 2012
@@ -49,6 +49,7 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.api.interceptor.context.SearchOperationContext;
 import org.apache.directory.server.core.api.interceptor.context.UnbindOperationContext;
 import org.apache.directory.server.i18n.I18n;
+import org.apache.directory.shared.ldap.extras.controls.SyncRequestValue;
 import org.apache.directory.shared.ldap.model.constants.AuthenticationLevel;
 import org.apache.directory.shared.ldap.model.entry.BinaryValue;
 import org.apache.directory.shared.ldap.model.entry.DefaultModification;
@@ -1064,6 +1065,8 @@ public class DefaultCoreSession implemen
     public EntryFilteringCursor search( SearchRequest searchRequest ) throws LdapException
     {
         SearchOperationContext searchContext = new SearchOperationContext( this, searchRequest
);
+        searchContext.setSyncreplSearch( searchRequest.getControls().containsKey( SyncRequestValue.OID
) );
+        
         OperationManager operationManager = directoryService.getOperationManager();
 
         EntryFilteringCursor cursor = null;



Mime
View raw message