directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r414618 - in /directory/trunks/apacheds: protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/ server-unit/src/test/java/org/apache/directory/server/
Date Thu, 15 Jun 2006 15:30:13 GMT
Author: akarasulu
Date: Thu Jun 15 08:30:12 2006
New Revision: 414618

URL: http://svn.apache.org/viewvc?rev=414618&view=rev
Log:
make method for sp static in test and use LdapContext instead of ServerLdapContext

Modified:
    directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
    directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/LanguageSpecificStoredProceureExtendedOperationHandler.java
    directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/StoredProcedureExtendedOperationHandler.java
    directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/HelloWorldProcedure.java

Modified: directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java?rev=414618&r1=414617&r2=414618&view=diff
==============================================================================
--- directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
(original)
+++ directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/JavaStoredProcedureExtendedOperationHandler.java
Thu Jun 15 08:30:12 2006
@@ -26,8 +26,8 @@
 import java.util.List;
 
 import javax.naming.NamingException;
+import javax.naming.ldap.LdapContext;
 
-import org.apache.directory.server.core.jndi.ServerLdapContext;
 import org.apache.directory.shared.ldap.codec.extended.operations.StoredProcedure;
 import org.apache.directory.shared.ldap.codec.extended.operations.StoredProcedure.StoredProcedureParameter;
 import org.apache.directory.shared.ldap.util.ClassUtils;
@@ -41,7 +41,7 @@
  */
 public class JavaStoredProcedureExtendedOperationHandler implements LanguageSpecificStoredProceureExtendedOperationHandler
 {
-    public void handleStoredProcedureExtendedOperation( ServerLdapContext ctx, StoredProcedure
pojo ) throws ClassNotFoundException, NamingException
+    public void handleStoredProcedureExtendedOperation( LdapContext ctx, StoredProcedure
pojo ) throws ClassNotFoundException, NamingException
     {
         List types = new ArrayList( pojo.getParameters().size() );
         List values = new ArrayList( pojo.getParameters().size() );

Modified: directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/LanguageSpecificStoredProceureExtendedOperationHandler.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/LanguageSpecificStoredProceureExtendedOperationHandler.java?rev=414618&r1=414617&r2=414618&view=diff
==============================================================================
--- directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/LanguageSpecificStoredProceureExtendedOperationHandler.java
(original)
+++ directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/LanguageSpecificStoredProceureExtendedOperationHandler.java
Thu Jun 15 08:30:12 2006
@@ -17,7 +17,8 @@
 package org.apache.directory.server.ldap.support.extended;
 
 
-import org.apache.directory.server.core.jndi.ServerLdapContext;
+import javax.naming.ldap.LdapContext;
+
 import org.apache.directory.shared.ldap.codec.extended.operations.StoredProcedure;
 
 
@@ -30,5 +31,5 @@
  */
 public interface LanguageSpecificStoredProceureExtendedOperationHandler 
 {
-    void handleStoredProcedureExtendedOperation( ServerLdapContext ctx, StoredProcedure spBean
) throws Exception;
+    void handleStoredProcedureExtendedOperation( LdapContext ctx, StoredProcedure spBean
) throws Exception;
 }

Modified: directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/StoredProcedureExtendedOperationHandler.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/StoredProcedureExtendedOperationHandler.java?rev=414618&r1=414617&r2=414618&view=diff
==============================================================================
--- directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/StoredProcedureExtendedOperationHandler.java
(original)
+++ directory/trunks/apacheds/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/extended/StoredProcedureExtendedOperationHandler.java
Thu Jun 15 08:30:12 2006
@@ -25,8 +25,8 @@
 import java.util.Set;
 
 import javax.naming.ldap.Control;
+import javax.naming.ldap.LdapContext;
 
-import org.apache.directory.server.core.jndi.ServerLdapContext;
 import org.apache.directory.server.ldap.ExtendedOperationHandler;
 import org.apache.directory.server.ldap.LdapProtocolProvider;
 import org.apache.directory.server.ldap.SessionRegistry;
@@ -50,7 +50,7 @@
     public void handleExtendedOperation( IoSession session, SessionRegistry registry, ExtendedRequest
req ) throws Exception
     {
         Control[] connCtls = ( Control[] ) req.getControls().values().toArray( new Control[
req.getControls().size() ] );
-        ServerLdapContext serverLdapContext = ( ServerLdapContext ) registry.getLdapContext(
session, connCtls, false);
+        LdapContext serverLdapContext = ( LdapContext ) registry.getLdapContext( session,
connCtls, false);
         StoredProcedure spBean = decodeBean( req.getPayload() );
         
         LanguageSpecificStoredProceureExtendedOperationHandler handler = null;

Modified: directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/HelloWorldProcedure.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/HelloWorldProcedure.java?rev=414618&r1=414617&r2=414618&view=diff
==============================================================================
--- directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/HelloWorldProcedure.java
(original)
+++ directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/HelloWorldProcedure.java
Thu Jun 15 08:30:12 2006
@@ -3,7 +3,7 @@
 
 public class HelloWorldProcedure
 {
-    public void sayHello()
+    public static void sayHello()
     {
         System.out.println( "Hello World!" );
     }



Mime
View raw message