From f36029359a9132a9c650830044355d8d09680f94 Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Mon, 7 Jun 2010 08:15:53 +0000 Subject: [PATCH] [MRM-1362] Add simple 'CRUD' pages for project-level metadata along with a "generic metadata" plugin o allow only users with repo manager role to add & delete metadata content o add archiva-add-metadata and archive-delete-metadata permissions git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@952136 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/META-INF/redback/redback.xml | 22 +++++++ .../WEB-INF/jsp/include/projectMetadata.jspf | 58 ++++++++++--------- 2 files changed, 53 insertions(+), 27 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-security/src/main/resources/META-INF/redback/redback.xml b/archiva-modules/archiva-web/archiva-security/src/main/resources/META-INF/redback/redback.xml index 55b30e09e..ee57e70fd 100644 --- a/archiva-modules/archiva-web/archiva-security/src/main/resources/META-INF/redback/redback.xml +++ b/archiva-modules/archiva-web/archiva-security/src/main/resources/META-INF/redback/redback.xml @@ -65,6 +65,16 @@ archiva-access-repository Access Archiva Repository + + archiva-add-metadata + archiva-add-metadata + Add Repository Metadata + + + archiva-delete-metadata + archiva-delete-metadata + Delete Repository Metadata + archiva-view-audit-logs archiva-view-audit-logs @@ -230,6 +240,18 @@ archiva-view-audit-logs ${resource} + + archiva-add-metadata + Archiva Add Repository Metadata + archiva-add-metadata + ${resource} + + + archiva-delete-metadata + Archiva Delete Repository Metadata + archiva-delete-metadata + ${resource} + archiva-repository-observer diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/projectMetadata.jspf b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/projectMetadata.jspf index 0b437910d..e0a7af191 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/projectMetadata.jspf +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/include/projectMetadata.jspf @@ -25,30 +25,32 @@
- - - - - - - - - - - - - - - -
Property NameProperty Value -
- - - - - -
-
+ + + + + + + + + + + + + + + + +
Property NameProperty Value +
+ + + + + +
+
+
@@ -68,9 +70,11 @@
  • ${prop.key}=${prop.value} - - " alt="Delete" width="12" length="12"/> - + + + " alt="Delete" width="12" length="12"/> + +
  • -- 2.39.5