directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r733095 - in /directory/apacheds/trunk/core/src: main/java/org/apache/directory/server/core/ test/java/org/apache/directory/server/core/authz/support/ test/java/org/apache/directory/server/core/interceptor/
Date Fri, 09 Jan 2009 17:40:22 GMT
Author: elecharny
Date: Fri Jan  9 09:40:22 2009
New Revision: 733095

URL: http://svn.apache.org/viewvc?rev=733095&view=rev
Log:
Added a method to return an interceptor from its name

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DirectoryService.java
    directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
    directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=733095&r1=733094&r2=733095&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Fri Jan  9 09:40:22 2009
@@ -1590,4 +1590,21 @@
         
         this.maxPDUSize = maxPDUSize;
     }
+    
+    
+    /**
+     * {@inheritDoc}
+     */
+    public Interceptor getInterceptor( String interceptorName )
+    {
+        for ( Interceptor interceptor:interceptors )
+        {
+            if ( interceptor.getName().equalsIgnoreCase( interceptorName ) )
+            {
+                return interceptor;
+            }
+        }
+        
+        return null;
+    }
 }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DirectoryService.java?rev=733095&r1=733094&r2=733095&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DirectoryService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DirectoryService.java
Fri Jan  9 09:40:22 2009
@@ -422,4 +422,12 @@
      * null value will be transformed to {@link Integer#MAX_VALUE}
      */
     void setMaxPDUSize( int maxPDUSize );
+    
+    
+    /**
+     * Get an Interceptor instance from its name
+     * @param interceptorName The interceptor's name for which we want the instance 
+     * @return
+     */
+    Interceptor getInterceptor( String interceptorName );
 }

Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java?rev=733095&r1=733094&r2=733095&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
(original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/authz/support/MaxImmSubFilterTest.java
Fri Jan  9 09:40:22 2009
@@ -836,6 +836,12 @@
         {
             // Do nothing
         }
+
+        
+        public Interceptor getInterceptor( String interceptorName )
+        {
+            return null;
+        }
     }
 
     

Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java?rev=733095&r1=733094&r2=733095&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java
(original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/interceptor/InterceptorChainTest.java
Fri Jan  9 09:40:22 2009
@@ -645,5 +645,11 @@
         {
             // Do nothing
         }
+
+        
+        public Interceptor getInterceptor( String interceptorName )
+        {
+            return null;
+        }
     }
 }



Mime
View raw message