1 package org.apache.archiva.scheduler.repository.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
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
20 import org.apache.archiva.admin.model.AuditInformation;
21 import org.apache.archiva.admin.model.RepositoryAdminException;
22 import org.apache.archiva.admin.model.beans.RemoteRepository;
23 import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
24 import org.apache.archiva.configuration.ArchivaConfiguration;
26 import java.util.List;
30 * @author Olivier Lamy
32 public class MockRemoteRepositoryAdmin
33 implements RemoteRepositoryAdmin
35 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.
45 public RemoteRepository getRemoteRepository( String repositoryId )
46 throws RepositoryAdminException
48 return null; //To change body of implemented methods use File | Settings | File Templates.
52 public Boolean deleteRemoteRepository( String repositoryId, AuditInformation auditInformation )
53 throws RepositoryAdminException
55 return null; //To change body of implemented methods use File | Settings | File Templates.
59 public Boolean addRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
60 throws RepositoryAdminException
62 return null; //To change body of implemented methods use File | Settings | File Templates.
66 public Boolean updateRemoteRepository( RemoteRepository remoteRepository, AuditInformation auditInformation )
67 throws RepositoryAdminException
69 return null; //To change body of implemented methods use File | Settings | File Templates.
73 public Map<String, RemoteRepository> getRemoteRepositoriesAsMap()
74 throws RepositoryAdminException
76 return null; //To change body of implemented methods use File | Settings | File Templates.
79 public ArchivaConfiguration getArchivaConfiguration()
81 return archivaConfiguration;
84 public void setArchivaConfiguration( ArchivaConfiguration archivaConfiguration )
86 this.archivaConfiguration = archivaConfiguration;