This project has retired. For details please refer to its Attic page.
Source code
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.NetworkProxy;
025import org.apache.archiva.admin.model.networkproxy.NetworkProxyAdmin;
026
027import java.util.Collections;
028import java.util.List;
029
030/**
031 * @author Olivier Lamy
032 */
033public class MockNetworkProxyAdmin
034    implements NetworkProxyAdmin
035{
036    @Override
037    public List<NetworkProxy> getNetworkProxies()
038        throws RepositoryAdminException
039    {
040        return Collections.emptyList();
041    }
042
043    @Override
044    public NetworkProxy getNetworkProxy( String networkProxyId )
045        throws RepositoryAdminException
046    {
047        return null;
048    }
049
050    @Override
051    public void addNetworkProxy( NetworkProxy networkProxy, AuditInformation auditInformation )
052        throws RepositoryAdminException
053    {
054        // no op
055    }
056
057    @Override
058    public void updateNetworkProxy( NetworkProxy networkProxy, AuditInformation auditInformation )
059        throws RepositoryAdminException
060    {
061        // no op
062    }
063
064    @Override
065    public void deleteNetworkProxy( String networkProxyId, AuditInformation auditInformation )
066        throws RepositoryAdminException
067    {
068        // no op
069    }
070}