directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r664454 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
Date Sun, 08 Jun 2008 05:57:47 GMT
Author: akarasulu
Date: Sat Jun  7 22:57:46 2008
New Revision: 664454

URL: http://svn.apache.org/viewvc?rev=664454&view=rev
Log:
made it so response controls are transduced from opContext to search and modify requests

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java?rev=664454&r1=664453&r2=664454&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
Sat Jun  7 22:57:46 2008
@@ -365,7 +365,9 @@
 
     public void modify( ModifyRequest modifyRequest ) throws Exception
     {
-        directoryService.getOperationManager().modify( new ModifyOperationContext( this,
modifyRequest ) );
+        ModifyOperationContext opContext = new ModifyOperationContext( this, modifyRequest
);
+        directoryService.getOperationManager().modify( opContext );
+        modifyRequest.getResultResponse().addAll( opContext.getResponseControls() );
     }
 
 
@@ -395,6 +397,9 @@
 
     public EntryFilteringCursor search( SearchRequest searchRequest ) throws Exception
     {
-        return directoryService.getOperationManager().search( new SearchOperationContext(
this, searchRequest ) );
+        SearchOperationContext opContext = new SearchOperationContext( this, searchRequest
);
+        EntryFilteringCursor cursor = directoryService.getOperationManager().search( opContext
);
+        searchRequest.getResultResponse().addAll( opContext.getResponseControls() );
+        return cursor;
     }
 }



Mime
View raw message