2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ 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 <%@ taglib prefix="ww" uri="/webwork" %>
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
22 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
23 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
24 <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
28 <title>Administration - Proxy Connectors</title>
34 <h1>Administration - Proxy Connectors</h1>
36 <c:url var="iconDeleteUrl" value="/images/icons/delete.gif"/>
37 <c:url var="iconEditUrl" value="/images/icons/edit.png"/>
38 <c:url var="iconCreateUrl" value="/images/icons/create.png"/>
39 <c:url var="iconUpUrl" value="/images/icons/up.gif"/>
40 <c:url var="iconDownUrl" value="/images/icons/down.gif"/>
41 <c:url var="iconEnable" value="/images/icons/on-symbol.png"/>
42 <c:url var="iconDisable" value="/images/icons/off-symbol.png"/>
44 <div id="contentArea">
49 <div style="float:right">
51 <c:when test="${remoteRepoExists}">
52 <redback:ifAnyAuthorized permissions="archiva-manage-configuration">
53 <ww:url id="addProxyConnectorUrl" action="addProxyConnector"/>
54 <ww:a href="%{addProxyConnectorUrl}" cssClass="create">
55 <img src="<c:url value="/images/icons/create.png" />"/>
58 </redback:ifAnyAuthorized>
61 <img src="<c:url value="/images/icons/create.png" />"/>
62 Add (Disabled. No remote repositories)
67 <h2>Repository Proxy Connectors</h2>
70 <c:when test="${empty (proxyConnectorMap)}">
71 <strong>No Repository Proxy Connectors Defined.</strong>
77 <c:forEach items="${proxyConnectorMap}" var="repository" varStatus="i">
79 <div class="proxyConfig">
80 <div class="managedRepo">
81 <img src="<c:url value="/images/archiva-splat-32.gif"/>"/>
82 <p class="id">${repository.key}</p>
83 <p class="name">${repoMap[repository.key].name}</p>
86 <c:set var="numberOfRepos" value="${fn:length(repository.value)}" />
88 <c:forEach items="${repository.value}" var="connector" varStatus="pc">
91 <c:when test='${(pc.index)%2 eq 0}'>
92 <c:set var="rowColor" value="dark" scope="page"/>
95 <c:set var="rowColor" value="lite" scope="page"/>
99 <div class="connector ${rowColor}">
100 <div class="controls">
101 <redback:ifAnyAuthorized permissions="archiva-manage-configuration">
102 <ww:url id="sortDownProxyConnectorUrl" action="sortDownProxyConnector">
103 <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
104 <ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
106 <ww:url id="sortUpProxyConnectorUrl" action="sortUpProxyConnector">
107 <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
108 <ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
110 <ww:url id="editProxyConnectorUrl" action="editProxyConnector">
111 <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
112 <ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
114 <ww:url id="deleteProxyConnectorUrl" action="deleteProxyConnector" method="confirmDelete">
115 <ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
116 <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
118 <ww:url id="enableProxyConnectorUrl" action="enableProxyConnector" method="confirmEnable">
119 <ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
120 <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
122 <ww:url id="disableProxyConnectorUrl" action="disableProxyConnector" method="confirmDisable">
123 <ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
124 <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
126 <c:if test="${connector.disabled}">
127 <ww:a href="%{enableProxyConnectorUrl}" title="Enable Proxy Connector">
128 <img src="${iconDisable}"/>
131 <c:if test="${connector.disabled == false}">
132 <ww:a href="%{disableProxyConnectorUrl}" title="Disable Proxy Connector">
133 <img src="${iconEnable}"/>
136 <c:if test="${pc.count > 1}">
137 <ww:a href="%{sortUpProxyConnectorUrl}" title="Move Proxy Connector Up">
138 <img src="${iconUpUrl}"/>
141 <c:if test="${pc.count < numberOfRepos}">
142 <ww:a href="%{sortDownProxyConnectorUrl}" cssClass="down" title="Move Proxy Connector Down">
143 <img src="${iconDownUrl}"/>
146 <ww:a href="%{editProxyConnectorUrl}" cssClass="edit" title="Edit Proxy Connector">
147 <img src="${iconEditUrl}"/>
149 <ww:a href="%{deleteProxyConnectorUrl}" cssClass="delete" title="Delete Proxy Connector">
150 <img src="${iconDeleteUrl}"/>
152 </redback:ifAnyAuthorized>
155 <h4>Proxy Connector</h4>
157 <div class="remoteRepo">
158 <img src="<c:url value="/images/archiva-world.png"/>"/>
159 <p class="id">${connector.targetRepoId}</p>
160 <p class="name">${repoMap[connector.targetRepoId].name}</p>
161 <p class="url"><a href="${repoMap[connector.targetRepoId].url}">${repoMap[connector.targetRepoId].url}</a></p>
164 <a class="expand" href="#" onclick="Effect.toggle('proxySettings_${connector.sourceRepoId}_${connector.targetRepoId}','slide'); return false;">Expand</a>
165 <table class="settings" style="display: none;" id="proxySettings_${connector.sourceRepoId}_${connector.targetRepoId}">
167 <th nowrap="nowrap">Network Proxy:</th>
170 <c:when test="${empty (connector.proxyId)}">
171 <span class="directConnection">(Direct Connection)</span>
174 <ww:url id="editProxyIdUrl" action="editNetworkProxy">
175 <ww:param name="proxyid" value="%{'${connector.proxyId}'}"/>
177 <ww:a href="%{editProxyIdUrl}" cssClass="edit" title="Edit Network Proxy">
179 <img src="${iconEditUrl}"/>
188 <table class="policies">
189 <c:forEach items="${connector.policies}" var="policies">
191 <th>${policies.key}</th>
192 <td>${policies.value}</td>
199 <c:if test="${not (empty (connector.whiteListPatterns))}">
201 <th nowrap="nowrap">White List:</th>
203 <c:forEach items="${connector.whiteListPatterns}" var="pattern">
204 <p><code>"${pattern}"</code></p>
210 <c:if test="${not (empty (connector.blackListPatterns))}">
212 <th nowrap="nowrap">Black List:</th>
214 <c:forEach items="${connector.blackListPatterns}" var="pattern">
215 <p><code>"${pattern}"</code></p>
221 <c:if test="${not (empty (connector.properties))}">
225 <table class="props">
226 <c:forEach items="${connector.properties}" var="prop">
229 <td>${prop.value}</td>
237 </div> <%-- connector --%>
240 </div> <%-- proxyConfig --%>
242 </div> <%-- admin --%>