directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vte...@apache.org
Subject svn commit: r158467 - directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy
Date Mon, 21 Mar 2005 15:40:29 GMT
Author: vtence
Date: Mon Mar 21 07:40:28 2005
New Revision: 158467

URL: http://svn.apache.org/viewcvs?view=rev&rev=158467
Log:
Added missing file

Added:
    directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy   (with
props)

Added: directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy
URL: http://svn.apache.org/viewcvs/directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy?view=auto&rev=158467
==============================================================================
--- directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy (added)
+++ directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy Mon
Mar 21 07:40:28 2005
@@ -0,0 +1,9 @@
+class Geeks {
+
+    evaluate( request )
+    {
+        geeks = new org.apache.authx.authentication.attribute.GroupPrincipal( "geeks" );
+        if ( request.getSubject().getPrincipals().contains( geeks ) ) request.grant();
+    }
+
+}
\ No newline at end of file

Propchange: directory/authx/trunk/script/src/test/org/apache/authx/script/groovy/geeks.groovy
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message