archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r825750 - /archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java
Date Fri, 16 Oct 2009 02:56:48 GMT
Author: brett
Date: Fri Oct 16 02:56:47 2009
New Revision: 825750

URL: http://svn.apache.org/viewvc?rev=825750&view=rev
Log:
clean up unused methods, bolierplate

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java?rev=825750&r1=825749&r2=825750&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/main/java/org/apache/archiva/web/xmlrpc/security/ServiceMethodsPermissionsMapping.java
Fri Oct 16 02:56:47 2009
@@ -19,7 +19,7 @@
  * under the License.
  */
 
-import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 /**
@@ -32,48 +32,22 @@
  */
 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" );
 
 }



Mime
View raw message