001package org.apache.archiva.mock; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import org.apache.archiva.admin.model.AuditInformation; 023import org.apache.archiva.admin.model.RepositoryAdminException; 024import org.apache.archiva.admin.model.beans.ProxyConnector; 025import org.apache.archiva.admin.model.proxyconnector.ProxyConnectorAdmin; 026 027import java.util.Collections; 028import java.util.List; 029import java.util.Map; 030 031/** 032 * @author Olivier Lamy 033 */ 034public class MockProxyConnectorAdmin 035 implements ProxyConnectorAdmin 036{ 037 @Override 038 public List<ProxyConnector> getProxyConnectors() 039 throws RepositoryAdminException 040 { 041 return Collections.emptyList(); 042 } 043 044 @Override 045 public ProxyConnector getProxyConnector( String sourceRepoId, String targetRepoId ) 046 throws RepositoryAdminException 047 { 048 return null; 049 } 050 051 @Override 052 public Boolean addProxyConnector( ProxyConnector proxyConnector, AuditInformation auditInformation ) 053 throws RepositoryAdminException 054 { 055 return Boolean.FALSE; 056 } 057 058 @Override 059 public Boolean deleteProxyConnector( ProxyConnector proxyConnector, AuditInformation auditInformation ) 060 throws RepositoryAdminException 061 { 062 return Boolean.FALSE; 063 } 064 065 @Override 066 public Boolean updateProxyConnector( ProxyConnector proxyConnector, AuditInformation auditInformation ) 067 throws RepositoryAdminException 068 { 069 return Boolean.FALSE; 070 } 071 072 @Override 073 public Map<String, List<ProxyConnector>> getProxyConnectorAsMap() 074 throws RepositoryAdminException 075 { 076 return Collections.emptyMap(); 077 } 078}