maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r442151 - in /maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj: ./ UserSecurityAspect.aj
Date Mon, 11 Sep 2006 09:57:47 GMT
Author: carlos
Date: Mon Sep 11 02:57:46 2006
New Revision: 442151

URL: http://svn.apache.org/viewvc?view=rev&rev=442151
Log:
Add security aspect

Added:
    maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/
    maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj
  (with props)

Added: maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj?view=auto&rev=442151
==============================================================================
--- maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj
(added)
+++ maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj
Mon Sep 11 02:57:46 2006
@@ -0,0 +1,36 @@
+package org.apache.maven.continuum.security.acegi.aspectj;
+
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.maven.user.model.UserManager;
+import org.codehaus.plexus.acegi.intercept.method.aspectj.SecurityAspect;
+
+/**
+ * <p>Acegi interceptor for {@link UserManager} method calls.</p>
+ * 
+ * @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
+ * @version $Id$
+ */
+public aspect UserSecurityAspect extends SecurityAspect
+{
+
+    protected pointcut securedExecution():
+        target(UserManager) &&
+        execution(public * *(..)) &&
+        !within(UserSecurityAspect);
+
+}

Propchange: maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/aspectj/UserSecurityAspect.aj
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message