continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r442169 - /maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclInitializer.java
Date Mon, 11 Sep 2006 10:43:57 GMT
Author: carlos
Date: Mon Sep 11 03:43:57 2006
New Revision: 442169

URL: http://svn.apache.org/viewvc?view=rev&rev=442169
Log:
Use ExtendedSimpleAclEntry

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

Modified: maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclInitializer.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/AclInitializer.java?view=diff&rev=442169&r1=442168&r2=442169
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclInitializer.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-security/continuum-security-acegi/src/main/java/org/apache/maven/continuum/security/acegi/acl/AclInitializer.java
Mon Sep 11 03:43:57 2006
@@ -17,8 +17,8 @@
  */
 
 import org.acegisecurity.acl.basic.NamedEntityObjectIdentity;
-import org.acegisecurity.acl.basic.SimpleAclEntry;
 import org.apache.maven.continuum.model.project.ProjectGroup;
+import org.apache.maven.user.acegi.acl.basic.ExtendedSimpleAclEntry;
 
 /**
  * Initialize the ACL system with a parent ACL for all {@link ProjectGroup}s.
@@ -34,11 +34,11 @@
     protected void insertDefaultData()
     {
         /* admin can do anything with project number 1 */
-        SimpleAclEntry aclEntry = new SimpleAclEntry();
+        ExtendedSimpleAclEntry aclEntry = new ExtendedSimpleAclEntry();
         aclEntry.setAclObjectIdentity( new NamedEntityObjectIdentity( ProjectGroup.class.getName(),
Integer
             .toString( PARENT_PROJECT_GROUP_ACL_ID ) ) );
         aclEntry.setRecipient( "ROLE_admin" );
-        aclEntry.addPermission( SimpleAclEntry.ADMINISTRATION );
+        aclEntry.addPermission( ExtendedSimpleAclEntry.ADMINISTRATION );
         getDao().create( aclEntry );
     }
 }



Mime
View raw message