diff options
author | Brett Porter <brett@apache.org> | 2009-10-16 02:56:47 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-10-16 02:56:47 +0000 |
commit | 61336c8774e7341d5d16d4adba809ef2ca54a969 (patch) | |
tree | 83a64717895955a8c584970f0bed72b44708e5e1 /archiva-modules/archiva-web/archiva-xmlrpc | |
parent | df39db0389a9903ab92063a0b1cf0667e42cff96 (diff) | |
download | archiva-61336c8774e7341d5d16d4adba809ef2ca54a969.tar.gz archiva-61336c8774e7341d5d16d4adba809ef2ca54a969.zip |
clean up unused methods, bolierplate
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@825750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-xmlrpc')
-rw-r--r-- | archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java | 62 |
1 files changed, 18 insertions, 44 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 707568f7e..b7119e067 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 @@ -19,7 +19,7 @@ package org.apache.archiva.web.xmlrpc.security; * under the License. */ -import java.util.ArrayList; +import java.util.Arrays; import java.util.List; /** @@ -32,48 +32,22 @@ import java.util.List; */ public class ServiceMethodsPermissionsMapping { - public static final List<String> SERVICE_METHODS_FOR_OPERATION_MANAGE_CONFIGURATION = new ArrayList<String>() - { - { - add( "AdministrationService.configureRepositoryConsumer" ); - add( "AdministrationService.configureDatabaseConsumer" ); - add( "AdministrationService.executeDatabaseScanner" ); - add( "AdministrationService.getAllManagedRepositories" ); - add( "AdministrationService.getAllRemoteRepositories" ); - add( "AdministrationService.getAllDatabaseConsumers" ); - add( "AdministrationService.getAllRepositoryConsumers" ); - add( "AdministrationService.deleteArtifact" ); - } - }; - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_RUN_INDEXER = new ArrayList<String>() - { - { - add( "AdministrationService.executeRepositoryScanner"); - } - }; - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_ACCESS_REPORT = new ArrayList<String>(); - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_ACCESS = new ArrayList<String>() - { - { - add( "SearchService.quickSearch" ); - add( "SearchService.getArtifactByChecksum" ); - add( "SearchService.getArtifactVersions" ); - add( "SearchService.getArtifactVersionsByDate" ); - add( "SearchService.getDependencies" ); - add( "SearchService.getDependencyTree" ); - add( "SearchService.getDependees" ); - } - }; - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_ADD_REPOSITORY = new ArrayList<String>(); - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_DELETE_REPOSITORY = new ArrayList<String>(); - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_EDIT_REPOSITORY = new ArrayList<String>(); - - public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_UPLOAD = new ArrayList<String>(); + public static final List<String> SERVICE_METHODS_FOR_OPERATION_MANAGE_CONFIGURATION = + Arrays.asList( "AdministrationService.configureRepositoryConsumer", + "AdministrationService.configureDatabaseConsumer", + "AdministrationService.executeDatabaseScanner", + "AdministrationService.getAllManagedRepositories", + "AdministrationService.getAllRemoteRepositories", + "AdministrationService.getAllDatabaseConsumers", + "AdministrationService.getAllRepositoryConsumers", "AdministrationService.deleteArtifact" ); + + public static final List<String> SERVICE_METHODS_FOR_OPERATION_RUN_INDEXER = + Arrays.asList( "AdministrationService.executeRepositoryScanner" ); + + public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_ACCESS = + Arrays.asList( "SearchService.quickSearch", "SearchService.getArtifactByChecksum", + "SearchService.getArtifactVersions", "SearchService.getArtifactVersionsByDate", + "SearchService.getDependencies", "SearchService.getDependencyTree", + "SearchService.getDependees" ); } |