1 package org.apache.archiva.web.xmlrpc.security;
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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
23 import java.util.ArrayList;
24 import java.util.List;
27 * ServiceMethodsPermissionsMapping
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.
32 * @version $Id: ServiceMethodsPermissionsMapping.java
34 public class ServiceMethodsPermissionsMapping
36 public static final List<String> SERVICE_METHODS_FOR_OPERATION_MANAGE_CONFIGURATION = new ArrayList<String>()
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" );
49 public static final List<String> SERVICE_METHODS_FOR_OPERATION_RUN_INDEXER = new ArrayList<String>()
52 add( "AdministrationService.executeRepositoryScanner");
56 public static final List<String> SERVICE_METHODS_FOR_OPERATION_ACCESS_REPORT = new ArrayList<String>();
58 public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_ACCESS = new ArrayList<String>();
60 public static final List<String> SERVICE_METHODS_FOR_OPERATION_ADD_REPOSITORY = new ArrayList<String>();
62 public static final List<String> SERVICE_METHODS_FOR_OPERATION_DELETE_REPOSITORY = new ArrayList<String>();
64 public static final List<String> SERVICE_METHODS_FOR_OPERATION_EDIT_REPOSITORY = new ArrayList<String>();
66 public static final List<String> SERVICE_METHODS_FOR_OPERATION_REPOSITORY_UPLOAD = new ArrayList<String>();