directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r664462 - in /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core: CoreSession.java DefaultCoreSession.java interceptor/context/UnbindOperationContext.java
Date Sun, 08 Jun 2008 07:26:29 GMT
Author: akarasulu
Date: Sun Jun  8 00:26:28 2008
New Revision: 664462

URL: http://svn.apache.org/viewvc?rev=664462&view=rev
Log:
addd unbind methods to core session and opContext

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

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java?rev=664462&r1=664461&r2=664462&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
Sun Jun  8 00:26:28 2008
@@ -43,6 +43,7 @@
 import org.apache.directory.shared.ldap.message.DeleteRequest;
 import org.apache.directory.shared.ldap.message.ModifyDnRequest;
 import org.apache.directory.shared.ldap.message.ModifyRequest;
+import org.apache.directory.shared.ldap.message.UnbindRequest;
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.name.Rdn;
 import org.apache.directory.shared.ldap.schema.AttributeTypeOptions;
@@ -409,4 +410,10 @@
 
 
     EntryFilteringCursor search( SearchRequest searchRequest ) throws Exception;
+
+
+    void unbind() throws Exception;
+    
+    
+    void unbind( UnbindRequest unbindRequest ) throws Exception;
 }

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=664462&r1=664461&r2=664462&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
Sun Jun  8 00:26:28 2008
@@ -42,6 +42,7 @@
 import org.apache.directory.server.core.interceptor.context.OperationContext;
 import org.apache.directory.server.core.interceptor.context.RenameOperationContext;
 import org.apache.directory.server.core.interceptor.context.SearchOperationContext;
+import org.apache.directory.server.core.interceptor.context.UnbindOperationContext;
 import org.apache.directory.shared.ldap.NotImplementedException;
 import org.apache.directory.shared.ldap.constants.AuthenticationLevel;
 import org.apache.directory.shared.ldap.entry.Modification;
@@ -54,6 +55,7 @@
 import org.apache.directory.shared.ldap.message.ModifyDnRequest;
 import org.apache.directory.shared.ldap.message.ModifyRequest;
 import org.apache.directory.shared.ldap.message.SearchRequest;
+import org.apache.directory.shared.ldap.message.UnbindRequest;
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.name.Rdn;
 import org.apache.directory.shared.ldap.schema.AttributeTypeOptions;
@@ -439,4 +441,17 @@
         searchRequest.getResultResponse().addAll( opContext.getResponseControls() );
         return cursor;
     }
+
+
+    public void unbind() throws Exception
+    {
+        directoryService.getOperationManager().unbind( new UnbindOperationContext( this )
);
+    }
+
+
+    public void unbind( UnbindRequest unbindRequest )
+    {
+        // TODO Auto-generated method stub
+        
+    }
 }

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindOperationContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindOperationContext.java?rev=664462&r1=664461&r2=664462&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindOperationContext.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/interceptor/context/UnbindOperationContext.java
Sun Jun  8 00:26:28 2008
@@ -22,7 +22,7 @@
 
 import org.apache.directory.server.core.CoreSession;
 import org.apache.directory.shared.ldap.message.MessageTypeEnum;
-import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.shared.ldap.message.UnbindRequest;
 
 
 /**
@@ -39,21 +39,17 @@
      */
     public UnbindOperationContext( CoreSession session )
     {
-        super( session );
+        super( session, session.getEffectivePrincipal().getJndiName() );
     }
     
 
-    /**
-     * Creates a new instance of UnbindOperationContext.
-     *
-     * @param principalDn The principal DN to unbind
-     */
-    public UnbindOperationContext( CoreSession session, LdapDN principalDn )
+    public UnbindOperationContext( CoreSession session, UnbindRequest unbindRequest )
     {
-        super( session, principalDn );
+        super( session, session.getEffectivePrincipal().getJndiName() );
+        this.setRequestControls( unbindRequest.getControls() );
     }
-    
 
+    
     /**
      * @return the operation name
      */



Mime
View raw message