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 - Database</title>
34 <h1>Administration - Database</h1>
36 <div id="contentArea">
41 <c:url var="iconDeleteUrl" value="/images/icons/delete.gif" />
42 <c:url var="iconCreateUrl" value="/images/icons/create.png" />
46 <h2>Database - Unprocessed Artifacts Scanning</h2>
48 <ww:form method="post" action="database!updateSchedule"
49 namespace="/admin" validate="false" theme="simple">
51 <ww:textfield name="cron" label="Cron" size="40" theme="xhtml" />
54 <ww:submit value="Update Cron" />
60 <ww:form action="updateDatabase" theme="simple">
61 <ww:submit value="Update Database Now"/>
64 <h2>Database - Unprocessed Artifacts Scanning</h2>
67 <c:when test="${empty (unprocessedConsumers)}">
68 <%-- No Consumers. Eeek! --%>
69 <strong>There are no consumers for unprocessed artifacts.</strong>
72 <%-- Display the consumers. --%>
74 <ww:form method="post" action="database!updateUnprocessedConsumers"
75 namespace="/admin" validate="false" theme="simple">
76 <table class="consumers">
83 <c:forEach items="${unprocessedConsumers}" var="consumer" varStatus="i">
85 <c:when test='${(i.index)%2 eq 0}'>
86 <c:set var="bgcolor" value="even" scope="page" />
89 <c:set var="bgcolor" value="odd" scope="page" />
94 <td class="${bgcolor}">
95 <input type="checkbox" name="enabledUnprocessedConsumers" theme="simple" value="${consumer.id}" <c:if test="${consumer.enabled}">checked</c:if> />
97 <td class="${bgcolor}">
98 <c:if test="${consumer.enabled}">
99 <strong>enabled</strong>
102 <td class="${bgcolor}">
103 <code>${consumer.id}</code>
105 <td class="${bgcolor}">${consumer.description}</td>
110 <ww:submit value="Update Consumers" />
119 <h2>Database - Artifact Cleanup Scanning</h2>
122 <c:when test="${empty (cleanupConsumers)}">
123 <%-- No Consumers. Eeek! --%>
124 <strong>There are no consumers for artifact cleanup.</strong>
127 <%-- Display the consumers. --%>
129 <ww:form method="post" action="database!updateCleanupConsumers"
130 namespace="/admin" validate="false" theme="simple">
131 <table class="consumers">
138 <c:forEach items="${cleanupConsumers}" var="consumer" varStatus="i">
140 <c:when test='${(i.index)%2 eq 0}'>
141 <c:set var="bgcolor" value="even" scope="page" />
144 <c:set var="bgcolor" value="odd" scope="page" />
149 <td class="${bgcolor}">
150 <input type="checkbox" name="enabledCleanupConsumers" theme="simple" value="${consumer.id}" <c:if test="${consumer.enabled}">checked</c:if> />
152 <td class="${bgcolor}">
153 <c:if test="${consumer.enabled}">
154 <strong>enabled</strong>
157 <td class="${bgcolor}">
158 <code>${consumer.id}</code>
160 <td class="${bgcolor}">${consumer.description}</td>
165 <ww:submit value="Update Consumers" />