continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447205 - /maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
Date Mon, 18 Sep 2006 02:56:09 GMT
Author: carlos
Date: Sun Sep 17 19:56:08 2006
New Revision: 447205

URL: http://svn.apache.org/viewvc?view=rev&rev=447205
Log:
Add remove methods that accept objects for Acegi

Modified:
    maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java

Modified: maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java?view=diff&rev=447205&r1=447204&r2=447205
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
Sun Sep 17 19:56:08 2006
@@ -22,6 +22,7 @@
 import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.model.project.BuildDefinition;
 import org.apache.maven.continuum.model.project.Project;
+import org.apache.maven.continuum.model.project.ProjectGroup;
 import org.apache.maven.continuum.model.project.ProjectNotifier;
 import org.apache.maven.continuum.project.builder.ContinuumProjectBuildingResult;
 import org.apache.maven.continuum.security.acegi.acl.AclEventHandler;
@@ -113,10 +114,42 @@
         return groups;
     }
 
+    public void removeProject( int projectId )
+        throws ContinuumException
+    {
+        removeProject( getProject( projectId ) );
+    }
+
+    /**
+     * Required for Acegi ACL
+     * 
+     * @param project
+     * @throws ContinuumException
+     */
+    public void removeProject( Project project )
+        throws ContinuumException
+    {
+        getContinuum().removeProject( project.getId() );
+        getAclEventHandler().afterDeleteProject( project.getId() );
+    }
+
     public void removeProjectGroup( int projectGroupId )
         throws ContinuumException
     {
-        getContinuum().removeProjectGroup( projectGroupId );
-        getAclEventHandler().afterDeleteProjectGroup( projectGroupId );
+        removeProjectGroup( getProjectGroup( projectGroupId ) );
+    }
+
+    /**
+     * Required for Acegi ACL
+     * 
+     * @param projectGroup
+     * @throws ContinuumException
+     */
+    public void removeProjectGroup( ProjectGroup projectGroup )
+        throws ContinuumException
+    {
+        getContinuum().removeProjectGroup( projectGroup.getId() );
+        getAclEventHandler().afterDeleteProjectGroup( projectGroup.getId() );
     }
+
 }



Mime
View raw message