]> source.dussan.org Git - archiva.git/blob
b004616009255a1448b3081b56a92d6099188782
[archiva.git] /
1 package org.apache.archiva.web.action.admin.repositories;
2
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;
6
7 import javax.inject.Inject;
8 import java.util.Collections;
9 import java.util.List;
10
11 /*
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
19  *
20  *  http://www.apache.org/licenses/LICENSE-2.0
21  *
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
27  * under the License.
28  */
29
30 /**
31  * AbstractRemoteRepositoriesAction
32  *
33  *
34  */
35 public class AbstractRemoteRepositoriesAction
36     extends AbstractRepositoriesAdminAction
37 {
38     @Inject
39     private RemoteRepositoryAdmin remoteRepositoryAdmin;
40
41     @Inject
42     private NetworkProxyAdmin networkProxyAdmin;
43
44     private List<NetworkProxy> networkProxies;
45
46     public RemoteRepositoryAdmin getRemoteRepositoryAdmin()
47     {
48         return remoteRepositoryAdmin;
49     }
50
51     public void setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin )
52     {
53         this.remoteRepositoryAdmin = remoteRepositoryAdmin;
54     }
55
56     public NetworkProxyAdmin getNetworkProxyAdmin()
57     {
58         return networkProxyAdmin;
59     }
60
61     public void setNetworkProxyAdmin( NetworkProxyAdmin networkProxyAdmin )
62     {
63         this.networkProxyAdmin = networkProxyAdmin;
64     }
65
66     public List<NetworkProxy> getNetworkProxies()
67     {
68         return networkProxies == null ? Collections.<NetworkProxy>emptyList() : networkProxies;
69     }
70
71     public void setNetworkProxies( List<NetworkProxy> networkProxies )
72     {
73         this.networkProxies = networkProxies;
74     }
75 }