From af8a841830066bca865786fc0c4dbdcfaac13920 Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Thu, 21 Dec 2006 08:51:39 +0000 Subject: [PATCH] PR: MRM-260 Updated managedRepositories.jsp. Added "archiva-edit-configuration" operation specific for archiva system admin only to disallow updating of the indexer for all users with repository manager roles. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@489289 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/archiva/security/ArchivaRoleConstants.java | 2 ++ .../security/ArchivaSystemAdministratorRoleProfile.java | 1 + archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp | 2 ++ .../main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp | 6 ++++-- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaRoleConstants.java b/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaRoleConstants.java index 1ab7f4be5..e256887cb 100644 --- a/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaRoleConstants.java +++ b/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaRoleConstants.java @@ -58,4 +58,6 @@ public class ArchivaRoleConstants public static final String OPERATION_EDIT_REPOSITORY = "archiva-edit-repository"; public static final String OPERATION_REPOSITORY_UPLOAD = "archiva-upload-repository"; + + public static final String OPERATION_EDIT_CONFIGURATION = "archiva-edit-configuration"; } diff --git a/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaSystemAdministratorRoleProfile.java b/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaSystemAdministratorRoleProfile.java index 6470f26d3..febded8e7 100644 --- a/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaSystemAdministratorRoleProfile.java +++ b/archiva-security/src/main/java/org/apache/maven/archiva/security/ArchivaSystemAdministratorRoleProfile.java @@ -38,6 +38,7 @@ public class ArchivaSystemAdministratorRoleProfile { List operations = new ArrayList(); operations.add( ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION ); + operations.add( ArchivaRoleConstants.OPERATION_EDIT_CONFIGURATION ); operations.add( ArchivaRoleConstants.OPERATION_MANAGE_USERS ); operations.add( ArchivaRoleConstants.OPERATION_RUN_INDEXER ); operations.add( ArchivaRoleConstants.OPERATION_REGENERATE_INDEX ); diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp index 8c795d8c3..cca73f9c0 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/index.jsp @@ -32,7 +32,9 @@
<%-- TODO replace with icons --%> + ">Edit Configuration +

Configuration

diff --git a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp index 4fcf44189..9e2fd6eb0 100644 --- a/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp +++ b/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/managedRepositories.jsp @@ -48,6 +48,7 @@ There are no managed repositories configured yet. +
@@ -57,8 +58,8 @@ <%-- TODO replace with icons --%> - Edit Repository - Delete Repository + Edit Repository + Delete Repository

${repository.name}

@@ -132,6 +133,7 @@
+
-- 2.39.5