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;
38 public List<RemoteRepository> getRemoteRepositories()
39 throws RepositoryAdminException
41 return null; //To change body of implemented methods use File | Settings | File Templates.
44 public RemoteRepository getRemoteRepository( String repositoryId )
45 throws RepositoryAdminException
47 return null; //To change body of implemented methods use File | Settings | File Templates.
50 public Boolean deleteRemoteRepository( String repositoryId, AuditInformation auditInformation )
51 throws RepositoryAdminException
53 return null; //To change body of implemented methods use File | Settings | File Templates.
56 public Boolean addRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
57 throws RepositoryAdminException
59 return null; //To change body of implemented methods use File | Settings | File Templates.
62 public Boolean updateRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
63 throws RepositoryAdminException
65 return null; //To change body of implemented methods use File | Settings | File Templates.
68 public Map<String, RemoteRepository> getRemoteRepositoriesAsMap()
69 throws RepositoryAdminException
71 return null; //To change body of implemented methods use File | Settings | File Templates.
74 public ArchivaConfiguration getArchivaConfiguration()
76 return archivaConfiguration;
79 public void setArchivaConfiguration( ArchivaConfiguration archivaConfiguration )
81 this.archivaConfiguration = archivaConfiguration;