continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447318 - in /maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi: AcegiContinuum.java acl/AclEventHandler.java
Date Mon, 18 Sep 2006 08:26:33 GMT
Author: carlos
Date: Mon Sep 18 01:26:32 2006
New Revision: 447318

URL: http://svn.apache.org/viewvc?view=rev&rev=447318
Log:
Set permissions in project group before returning it

Modified:
    maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/AcegiContinuum.java
    maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclEventHandler.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=447318&r1=447317&r2=447318
==============================================================================
--- 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
Mon Sep 18 01:26:32 2006
@@ -114,6 +114,13 @@
         return groups;
     }
 
+    public ProjectGroup getProjectGroup( int projectGroupId )
+        throws ContinuumException
+    {
+        ProjectGroup projectGroup = getContinuum().getProjectGroup( projectGroupId );
+        return getAclEventHandler().setPermissions( projectGroup );
+    }
+
     public void removeProject( int projectId )
         throws ContinuumException
     {

Modified: maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclEventHandler.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/acl/AclEventHandler.java?view=diff&rev=447318&r1=447317&r2=447318
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclEventHandler.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclEventHandler.java
Mon Sep 18 01:26:32 2006
@@ -210,4 +210,18 @@
 
         setUsersInstancePermission( permission );
     }
+
+    /**
+     * Set project group permissions.
+     * 
+     * @param projectGroup
+     * @return the projectGroup argument where the permissions are set
+     */
+    public ProjectGroup setPermissions( ProjectGroup projectGroup )
+    {
+        InstancePermissions permissions = getUserInstancePermissions( projectGroup.getClass(),
+                                                                      new Integer( projectGroup.getId()
) );
+        projectGroup.setPermissions( permissions );
+        return projectGroup;
+    }
 }



Mime
View raw message