continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcconn...@apache.org
Subject svn commit: r449745 - in /maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security: ./ profile/
Date Mon, 25 Sep 2006 17:13:13 GMT
Author: jmcconnell
Date: Mon Sep 25 10:13:13 2006
New Revision: 449745

URL: http://svn.apache.org/viewvc?view=rev&rev=449745
Log:
give continuum administrator some granted operations

Added:
    maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministratorRoleProfile.java
  (contents, props changed)
      - copied, changed from r449740, maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministrator.java
Removed:
    maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministrator.java
Modified:
    maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/ContinuumRoleConstants.java

Modified: maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/ContinuumRoleConstants.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/ContinuumRoleConstants.java?view=diff&rev=449745&r1=449744&r2=449745
==============================================================================
--- maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/ContinuumRoleConstants.java
(original)
+++ maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/ContinuumRoleConstants.java
Mon Sep 25 10:13:13 2006
@@ -30,6 +30,9 @@
     public static final String CONTINUUM_PROJECT_USER_ROLE_PREFIX = "Project User";
 
     // global operations
+    public static final String CONTINUUM_MANAGE_SCHEDULES = "continuum-manage-schedules";
+    public static final String CONTINUUM_MANAGE_CONFIGURATION = "continuum-manage-configuration";
+    public static final String CONTINUUM_MANAGE_USERS = "continuum-manage-users";
 
     // dynamic operations
     public static final String CONTINUUM_VIEW_GROUP_OPERATION = "continuum-view-group";

Copied: maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministratorRoleProfile.java
(from r449740, maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministrator.java)
URL: http://svn.apache.org/viewvc/maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministratorRoleProfile.java?view=diff&rev=449745&p1=maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministrator.java&r1=449740&p2=maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministratorRoleProfile.java&r2=449745
==============================================================================
--- maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministrator.java
(original)
+++ maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministratorRoleProfile.java
Mon Sep 25 10:13:13 2006
@@ -2,9 +2,10 @@
 
 import org.codehaus.plexus.rbac.profile.AbstractRoleProfile;
 import org.codehaus.plexus.rbac.profile.RoleProfileConstants;
+import org.apache.maven.continuum.security.ContinuumRoleConstants;
 
+import java.util.ArrayList;
 import java.util.List;
-import java.util.Collections;
 /*
  * Copyright 2006 The Apache Software Foundation.
  *
@@ -22,16 +23,19 @@
  */
 
 /**
- * ContinuumSystemAdministrator:
+ * ContinuumSystemAdministratorRoleProfile:
  *
  * @author: Jesse McConnell <jmcconnell@apache.org>
  * @version: $ID:$
+ *
+ * @plexus.component
+ *   role="org.codehaus.plexus.rbac.profile.RoleProfile"
+ *   role-hint="continuum-system-administrator"
  */
-public class ContinuumSystemAdministrator
+public class ContinuumSystemAdministratorRoleProfile
     extends AbstractRoleProfile
 {
 
-
     public String getRoleName()
     {
         return RoleProfileConstants.SYSTEM_ADMINISTRATOR_ROLE;
@@ -39,6 +43,11 @@
 
     public List getOperations()
     {
-        return Collections.EMPTY_LIST;
+        List operations = new ArrayList();
+        operations.add( ContinuumRoleConstants.CONTINUUM_MANAGE_SCHEDULES );
+        operations.add( ContinuumRoleConstants.CONTINUUM_MANAGE_CONFIGURATION );
+        operations.add( ContinuumRoleConstants.CONTINUUM_MANAGE_USERS );
+
+        return operations;
     }
 }

Propchange: maven/continuum/branches/rbac-integration/continuum-security/src/main/java/org/apache/maven/continuum/security/profile/ContinuumSystemAdministratorRoleProfile.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message