]> source.dussan.org Git - archiva.git/blob
9a61db2f36285dfef2ec1aa0bd2506f553594f58
[archiva.git] /
1 package org.apache.archiva.web.xmlrpc.security;
2
3
4 /*
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements.  See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership.  The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License.  You may obtain a copy of the License at
12  *
13  *  http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing,
16  * software distributed under the License is distributed on an
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  * KIND, either express or implied.  See the License for the
19  * specific language governing permissions and limitations
20  * under the License.
21  */
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26 /**
27  * ServiceMethodsPermissionsMapping
28  * 
29  * Used by the XmlRpcAuthenticationHandler to check the permissions specific to the requested service method.
30  * New methods in exposed services must be registered in the appropriate operation below. 
31  * 
32  * @version $Id: ServiceMethodsPermissionsMapping.java
33  */
34 public class ServiceMethodsPermissionsMapping
35 {   
36     public static final List<String> SERVICE_METHODS_FOR_OPERATION_MANAGE_CONFIGURATION = new ArrayList<String>()
37     {
38         {
39             add( "AdministrationService.configureRepositoryConsumer" );
40             add( "AdministrationService.configureDatabaseConsumer" );
41             add( "AdministrationService.executeDatabaseScanner" );
42             add( "AdministrationService.getAllManagedRepositories" );
43             add( "AdministrationService.getAllRemoteRepositories" );
44             add( "AdministrationService.getAllDatabaseConsumers" );
45             add( "AdministrationService.getAllRepositoryConsumers" );
46         }
47     };
48
49     public static final List<String> SERVICE_METHODS_FOR_OPERATION_RUN_INDEXER = new ArrayList<String>() 
50     { 
51         {
52             add( "AdministrationService.executeRepositoryScanner"); 
53         }
54     };    
55     
56     public static final List<String> SERVICE_METHODS_FOR_OPERATION_ACCESS_REPORT = new ArrayList<String>();
57     
58     public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_ACCESS = new ArrayList<String>();
59     
60     public static final List<String> SERVICE_METHODS_FOR_OPERATION_ADD_REPOSITORY = new ArrayList<String>();
61     
62     public static final List<String> SERVICE_METHODS_FOR_OPERATION_DELETE_REPOSITORY = new ArrayList<String>();
63     
64     public static final List<String> SERVICE_METHODS_FOR_OPERATION_EDIT_REPOSITORY = new ArrayList<String>();
65     
66     public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_UPLOAD = new ArrayList<String>();
67     
68 }