1 package org.apache.archiva.mock;
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
21 import org.apache.archiva.admin.model.AuditInformation;
22 import org.apache.archiva.admin.model.RepositoryAdminException;
23 import org.apache.archiva.admin.model.beans.RemoteRepository;
24 import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
25 import org.apache.archiva.configuration.ArchivaConfiguration;
27 import java.util.List;
31 * @author Olivier Lamy
33 public class MockRemoteRepositoryAdmin
34 implements RemoteRepositoryAdmin
36 private ArchivaConfiguration archivaConfiguration;
39 public List<RemoteRepository> getRemoteRepositories()
40 throws RepositoryAdminException
42 return null; //To change body of implemented methods use File | Settings | File Templates.
46 public RemoteRepository getRemoteRepository( String repositoryId )
47 throws RepositoryAdminException
49 return null; //To change body of implemented methods use File | Settings | File Templates.
53 public Boolean deleteRemoteRepository( String repositoryId, AuditInformation auditInformation )
54 throws RepositoryAdminException
56 return null; //To change body of implemented methods use File | Settings | File Templates.
60 public Boolean addRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
61 throws RepositoryAdminException
63 return null; //To change body of implemented methods use File | Settings | File Templates.
67 public Boolean updateRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
68 throws RepositoryAdminException
70 return null; //To change body of implemented methods use File | Settings | File Templates.
74 public Map<String, RemoteRepository> getRemoteRepositoriesAsMap()
75 throws RepositoryAdminException
77 return null; //To change body of implemented methods use File | Settings | File Templates.
80 public ArchivaConfiguration getArchivaConfiguration()
82 return archivaConfiguration;
85 public void setArchivaConfiguration( ArchivaConfiguration archivaConfiguration )
87 this.archivaConfiguration = archivaConfiguration;