You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/03/28 19:15:55 UTC
svn commit: r159260 - in directory/apacheds/trunk/core/src:
main/java/org/apache/ldap/server/authz/
main/java/org/apache/ldap/server/interceptor/
test/org/apache/ldap/server/authz/ test/org/apache/ldap/server/jndi/ibs/
Author: akarasulu
Date: Mon Mar 28 09:15:52 2005
New Revision: 159260
URL: http://svn.apache.org/viewcvs?view=rev&rev=159260
Log:
changes ...
o created authz package
o moved authorization service there
o renamed Authorizer to AuthorizationService
o renamed Validator to ExceptionService
Added:
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/AuthorizationService.java
- copied, changed from r159259, directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Authorizer.java
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/ExceptionService.java
- copied, changed from r159259, directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Validator.java
directory/apacheds/trunk/core/src/test/org/apache/ldap/server/authz/
directory/apacheds/trunk/core/src/test/org/apache/ldap/server/authz/AuthorizationServiceTest.java
- copied, changed from r159259, directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/AuthorizationServiceTest.java
Removed:
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Authorizer.java
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Validator.java
directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/AuthorizationServiceTest.java
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/InterceptorChain.java
Copied: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/AuthorizationService.java (from r159259, directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Authorizer.java)
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/AuthorizationService.java?view=diff&rev=159260&p1=directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Authorizer.java&r1=159259&p2=directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/AuthorizationService.java&r2=159260
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Authorizer.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/AuthorizationService.java Mon Mar 28 09:15:52 2005
@@ -14,13 +14,16 @@
* limitations under the License.
*
*/
-package org.apache.ldap.server.interceptor;
+package org.apache.ldap.server.authz;
import org.apache.ldap.common.exception.LdapNoPermissionException;
import org.apache.ldap.common.name.DnParser;
import org.apache.ldap.server.BackingStore;
import org.apache.ldap.server.SystemPartition;
+import org.apache.ldap.server.interceptor.BaseInterceptor;
+import org.apache.ldap.server.interceptor.InterceptorContext;
+import org.apache.ldap.server.interceptor.NextInterceptor;
import org.apache.ldap.server.db.ResultFilteringEnumeration;
import org.apache.ldap.server.db.SearchResultFilter;
import org.apache.ldap.server.invocation.*;
@@ -38,7 +41,7 @@
/**
- * An {@link Interceptor} that controls access to {@link BackingStore}
+ * An {@link org.apache.ldap.server.interceptor.Interceptor} that controls access to {@link BackingStore}
* operations. If a user tries to perform any operations that requires
* permission he or she doesn't have, {@link NamingException} will be
* thrown and therefore the current invocation chain will terminate.
@@ -46,7 +49,7 @@
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
* @version $Rev$, $Date$
*/
-public class Authorizer extends BaseInterceptor
+public class AuthorizationService extends BaseInterceptor
{
/**
* the administrator's distinguished {@link Name}
@@ -72,7 +75,7 @@
/**
* Creates an authorization service interceptor.
*/
- public Authorizer()
+ public AuthorizationService()
{
}
@@ -397,7 +400,7 @@
SearchControls controls )
throws NamingException
{
- return Authorizer.this.isSearchable( ctx, result );
+ return AuthorizationService.this.isSearchable( ctx, result );
}
} );
@@ -420,7 +423,7 @@
SearchControls controls )
throws NamingException
{
- return Authorizer.this.isSearchable( ctx, result );
+ return AuthorizationService.this.isSearchable( ctx, result );
}
} );
Copied: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/ExceptionService.java (from r159259, directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Validator.java)
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/ExceptionService.java?view=diff&rev=159260&p1=directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Validator.java&r1=159259&p2=directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/ExceptionService.java&r2=159260
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/Validator.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/ExceptionService.java Mon Mar 28 09:15:52 2005
@@ -43,7 +43,7 @@
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
* @version $Rev$
*/
-public class Validator extends BaseInterceptor
+public class ExceptionService extends BaseInterceptor
{
/**
* the root nexus of the system
@@ -54,7 +54,7 @@
/**
* Creates an interceptor that is also the exception handling service.
*/
- public Validator()
+ public ExceptionService()
{
}
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/InterceptorChain.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/InterceptorChain.java?view=diff&r1=159259&r2=159260
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/InterceptorChain.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/interceptor/InterceptorChain.java Mon Mar 28 09:15:52 2005
@@ -19,6 +19,7 @@
import org.apache.ldap.server.authn.AuthenticationService;
import org.apache.ldap.server.invocation.Invocation;
+import org.apache.ldap.server.authz.AuthorizationService;
import javax.naming.NamingException;
import java.util.*;
@@ -52,8 +53,8 @@
{
InterceptorChain chain = new InterceptorChain();
chain.addBefore( NEXT_INTERCEPTOR, "authenticator", new AuthenticationService() );
- chain.addBefore( NEXT_INTERCEPTOR, "authorizer", new Authorizer() );
- chain.addBefore( NEXT_INTERCEPTOR, "validator", new Validator() );
+ chain.addBefore( NEXT_INTERCEPTOR, "authorizer", new AuthorizationService() );
+ chain.addBefore( NEXT_INTERCEPTOR, "validator", new ExceptionService() );
chain.addBefore( NEXT_INTERCEPTOR, "schemaManager", new SchemaManager() );
chain.addBefore( NEXT_INTERCEPTOR, "operationalAttributeInterceptor", new OperationalAttributeInterceptor() );
return chain;
Copied: directory/apacheds/trunk/core/src/test/org/apache/ldap/server/authz/AuthorizationServiceTest.java (from r159259, directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/AuthorizationServiceTest.java)
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/authz/AuthorizationServiceTest.java?view=diff&rev=159260&p1=directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/AuthorizationServiceTest.java&r1=159259&p2=directory/apacheds/trunk/core/src/test/org/apache/ldap/server/authz/AuthorizationServiceTest.java&r2=159260
==============================================================================
--- directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/AuthorizationServiceTest.java (original)
+++ directory/apacheds/trunk/core/src/test/org/apache/ldap/server/authz/AuthorizationServiceTest.java Mon Mar 28 09:15:52 2005
@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
-package org.apache.ldap.server.jndi.ibs;
+package org.apache.ldap.server.authz;
import org.apache.ldap.common.exception.LdapNoPermissionException;