From df39db0389a9903ab92063a0b1cf0667e42cff96 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Fri, 16 Oct 2009 02:27:25 +0000 Subject: [PATCH] [MNG-1231] correct authorization for all getDepend* methods git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@825739 13f79535-47bb-0310-9956-ffa450edef68 --- .../ServiceMethodsPermissionsMapping.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java index 133820a8e..707568f7e 100644 --- a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java +++ b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java @@ -24,14 +24,14 @@ import java.util.List; /** * ServiceMethodsPermissionsMapping - * + * * Used by the XmlRpcAuthenticationHandler to check the permissions specific to the requested service method. - * New methods in exposed services must be registered in the appropriate operation below. - * + * New methods in exposed services must be registered in the appropriate operation below. + * * @version $Id: ServiceMethodsPermissionsMapping.java */ public class ServiceMethodsPermissionsMapping -{ +{ public static final List SERVICE_METHODS_FOR_OPERATION_MANAGE_CONFIGURATION = new ArrayList() { { @@ -46,34 +46,34 @@ public class ServiceMethodsPermissionsMapping } }; - public static final List SERVICE_METHODS_FOR_OPERATION_RUN_INDEXER = new ArrayList() - { + public static final List SERVICE_METHODS_FOR_OPERATION_RUN_INDEXER = new ArrayList() + { { - add( "AdministrationService.executeRepositoryScanner"); + add( "AdministrationService.executeRepositoryScanner"); } - }; - + }; + public static final List SERVICE_METHODS_FOR_OPERATION_ACCESS_REPORT = new ArrayList(); - + public static final List SERVICE_METHODS_FOR_OPERATION_REPOSITORY_ACCESS = new ArrayList() { { add( "SearchService.quickSearch" ); add( "SearchService.getArtifactByChecksum" ); add( "SearchService.getArtifactVersions" ); - add( "SearchService.queryArtifactVersionsByDate" ); - add(" SearchService.getDirectDependencies" ); - add(" SearchService.getDirectDependencyTree" ); - add(" SearchService.getDependees" ); + add( "SearchService.getArtifactVersionsByDate" ); + add( "SearchService.getDependencies" ); + add( "SearchService.getDependencyTree" ); + add( "SearchService.getDependees" ); } }; - + public static final List SERVICE_METHODS_FOR_OPERATION_ADD_REPOSITORY = new ArrayList(); - + public static final List SERVICE_METHODS_FOR_OPERATION_DELETE_REPOSITORY = new ArrayList(); - + public static final List SERVICE_METHODS_FOR_OPERATION_EDIT_REPOSITORY = new ArrayList(); - - public static final List SERVICE_METHODS_FOR_OPERATION_REPOSITORY_UPLOAD = new ArrayList(); - + + public static final List SERVICE_METHODS_FOR_OPERATION_REPOSITORY_UPLOAD = new ArrayList(); + } -- 2.39.5