Revision 8222
Added by Lauren Walker over 11 years ago
metacat-configuration.jsp | ||
---|---|---|
54 | 54 |
|
55 | 55 |
<body> |
56 | 56 |
<%@ include file="./header-section.jsp"%> |
57 |
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png" width="100px" align="right"/> |
|
58 |
<h2>Metacat Configuration</h2> |
|
59 |
|
|
60 |
All of the following sections must be in a configured state for Metacat to run properly: |
|
61 |
<br class="main-header"> |
|
62 |
|
|
63 |
<%@ include file="page-message-section.jsp"%> |
|
64 |
|
|
65 |
<table class="configuration-table"> |
|
66 |
|
|
67 |
<% |
|
68 |
if (propsConfigured != null && propsConfigured) { |
|
69 |
%> |
|
70 |
<tr> |
|
71 |
<td class="configured-tag">[configured] </td> |
|
72 |
<td class="property-title"> Metacat Global Properties </td> |
|
73 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Reconfigure Now</a> </td> |
|
74 |
</tr> |
|
75 |
<% |
|
76 |
} else { |
|
77 |
%> |
|
78 |
<tr> |
|
79 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
80 |
<td class="property-title"> Metacat Global Properties </td> |
|
81 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Configure Now</a> </td> |
|
82 |
</tr> |
|
83 |
<% |
|
84 |
} |
|
85 |
|
|
86 |
if (authConfigured != null && authConfigured) { |
|
87 |
%> |
|
88 |
<tr> |
|
89 |
<td class="configured-tag">[configured] </td> |
|
90 |
<td class="property-title"> Authentication Configuration </td> |
|
91 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=auth">Reconfigure Now</a> </td> |
|
92 |
</tr> |
|
93 |
<% |
|
94 |
} else { |
|
95 |
%> |
|
96 |
<tr> |
|
97 |
<td class=unconfigured-tag>[unconfigured] </td> |
|
98 |
<td class=property-title> Authentication Configuration </td> |
|
99 |
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=auth">Configure Now</a> </td> |
|
100 |
</tr> |
|
101 |
<% |
|
102 |
} |
|
57 |
<div class="document"> |
|
58 |
<h2>Metacat Configuration</h2> |
|
103 | 59 |
|
104 |
if (skinsConfigured != null && skinsConfigured) { |
|
105 |
%> |
|
106 |
<tr> |
|
107 |
<td class="configured-tag">[configured] </td> |
|
108 |
<td class="property-title"> Skins Specific Properties </td> |
|
109 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Reconfigure Now</a> </td> |
|
110 |
</tr> |
|
111 |
<% |
|
112 |
} else { |
|
113 |
%> |
|
114 |
<tr> |
|
115 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
116 |
<td class="property-title"> Skins Specific Properties </td> |
|
117 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Configure Now</a> </td> |
|
118 |
</tr> |
|
119 |
<% |
|
120 |
} |
|
121 |
|
|
122 |
if ((dbConfigured != null && dbConfigured) || |
|
123 |
(metacatVersion != null && databaseVersion != null && |
|
124 |
metacatVersion.compareTo(databaseVersion) == 0)) { |
|
125 |
%> |
|
126 |
<tr> |
|
127 |
<td class="configured-tag">[configured] </td> |
|
128 |
<td class="property-title"> Database Installation/Upgrade </td> |
|
129 |
<td class="configure-link"> Version: <%=databaseVersion.getVersionString()%> </td> |
|
130 |
</tr> |
|
131 |
<% |
|
132 |
} else { |
|
133 |
%> |
|
134 |
<tr> |
|
135 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
136 |
<td class="property-title"> Database Installation/Upgrade </td> |
|
137 |
<% |
|
138 |
if (propsConfigured != null && propsConfigured) { |
|
139 |
%> |
|
140 |
|
|
141 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=database">Configure Now</a> </td> |
|
142 |
|
|
143 |
<% |
|
144 |
} else { |
|
145 |
%> |
|
146 |
<td class="configure-link"> Configure Global Properties First </td> |
|
147 |
<% |
|
148 |
} |
|
149 |
%> |
|
150 |
</tr> |
|
151 |
<% |
|
152 |
} |
|
153 |
|
|
154 |
if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.CONFIGURED)) { |
|
155 |
%> |
|
156 |
<tr> |
|
157 |
<td class="configured-tag">[configured] </td> |
|
158 |
<td class="property-title"> Geoserver Configuration </td> |
|
159 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Reconfigure Now</a> </td> |
|
160 |
</tr> |
|
161 |
<% |
|
162 |
} else if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.BYPASSED)){ |
|
163 |
%> |
|
164 |
<tr> |
|
165 |
<td class="configured-tag">[bypassed] </td> |
|
166 |
<td class="property-title"> Geoserver Configuration </td> |
|
167 |
<% |
|
60 |
<p>All of the following sections must be in a configured state for Metacat to run properly:</p> |
|
61 |
<br class="main-header"> |
|
62 |
|
|
63 |
<%@ include file="page-message-section.jsp"%> |
|
64 |
|
|
65 |
<table class="configuration-table"> |
|
66 |
|
|
67 |
<% |
|
168 | 68 |
if (propsConfigured != null && propsConfigured) { |
169 |
%> |
|
170 |
|
|
171 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Reconfigure Now</a> </td> |
|
172 |
<% |
|
69 |
%> |
|
70 |
<tr> |
|
71 |
<td class="configured-tag">[configured] </td> |
|
72 |
<td class="property-title"> Metacat Global Properties </td> |
|
73 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Reconfigure Now</a> </td> |
|
74 |
</tr> |
|
75 |
<% |
|
173 | 76 |
} else { |
174 |
%> |
|
175 |
<td class="configure-link"> Configure Global Properties First </td> |
|
176 |
<% |
|
77 |
%> |
|
78 |
<tr> |
|
79 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
80 |
<td class="property-title"> Metacat Global Properties </td> |
|
81 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=properties">Configure Now</a> </td> |
|
82 |
</tr> |
|
83 |
<% |
|
177 | 84 |
} |
178 |
%> |
|
179 |
</tr> |
|
180 |
<% |
|
181 |
} else { |
|
182 |
%> |
|
183 |
<tr> |
|
184 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
185 |
<td class="property-title"> Geoserver Configuration </td> |
|
186 |
<% |
|
187 |
if (propsConfigured != null && propsConfigured) { |
|
188 |
%> |
|
189 |
|
|
190 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Configure Now</a> </td> |
|
191 |
|
|
192 |
<% |
|
85 |
|
|
86 |
if (authConfigured != null && authConfigured) { |
|
87 |
%> |
|
88 |
<tr> |
|
89 |
<td class="configured-tag">[configured] </td> |
|
90 |
<td class="property-title"> Authentication Configuration </td> |
|
91 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=auth">Reconfigure Now</a> </td> |
|
92 |
</tr> |
|
93 |
<% |
|
193 | 94 |
} else { |
194 |
%> |
|
195 |
<td class="configure-link"> Configure Global Properties First </td> |
|
196 |
<% |
|
95 |
%> |
|
96 |
<tr> |
|
97 |
<td class=unconfigured-tag>[unconfigured] </td> |
|
98 |
<td class=property-title> Authentication Configuration </td> |
|
99 |
<td class=configure-link> <a href="<%= request.getContextPath() %>/admin?configureType=auth">Configure Now</a> </td> |
|
100 |
</tr> |
|
101 |
<% |
|
197 | 102 |
} |
198 |
%> |
|
199 |
</tr> |
|
200 |
<% |
|
201 |
} |
|
202 |
%> |
|
203 |
|
|
204 |
<% |
|
205 |
|
|
206 |
if (dataoneConfigured != null && dataoneConfigured.equals(PropertyService.CONFIGURED)) { |
|
207 |
%> |
|
208 |
<tr> |
|
209 |
<td class="configured-tag">[configured] </td> |
|
210 |
<td class="property-title"> Dataone Configuration </td> |
|
211 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=dataone">Reconfigure Now</a> </td> |
|
212 |
</tr> |
|
213 |
<% |
|
214 |
} else if (dataoneConfigured != null && dataoneConfigured.equals(PropertyService.BYPASSED)){ |
|
215 |
%> |
|
216 |
<tr> |
|
217 |
<td class="configured-tag">[bypassed] </td> |
|
218 |
<td class="property-title"> Dataone Configuration </td> |
|
219 |
<% |
|
103 |
|
|
104 |
if (skinsConfigured != null && skinsConfigured) { |
|
105 |
%> |
|
106 |
<tr> |
|
107 |
<td class="configured-tag">[configured] </td> |
|
108 |
<td class="property-title"> Skins Specific Properties </td> |
|
109 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Reconfigure Now</a> </td> |
|
110 |
</tr> |
|
111 |
<% |
|
112 |
} else { |
|
113 |
%> |
|
114 |
<tr> |
|
115 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
116 |
<td class="property-title"> Skins Specific Properties </td> |
|
117 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=skins">Configure Now</a> </td> |
|
118 |
</tr> |
|
119 |
<% |
|
120 |
} |
|
121 |
|
|
122 |
if ((dbConfigured != null && dbConfigured) || |
|
123 |
(metacatVersion != null && databaseVersion != null && |
|
124 |
metacatVersion.compareTo(databaseVersion) == 0)) { |
|
125 |
%> |
|
126 |
<tr> |
|
127 |
<td class="configured-tag">[configured] </td> |
|
128 |
<td class="property-title"> Database Installation/Upgrade </td> |
|
129 |
<td class="configure-link"> Version: <%=databaseVersion.getVersionString()%> </td> |
|
130 |
</tr> |
|
131 |
<% |
|
132 |
} else { |
|
133 |
%> |
|
134 |
<tr> |
|
135 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
136 |
<td class="property-title"> Database Installation/Upgrade </td> |
|
137 |
<% |
|
220 | 138 |
if (propsConfigured != null && propsConfigured) { |
221 |
%> |
|
222 |
|
|
223 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=dataone">Reconfigure Now</a> </td> |
|
224 |
<% |
|
139 |
%> |
|
140 |
|
|
141 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=database">Configure Now</a> </td> |
|
142 |
|
|
143 |
<% |
|
144 |
} else { |
|
145 |
%> |
|
146 |
<td class="configure-link"> Configure Global Properties First </td> |
|
147 |
<% |
|
148 |
} |
|
149 |
%> |
|
150 |
</tr> |
|
151 |
<% |
|
152 |
} |
|
153 |
|
|
154 |
if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.CONFIGURED)) { |
|
155 |
%> |
|
156 |
<tr> |
|
157 |
<td class="configured-tag">[configured] </td> |
|
158 |
<td class="property-title"> Geoserver Configuration </td> |
|
159 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Reconfigure Now</a> </td> |
|
160 |
</tr> |
|
161 |
<% |
|
162 |
} else if (geoserverConfigured != null && geoserverConfigured.equals(PropertyService.BYPASSED)){ |
|
163 |
%> |
|
164 |
<tr> |
|
165 |
<td class="configured-tag">[bypassed] </td> |
|
166 |
<td class="property-title"> Geoserver Configuration </td> |
|
167 |
<% |
|
168 |
if (propsConfigured != null && propsConfigured) { |
|
169 |
%> |
|
170 |
|
|
171 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Reconfigure Now</a> </td> |
|
172 |
<% |
|
173 |
} else { |
|
174 |
%> |
|
175 |
<td class="configure-link"> Configure Global Properties First </td> |
|
176 |
<% |
|
177 |
} |
|
178 |
%> |
|
179 |
</tr> |
|
180 |
<% |
|
225 | 181 |
} else { |
226 |
%> |
|
227 |
<td class="configure-link"> Configure Global Properties First </td> |
|
228 |
<% |
|
182 |
%> |
|
183 |
<tr> |
|
184 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
185 |
<td class="property-title"> Geoserver Configuration </td> |
|
186 |
<% |
|
187 |
if (propsConfigured != null && propsConfigured) { |
|
188 |
%> |
|
189 |
|
|
190 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=geoserver">Configure Now</a> </td> |
|
191 |
|
|
192 |
<% |
|
193 |
} else { |
|
194 |
%> |
|
195 |
<td class="configure-link"> Configure Global Properties First </td> |
|
196 |
<% |
|
197 |
} |
|
198 |
%> |
|
199 |
</tr> |
|
200 |
<% |
|
229 | 201 |
} |
230 |
%> |
|
231 |
</tr> |
|
232 |
<% |
|
233 |
} else { |
|
234 |
%> |
|
235 |
<tr> |
|
236 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
237 |
<td class="property-title"> Dataone Configuration </td> |
|
238 |
<% |
|
202 |
%> |
|
203 |
|
|
204 |
<% |
|
205 |
|
|
206 |
if (dataoneConfigured != null && dataoneConfigured.equals(PropertyService.CONFIGURED)) { |
|
207 |
%> |
|
208 |
<tr> |
|
209 |
<td class="configured-tag">[configured] </td> |
|
210 |
<td class="property-title"> Dataone Configuration </td> |
|
211 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=dataone">Reconfigure Now</a> </td> |
|
212 |
</tr> |
|
213 |
<% |
|
214 |
} else if (dataoneConfigured != null && dataoneConfigured.equals(PropertyService.BYPASSED)){ |
|
215 |
%> |
|
216 |
<tr> |
|
217 |
<td class="configured-tag">[bypassed] </td> |
|
218 |
<td class="property-title"> Dataone Configuration </td> |
|
219 |
<% |
|
220 |
if (propsConfigured != null && propsConfigured) { |
|
221 |
%> |
|
222 |
|
|
223 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=dataone">Reconfigure Now</a> </td> |
|
224 |
<% |
|
225 |
} else { |
|
226 |
%> |
|
227 |
<td class="configure-link"> Configure Global Properties First </td> |
|
228 |
<% |
|
229 |
} |
|
230 |
%> |
|
231 |
</tr> |
|
232 |
<% |
|
233 |
} else { |
|
234 |
%> |
|
235 |
<tr> |
|
236 |
<td class="unconfigured-tag">[unconfigured] </td> |
|
237 |
<td class="property-title"> Dataone Configuration </td> |
|
238 |
<% |
|
239 |
if (propsConfigured != null && propsConfigured) { |
|
240 |
%> |
|
241 |
|
|
242 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=dataone">Configure Now</a> </td> |
|
243 |
|
|
244 |
<% |
|
245 |
} else { |
|
246 |
%> |
|
247 |
<td class="configure-link"> Configure Global Properties First </td> |
|
248 |
<% |
|
249 |
} |
|
250 |
%> |
|
251 |
</tr> |
|
252 |
<% |
|
253 |
} |
|
254 |
%> |
|
255 |
|
|
256 |
<!-- replication --> |
|
257 |
<tr> |
|
258 |
<td class="configured-tag">[configured] </td> |
|
259 |
<td class="property-title"> Replication Configuration </td> |
|
260 |
<% |
|
239 | 261 |
if (propsConfigured != null && propsConfigured) { |
240 |
%> |
|
241 |
|
|
242 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=dataone">Configure Now</a> </td>
|
|
243 |
|
|
244 |
<% |
|
262 |
%>
|
|
263 |
|
|
264 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=replication">Reconfigure Now</a> </td>
|
|
265 |
|
|
266 |
<%
|
|
245 | 267 |
} else { |
246 |
%> |
|
268 |
%>
|
|
247 | 269 |
<td class="configure-link"> Configure Global Properties First </td> |
248 |
<% |
|
270 |
<%
|
|
249 | 271 |
} |
250 |
%> |
|
251 |
</tr> |
|
252 |
<% |
|
253 |
} |
|
254 |
%> |
|
255 |
|
|
256 |
<!-- replication --> |
|
257 |
<tr> |
|
258 |
<td class="configured-tag">[configured] </td> |
|
259 |
<td class="property-title"> Replication Configuration </td> |
|
260 |
<% |
|
261 |
if (propsConfigured != null && propsConfigured) { |
|
262 |
%> |
|
263 |
|
|
264 |
<td class="configure-link"> <a href="<%= request.getContextPath() %>/admin?configureType=replication">Reconfigure Now</a> </td> |
|
265 |
|
|
266 |
<% |
|
267 |
} else { |
|
268 |
%> |
|
269 |
<td class="configure-link"> Configure Global Properties First </td> |
|
270 |
<% |
|
271 |
} |
|
272 |
%> |
|
273 |
</tr> |
|
274 |
|
|
275 |
|
|
276 |
|
|
277 |
<!-- --> |
|
278 |
</table> |
|
279 |
|
|
280 |
<% |
|
281 |
if (metacatConfigured != null && metacatConfigured) { |
|
282 |
%> |
|
283 |
<br clear="right"/> |
|
284 |
<% |
|
285 |
if (metacatServletInitialized != null && metacatServletInitialized) { |
|
286 |
%> |
|
287 |
<h3>Restarting Metacat</h3> |
|
288 |
<p> Since this is a reconfiguration, you will need to restart Metacat after any changes.</p> |
|
272 |
%> |
|
273 |
</tr> |
|
289 | 274 |
|
290 |
<p>The simplest way to restart metacat is to restart the entire servlet engine. |
|
291 |
For Tomcat, this would mean calling "sudo /etc/init.d/tomcat6 restart" or |
|
292 |
an equivalent command appropriate to your operating system. After restarting, |
|
293 |
you can access your new Metacat server at the URL: |
|
294 |
<a href="<%= contextURL %>"><%= contextURL %></a> |
|
295 |
</p> |
|
296 |
<% |
|
297 |
} else { |
|
298 |
%> |
|
299 |
<div class="success-text">Configuration of Metacat is complete. You can <a href="<%= request.getContextPath() %>">go to metacat</a> |
|
300 |
now. Note that this may take some time while the system initializes with the new configuration values.</div> |
|
301 |
<% |
|
275 |
|
|
276 |
|
|
277 |
<!-- --> |
|
278 |
</table> |
|
279 |
|
|
280 |
<% |
|
281 |
if (metacatConfigured != null && metacatConfigured) { |
|
282 |
%> |
|
283 |
<br clear="right"/> |
|
284 |
<% |
|
285 |
if (metacatServletInitialized != null && metacatServletInitialized) { |
|
286 |
%> |
|
287 |
<h3>Restarting Metacat</h3> |
|
288 |
<p> Since this is a reconfiguration, you will need to restart Metacat after any changes.</p> |
|
289 |
|
|
290 |
<p>The simplest way to restart metacat is to restart the entire servlet engine. |
|
291 |
For Tomcat, this would mean calling "sudo /etc/init.d/tomcat6 restart" or |
|
292 |
an equivalent command appropriate to your operating system. After restarting, |
|
293 |
you can access your new Metacat server at the URL: |
|
294 |
<a href="<%= contextURL %>"><%= contextURL %></a> |
|
295 |
</p> |
|
296 |
<% |
|
297 |
} else { |
|
298 |
%> |
|
299 |
<div class="alert alert-success">Configuration of Metacat is complete. You can <a href="<%= request.getContextPath() %>">go to metacat</a> |
|
300 |
now. Note that this may take some time while the system initializes with the new configuration values.</div> |
|
301 |
<% |
|
302 |
} |
|
302 | 303 |
} |
303 |
}
|
|
304 |
%>
|
|
304 |
%>
|
|
305 |
</div>
|
|
305 | 306 |
|
306 | 307 |
<%@ include file="./footer-section.jsp"%> |
307 | 308 |
|
Also available in: Unified diff
Matched the admin config pages to the default metacatUI theme. Changed the background image of the docs and config pages to a big cat for some metacat branding.