1package org.apache.archiva.admin.model.remote;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */202122import org.apache.archiva.admin.model.AuditInformation;
23import org.apache.archiva.admin.model.RepositoryAdminException;
24import org.apache.archiva.admin.model.beans.RemoteRepository;
25import org.apache.maven.index.context.IndexingContext;
2627import java.util.List;
28import java.util.Map;
2930/**31 * @author Olivier Lamy32 * @since 1.4-M133 */34publicinterfaceRemoteRepositoryAdmin35 {
36 List<RemoteRepository> getRemoteRepositories()
37throws RepositoryAdminException;
3839RemoteRepository getRemoteRepository( String repositoryId )
40throws RepositoryAdminException;
4142 Boolean deleteRemoteRepository( String repositoryId, AuditInformation auditInformation )
43throws RepositoryAdminException;
4445 Boolean addRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
46throws RepositoryAdminException;
4748 Boolean updateRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
49throws RepositoryAdminException;
5051 Map<String, RemoteRepository> getRemoteRepositoriesAsMap()
52throws RepositoryAdminException;
5354/**55 * @param repository56 * @return57 * @throws RepositoryAdminException58 * @since 1.4-M259 */60 IndexingContext createIndexContext( RemoteRepository repository )
61throws RepositoryAdminException;
62 }