1
|
<%@ page language="java" %>
|
2
|
<%@ page import="edu.ucsb.nceas.metacat.DBVersion,edu.ucsb.nceas.metacat.MetaCatVersion" %>
|
3
|
<%@ page import="edu.ucsb.nceas.metacat.service.PropertyService" %>
|
4
|
|
5
|
<%
|
6
|
/**
|
7
|
* '$RCSfile$'
|
8
|
* Copyright: 2008 Regents of the University of California and the
|
9
|
* National Center for Ecological Analysis and Synthesis
|
10
|
* For Details: http://www.nceas.ucsb.edu/
|
11
|
*
|
12
|
* '$Author: daigle $'
|
13
|
* '$Date: 2009-07-30 10:19:58 -0700 (Thu, 30 Jul 2009) $'
|
14
|
* '$Revision: 5004 $'
|
15
|
*
|
16
|
* This program is free software; you can redistribute it and/or modify
|
17
|
* it under the terms of the GNU General Public License as published by
|
18
|
* the Free Software Foundation; either version 2 of the License, or
|
19
|
* (at your option) any later version.
|
20
|
*
|
21
|
* This program is distributed in the hope that it will be useful,
|
22
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
23
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
24
|
* GNU General Public License for more details.
|
25
|
*
|
26
|
* You should have received a copy of the GNU General Public License
|
27
|
* along with this program; if not, write to the Free Software
|
28
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
29
|
*/
|
30
|
%>
|
31
|
|
32
|
<%
|
33
|
MetaCatVersion metacatVersion = (MetaCatVersion)request.getAttribute("metaCatVersion");
|
34
|
DBVersion databaseVersion = (DBVersion)request.getAttribute("databaseVersion");
|
35
|
Boolean propsConfigured = (Boolean)request.getAttribute("propsConfigured");
|
36
|
Boolean orgsConfigured = (Boolean)request.getAttribute("orgsConfigured");
|
37
|
Boolean authConfigured = (Boolean)request.getAttribute("authConfigured");
|
38
|
Boolean skinsConfigured = (Boolean)request.getAttribute("skinsConfigured");
|
39
|
Boolean dbConfigured = (Boolean)request.getAttribute("dbConfigured");
|
40
|
String geoserverConfigured = (String)request.getAttribute("geoserverConfigured");
|
41
|
Boolean metacatConfigured = (Boolean)request.getAttribute("metacatConfigured");
|
42
|
Boolean metacatServletInitialized = (Boolean)request.getAttribute("metcatServletInitialized");
|
43
|
String contextURL = (String)request.getAttribute("contextURL");
|
44
|
%>
|
45
|
|
46
|
<html>
|
47
|
<head>
|
48
|
<title>Metacat Configuration</title>
|
49
|
<link rel="stylesheet" type="text/css"
|
50
|
href="<%= request.getContextPath() %>/admin/admin.css"></link>
|
51
|
</head>
|
52
|
|
53
|
<body>
|
54
|
<%@ include file="./header-section.jsp"%>
|
55
|
<img src="<%= request.getContextPath() %>/metacat-logo.png" width="100px" align="right"/>
|
56
|
<h2>Metacat Configuration</h2>
|
57
|
|
58
|
All of the following sections must be in a configured state for Metacat to run properly:
|
59
|
<br class="main-header">
|
60
|
|
61
|
<%@ include file="page-message-section.jsp"%>
|
62
|
<hr class="config-line">
|
63
|
|
64
|
<table class="configuration-table">
|
65
|
|
66
|
<%
|
67
|
if (propsConfigured != null && propsConfigured) {
|
68
|
%>
|
69
|
<tr>
|
70
|
<td class="configured-tag">[configured] </td>
|
71
|
<td class="property-title"> Metacat Global Properties </td>
|
72
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Reconfigure Now</a> </td>
|
73
|
</tr>
|
74
|
<%
|
75
|
} else {
|
76
|
%>
|
77
|
<tr>
|
78
|
<td class="unconfigured-tag">[unconfigured] </td>
|
79
|
<td class="property-title"> Metacat Global Properties </td>
|
80
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Configure Now</a> </td>
|
81
|
</tr>
|
82
|
<%
|
83
|
}
|
84
|
|
85
|
if (authConfigured != null && authConfigured) {
|
86
|
%>
|
87
|
<tr>
|
88
|
<td class="configured-tag">[configured] </td>
|
89
|
<td class="property-title"> Authentication Configuration </td>
|
90
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=auth">Reconfigure Now</a> </td>
|
91
|
</tr>
|
92
|
<%
|
93
|
} else {
|
94
|
%>
|
95
|
<tr>
|
96
|
<td class=unconfigured-tag>[unconfigured] </td>
|
97
|
<td class=property-title> Authentication Configuration </td>
|
98
|
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=auth">Configure Now</a> </td>
|
99
|
</tr>
|
100
|
<%
|
101
|
}
|
102
|
|
103
|
if (skinsConfigured != null && skinsConfigured) {
|
104
|
%>
|
105
|
<tr>
|
106
|
<td class="configured-tag">[configured] </td>
|
107
|
<td class="property-title"> Skins Specific Properties </td>
|
108
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Reconfigure Now</a> </td>
|
109
|
</tr>
|
110
|
<%
|
111
|
} else {
|
112
|
%>
|
113
|
<tr>
|
114
|
<td class="unconfigured-tag">[unconfigured] </td>
|
115
|
<td class="property-title"> Skins Specific Properties </td>
|
116
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Configure Now</a> </td>
|
117
|
</tr>
|
118
|
<%
|
119
|
}
|
120
|
|
121
|
if ((dbConfigured != null && dbConfigured) ||
|
122
|
(metacatVersion != null && databaseVersion != null &&
|
123
|
metacatVersion.compareTo(databaseVersion) == 0)) {
|
124
|
%>
|
125
|
<tr>
|
126
|
<td class="configured-tag">[configured] </td>
|
127
|
<td class="property-title"> Database Installation/Upgrade </td>
|
128
|
<td class="configure-link"> Version: <%= databaseVersion.getVersionString() %> </td>
|
129
|
</tr>
|
130
|
<%
|
131
|
} else {
|
132
|
%>
|
133
|
<tr>
|
134
|
<td class="unconfigured-tag">[unconfigured] </td>
|
135
|
<td class="property-title"> Database Installation/Upgrade </td>
|
136
|
<%
|
137
|
if (propsConfigured != null && propsConfigured) {
|
138
|
%>
|
139
|
|
140
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=database">Configure Now</a> </td>
|
141
|
|
142
|
<%
|
143
|
} else {
|
144
|
%>
|
145
|
<td class="configure-link"> Configure Global Properties First </td>
|
146
|
<%
|
147
|
}
|
148
|
%>
|
149
|
</tr>
|
150
|
<%
|
151
|
}
|
152
|
|
153
|
if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.CONFIGURED)) {
|
154
|
%>
|
155
|
<tr>
|
156
|
<td class="configured-tag">[configured] </td>
|
157
|
<td class="property-title"> Geoserver Configuration </td>
|
158
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Reconfigure Now</a> </td>
|
159
|
</tr>
|
160
|
<%
|
161
|
} else if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.BYPASSED)){
|
162
|
%>
|
163
|
<tr>
|
164
|
<td class="configured-tag">[bypassed] </td>
|
165
|
<td class="property-title"> Geoserver Configuration </td>
|
166
|
<%
|
167
|
if (propsConfigured != null && propsConfigured) {
|
168
|
%>
|
169
|
|
170
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Reconfigure Now</a> </td>
|
171
|
<%
|
172
|
} else {
|
173
|
%>
|
174
|
<td class="configure-link"> Configure Global Properties First </td>
|
175
|
<%
|
176
|
}
|
177
|
%>
|
178
|
</tr>
|
179
|
<%
|
180
|
} else {
|
181
|
%>
|
182
|
<tr>
|
183
|
<td class="unconfigured-tag">[unconfigured] </td>
|
184
|
<td class="property-title"> Geoserver Configuration </td>
|
185
|
<%
|
186
|
if (propsConfigured != null && propsConfigured) {
|
187
|
%>
|
188
|
|
189
|
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Configure Now</a> </td>
|
190
|
|
191
|
<%
|
192
|
} else {
|
193
|
%>
|
194
|
<td class="configure-link"> Configure Global Properties First </td>
|
195
|
<%
|
196
|
}
|
197
|
%>
|
198
|
</tr>
|
199
|
<%
|
200
|
}
|
201
|
%>
|
202
|
|
203
|
</table>
|
204
|
|
205
|
<%
|
206
|
if (metacatConfigured != null && metacatConfigured) {
|
207
|
%>
|
208
|
|
209
|
<hr class="config-line">
|
210
|
<br clear="right"/>
|
211
|
<%
|
212
|
if (metacatServletInitialized != null && metacatServletInitialized) {
|
213
|
%>
|
214
|
<h3>Restarting Metacat</h3>
|
215
|
<p> Since this is a reconfiguration, you will need to restart Metacat after any changes.</p>
|
216
|
|
217
|
<p>The simplest way to restart metacat is to restart the entire servlet engine.
|
218
|
For Tomcat, this would mean calling "sudo /etc/init.d/tomcat5.5 restart" or
|
219
|
an equivalent command appropriate to your operating system. After restarting,
|
220
|
you can access your new Metacat server at the URL:
|
221
|
<a href="<%= contextURL %>"><%= contextURL %></a>
|
222
|
</p>
|
223
|
<%
|
224
|
} else {
|
225
|
%>
|
226
|
Configuration of Metacat is complete. You can <a href="<%= request.getContextPath() %>/metacat?action=gohome">go to metacat</a>
|
227
|
now. Note that this may take some time while the system initializes with the new configuration values.
|
228
|
<%
|
229
|
}
|
230
|
}
|
231
|
%>
|
232
|
|
233
|
<%@ include file="./footer-section.jsp"%>
|
234
|
|
235
|
</body>
|
236
|
</html>
|