1 package org.apache.archiva.web.action.admin.repositories;
3 import org.apache.archiva.admin.model.beans.NetworkProxy;
4 import org.apache.archiva.admin.model.networkproxy.NetworkProxyAdmin;
5 import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
7 import javax.inject.Inject;
8 import java.util.Collections;
12 * Licensed to the Apache Software Foundation (ASF) under one
13 * or more contributor license agreements. See the NOTICE file
14 * distributed with this work for additional information
15 * regarding copyright ownership. The ASF licenses this file
16 * to you under the Apache License, Version 2.0 (the
17 * "License"); you may not use this file except in compliance
18 * with the License. You may obtain a copy of the License at
20 * http://www.apache.org/licenses/LICENSE-2.0
22 * Unless required by applicable law or agreed to in writing,
23 * software distributed under the License is distributed on an
24 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
25 * KIND, either express or implied. See the License for the
26 * specific language governing permissions and limitations
31 * AbstractRemoteRepositoriesAction
35 public class AbstractRemoteRepositoriesAction
36 extends AbstractRepositoriesAdminAction
39 private RemoteRepositoryAdmin remoteRepositoryAdmin;
42 private NetworkProxyAdmin networkProxyAdmin;
44 private List<NetworkProxy> networkProxies;
46 public RemoteRepositoryAdmin getRemoteRepositoryAdmin()
48 return remoteRepositoryAdmin;
51 public void setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin )
53 this.remoteRepositoryAdmin = remoteRepositoryAdmin;
56 public NetworkProxyAdmin getNetworkProxyAdmin()
58 return networkProxyAdmin;
61 public void setNetworkProxyAdmin( NetworkProxyAdmin networkProxyAdmin )
63 this.networkProxyAdmin = networkProxyAdmin;
66 public List<NetworkProxy> getNetworkProxies()
68 return networkProxies == null ? Collections.<NetworkProxy>emptyList() : networkProxies;
71 public void setNetworkProxies( List<NetworkProxy> networkProxies )
73 this.networkProxies = networkProxies;