incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r392982 [21/25] - in /incubator/lokahi/lokahi/trunk: ./ conf/ database/ docs/ lib/ src/ src/java/ src/java/lokahi/ src/java/lokahi/core/ src/java/lokahi/core/agent/ src/java/lokahi/core/agent/callable/ src/java/lokahi/core/agent/callable/co...
Date Mon, 10 Apr 2006 16:20:11 GMT
Added: incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,65 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Core/Pool/$page">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Core/Pool/details.vm">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("AddHostingPool"))
+<option value="$appRoot/Core/Pool/add.vm">&nbsp;Add&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm">&nbsp;Restart Apache&nbsp;</option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm">&nbsp;Graceful Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm">&nbsp;Stop Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm">&nbsp;Start Apache&nbsp;</option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm">&nbsp;Configtest Apache&nbsp;</option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm">&nbsp;Deploy Apache Config&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm">&nbsp;Restart Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm">&nbsp;Stop Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm">&nbsp;Start Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,62 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Core/Pool/$page?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Core/Pool/details.vm?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm?id=$!{ent.getPk()}">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm?id=$!{ent.getPk()}">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm?id=$!{ent.getPk()}">&nbsp;Restart Apache&nbsp;</option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm?id=$!{ent.getPk()}">&nbsp;Graceful Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm?id=$!{ent.getPk()}">&nbsp;Stop Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm?id=$!{ent.getPk()}">&nbsp;Start Apache&nbsp;</option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm?id=$!{ent.getPk()}">&nbsp;Configtest Apache&nbsp;</option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Apache Config&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm?id=$!{ent.getPk()}">&nbsp;Restart Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm?id=$!{ent.getPk()}">&nbsp;Stop Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm?id=$!{ent.getPk()}">&nbsp;Start Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/File/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,70 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: update.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "file")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+	var myindex  = dropdown.selectedIndex;
+	var SelValue = dropdown.options[myindex].value;
+	var baseURL  = "$appRoot/administration/File/update.vm?id=" + SelValue;
+	top.location.href = baseURL;
+
+	return true;
+}
+//-->
+</SCRIPT>
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateFile")
+
+#if($id)
+#set ($file = $view.getFile($id))
+#if ($User.isAllowed("UpdateFile") && $methodToCall == "UpdateFile")
+<form name="Form" method="post" action='$link.setAction("administration/FileAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+
+Name: <input type="text" id="name" name="name" value="$!{file.getName()}"><BR>
+Path: <input type="text" id="path" name="path" value="$!{file.getPath()}"><BR>
+Descriptor: <input type="text" id="descriptor" name="descriptor" value="$!{file.getDescriptor()}"><BR>
+Content: <textarea id="content" name="content" cols="90" rows="30">$!{file.getContent()}</textarea><BR>
+<input type="submit" value="update">
+</form>
+#end
+
+#else
+File:
+#set ($files = $view.getFiles())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($file in $files)
+              			      <option value="$file.getPk()">$file.getName()
+              			      #end
+              			      </select><BR>
+              			      
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Function/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Function/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Function/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Function/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,49 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: add.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "function")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/FunctionAction")'>
+<table>
+<tr>
+<td>
+Name:
+</td>
+<td>
+<input type="text" id="functionName" name="functionName" value="$!{functionName}">
+</td>
+</tr>
+<tr>
+<td>
+Function Command:
+</td>
+<td>
+<input type="text" id="functionCommand" name="functionCommand" value="$!{functionCommand}">
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddFunction">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Function/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Function/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Function/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Function/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/Function/Delete")
+#set($methodToCall = "DeleteFunction")
+#set($buttonName = "Delete")
+#set ($function = "DeleteFunction")
+#parse("administration/Function/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Function/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Function/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Function/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Function/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,76 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "function")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+	var myindex  = dropdown.selectedIndex;
+	var SelValue = dropdown.options[myindex].value;
+	var baseURL  = "$appRoot/administration/Function/details.vm?id=" + SelValue;
+	top.location.href = baseURL;
+	return true;
+}
+//-->
+
+</SCRIPT>
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateFunction")
+
+#if($id)
+
+
+#set ($Function = $view.getFunction($id))
+Name: $!{Function.getName()}<BR>
+Function Command: $!{Function.getCommand()}<BR>
+
+
+#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateFunction")
+<a href="$appRoot/administration/Function/update.vm?id=$id">Update this Function</a> &nbsp;<BR><BR>
+#end
+
+#if ($User.isAllowed("DeleteFunction"))
+  <form name="Form" method="post" action='$appRoot/administration/Function/Delete.do'>
+  <input type=hidden name="methodToCall" value="delete" >
+  <input type=hidden name=id value="$id" >
+  <input type="submit" value="Delete">
+  </form>
+#end
+
+
+#else
+Function:
+#set ($functions = $User.getFunctions())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($function in $functions)
+              			      <option value="$function.getPk()">$function.getName()
+              			      #end
+              			      </select><BR>
+
+
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Function/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Function/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Function/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Function/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,28 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "function")
+#parse("/layout/header.vm")
+
+#set ($collection = $User.getFunctions())
+#set ($entity = "Function")
+#parse("/layout/list.vm")
+
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Function/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Function/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Function/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Function/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,69 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: update.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "function")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+	var myindex  = dropdown.selectedIndex;
+	var SelValue = dropdown.options[myindex].value;
+	var baseURL  = "$appRoot/administration/Function/update.vm?id=" + SelValue;
+	top.location.href = baseURL;
+
+	return true;
+}
+//-->
+</SCRIPT>
+
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateFunction")
+#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateFunction")
+#if($id)
+#set ($Function = $view.getFunction($id))
+<form name="Form" method="post" action='$link.setAction("administration/FunctionAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+
+Name: <input type="text" id="functionName" name="functionName" value="$!{Function.getName()}"><BR>
+Function Command: <input type="text" id="functionCommand" name="functionCommand" value="$!{Function.getCommand()}"><BR>
+
+<input type="submit" value="Update">
+
+</form>
+#else
+Function:
+#set ($functions = $User.getFunctions())
+               <select name=id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($function in $functions)
+              			      <option value="$function.getPk()">$function.getName()
+              			      #end
+              			      </select><BR>
+
+#end
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,49 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: add.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "instance")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/InstanceAction")'>
+<table>
+<tr>
+<td>
+Name:
+</td>
+<td>
+<input type="text" id="instanceName" name="instanceName" value="$!{instanceName}">
+</td>
+</tr>
+<tr>
+<td>
+Comments:
+</td>
+<td>
+<input type="text" id="comments" name="comments" value="$!{comments}">
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddInstance">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/Instance/Delete")
+#set($methodToCall = "DeleteInstance")
+#set($buttonName = "Delete")
+#set ($function = "DeleteInstance")
+#parse("administration/Instance/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,78 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "instance")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+	var myindex  = dropdown.selectedIndex;
+	var SelValue = dropdown.options[myindex].value;
+	var baseURL  = "$appRoot/administration/Instance/details.vm?id=" + SelValue;
+	top.location.href = baseURL;
+
+	return true;
+}
+//-->
+</SCRIPT>
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateInstance")
+
+
+#if($id)
+
+#if ($User.isAllowed("ViewInstance") && $methodToCall == "UpdateInstance")
+#set ($instance = $view.getInstance($id))
+Name: $!{instance.getName()}<br>
+Comments:  <textarea readonly id="entry" name="entry" cols="40" rows="5"> $!{instance.getComments()} </textarea><BR>
+#end
+
+#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateInstance")
+<a href="$appRoot/administration/Instance/update.vm?id=$id">Update this Instance</a> &nbsp;<BR><BR>
+#end
+
+#if ($User.isAllowed("DeleteInstance"))
+  <form name="Form" method="post" action='$appRoot/administration/Instance/Delete.do'>
+  <input type=hidden name="methodToCall" value="delete" >
+  <input type=hidden name=id value="$id" >
+  <input type="submit" value="Delete">
+  </form>
+#end
+
+
+#else
+Instance:
+#set ($insts = $view.getInstances())
+               <select name=Id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($inst in $insts)
+              			      <option value="$inst.getPk()">$inst.getName()
+              			      #end
+              			      </select><BR>
+#end
+
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,28 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "instance")
+#parse("/layout/header.vm")
+
+#set ($collection = $view.getInstances())
+#set ($entity = "Instance")
+#parse("/layout/list.vm")
+
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,65 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Core/Pool/$page">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Core/Pool/details.vm">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("AddHostingPool"))
+<option value="$appRoot/Core/Pool/add.vm">&nbsp;Add&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm">&nbsp;Restart Apache&nbsp;</option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm">&nbsp;Graceful Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm">&nbsp;Stop Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm">&nbsp;Start Apache&nbsp;</option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm">&nbsp;Configtest Apache&nbsp;</option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm">&nbsp;Deploy Apache Config&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm">&nbsp;Restart Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm">&nbsp;Stop Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm">&nbsp;Start Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,62 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Core/Pool/$page?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Core/Pool/details.vm?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm?id=$!{ent.getPk()}">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm?id=$!{ent.getPk()}">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm?id=$!{ent.getPk()}">&nbsp;Restart Apache&nbsp;</option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm?id=$!{ent.getPk()}">&nbsp;Graceful Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm?id=$!{ent.getPk()}">&nbsp;Stop Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm?id=$!{ent.getPk()}">&nbsp;Start Apache&nbsp;</option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm?id=$!{ent.getPk()}">&nbsp;Configtest Apache&nbsp;</option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Apache Config&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm?id=$!{ent.getPk()}">&nbsp;Restart Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm?id=$!{ent.getPk()}">&nbsp;Stop Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm?id=$!{ent.getPk()}">&nbsp;Start Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Instance/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Instance/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Instance/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Instance/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,68 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: update.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "instance")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+	var myindex  = dropdown.selectedIndex;
+	var SelValue = dropdown.options[myindex].value;
+	var baseURL  = "$appRoot/administration/Instance/update.vm?id=" + SelValue;
+	top.location.href = baseURL;
+
+	return true;
+}
+//-->
+</SCRIPT>
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateInstance")
+
+
+#if($id)
+#if ($User.isAllowed("UpdateInstance") && $methodToCall == "UpdateInstance")
+#set ($instance = $view.getInstance($id))
+<form name="Form" method="post" action='$link.setAction("administration/InstanceAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+
+Name: <input type="text"  readonly id="instanceName" name="instanceName" value="$!{instance.getName()}"><br>
+Comments:  <textarea id="comments" name="comments" cols="40" rows="5"> $!{instance.getComments()} </textarea><BR>
+<input type="submit" value="Update">
+</form>
+#end
+#else
+Instance:
+#set ($insts = $view.getInstances())
+               <select name=Id onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($inst in $insts)
+              			      <option value="$inst.getPk()">$inst.getName()
+              			      #end
+              			      </select><BR>
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Ip/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Ip/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Ip/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Ip/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,41 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: add.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "Administration")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/IpAction")'>
+<table>
+<tr>
+<td>
+Ip:
+</td>
+<td>
+<input type="text" id="ip" name="ip" value="$!{ip}">
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddIp">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Ip/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Ip/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Ip/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Ip/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/Ip/Delete")
+#set($methodToCall = "DeleteIp")
+#set($buttonName = "Delete")
+#set ($function = "DeleteIp")
+#parse("administration/Ip/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Ip/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Ip/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Ip/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Ip/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,43 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "Administration")
+#parse("/layout/header.vm")
+<div id="center">
+<div class="bigright">
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateIp")
+#set ($Ip = $view.getIp($id))
+
+#if ($User.isAllowed("UpdateIp") && $methodToCall == "UpdateIp")
+<form name="Form" method="post" action='$link.setAction("administration/IpAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+
+Ip: <input type="text" id="ip" name="ip" value="$!{Ip.getName()}">
+
+<input type="submit" value="Update">
+
+</form>
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Ip/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Ip/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Ip/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Ip/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,28 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "Administration")
+#parse("/layout/header.vm")
+
+#set ($collection = $view.getIps())
+#set ($entity = "Ip")
+#parse("/layout/list.vm")
+
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/JobPool/Delete")
+#set($methodToCall = "DeleteJobPool")
+#set($buttonName = "Delete")
+#set ($function = "DeleteJobPool")
+#parse("administration/JobPool/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,105 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/HomeTop.vm")
+#set ( $pageSelected = "RecentJobs" )
+#parse("/layout/header.vm")
+
+#set ($jobPoolId = $request.getParameter("Id"))
+<div align="center" class="contentbox">
+<br /><br />
+<table cellpadding="0" cellspacing="0" border="0">
+<tr>
+	<td valign="middle">
+		<form action="$appRoot/Core/JobPool/recent.vm" method="post">
+		#submit_button("submit" "< Back" "button" "")
+		</form>
+	</td>
+	<td valign="middle">
+		<form action="details.vm" method="post">
+		<input type="hidden" name="jobPoolId" value="$!jobPoolId">
+		#submit_button("Submit" "&nbsp;Refresh&nbsp;" "button" "")
+		</form>
+	</td>
+</tr>
+</table>
+
+<br>
+
+##get recent jobs.
+
+   #set ($jobPool = $view.getJobPool($jobPoolId) )
+
+
+<table width="90%" border="0" cellspacing="1" cellpadding="1">
+	<tr class="info"><td colspan="3">Job details for Job ID - $jobPool.getName()</td></tr>
+
+	<tr class="body">
+		<td width="30%">Project Name </td>
+		#if($jobPool.getProject())
+		<td width="70%" colspan=2><A href="$appRoot/Core/Project/details.vm?projectId=$!{jobPool.getProject().getPk()}">$!{jobPool.getProject().getName()}</a> </td>
+		#else
+		<td width="70%" colspan=2> </td>
+		#end
+	</tr>
+	<tr class="body">
+		<td>Job </td>
+		<td colspan=2>$jobPool.getFunction().getName() </td>
+	</tr>
+	<tr class="body">
+		<td>User </td>
+		<td colspan=2>$jobPool.getUser().getName() </td>
+	</tr>
+	<tr class="body">
+		<td>Start Time </td>
+		<td colspan=2>$jobPool.getStartTime() </td>
+	</tr>
+	<tr class="body">
+		<td>Finish Time </td>
+		<td colspan=2>$!{jobPool.getFinishTime()} </td>
+	</tr>
+	<tr class="body">
+		<td>Options </td>
+		<td colspan=2>$!{jobPool.getOptions()} </td>
+	</tr>
+  #set ($sortedJobs = $jobPool.getSortedJobs())
+	#foreach ($hardwareName in $sortedJobs.keySet())
+
+			<tr valign="top"><td colspan="2">&nbsp;</td></tr>
+			<tr class="info" valign="top"><td colspan="3">Details for Server - $hardwareName </td></tr>
+			<tr class="body">
+				<td width="15%"><b>Job Name</b></td>
+				<td width="10%"><b>Job State</b></td>
+				<td width="75%"><b>Job Result</b></td>
+			</tr>
+    #foreach ($Job in $sortedJobs.get($hardwareName).values())
+				<tr class="body">
+					<td>$Job.getName() - $Job.getFunction().getCommand() </td>
+					<td>
+					<font color="$Job.getState().getColor()">$Job.getState().getName() </font>
+					</td>
+					<td> #if($Job.getState().getPk() > 3) $Job.getResult().replaceAll("\n","<br />") #end </td>
+				</tr>
+		#end
+	#end
+
+</table>
+<br />
+</div>
+
+#parse("/layout/footer.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/recent.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/recent.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/recent.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/recent.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,107 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: recent.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($pageSelected = "RecentJobs")
+#set ($menu = "/layout/menu/HomeTop.vm")
+#parse("/layout/header.vm")
+#if ($request.getParameter("nj"))
+#set ($numToShow = $request.getParameter("nj"))
+#else
+#set ($numToShow = 10)
+#end
+<div align="center" class="contentbox">
+<br /><br />
+
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td width="33%">My Recent Jobs
+	 #foreach ($num in [10,20,30])
+		&nbsp;<a class="info" href="$appRoot/Core/JobPool/recent.vm?nj=$num">$num</a> &nbsp;
+	 #end
+	 &nbsp;
+  </td>
+  <td width="33%" align=center>
+	 	<form action="$appRoot/Core/JobPool/recent.vm?nj=$numToShow" method="post">
+		#submit_button("Submit" "&nbsp;Refresh&nbsp;" "button" "")
+		</form>
+  </td>
+	<td width="33%" align=right>
+      <a class="info" href="$appRoot/Core/JobPool/search.vm">Search Jobs</a> &nbsp;&nbsp;
+             </td>
+</tr>
+</table>
+
+
+#messagesMarkup()
+#errorMarkup()
+#if ($ErrorMessage)
+  <font color=red>$!ErrorMessage</font>
+#end
+$!ResultMessage
+<br />
+
+##get recent jobs.
+#set ($recentJobs = $User.getRecentJobPools($numToShow))
+<table width="95%" border="0" cellspacing="0" cellpadding="1">
+	<tr class="info">
+		<td width="28%">Project</td>
+		<td width="20%">Action</td>
+		<td width="20%">Time</td>
+		<td width="12%">Status</td>
+	</tr>
+#if(!$recentJobs || $recentJobs.isEmpty())
+	<tr class="headercolor1"><td colspan="5">No recent jobs for $User.getName() - $User.getFirstName() $User.getLastName() </td></tr>
+#else
+  #set($c=1)
+	#foreach($job in $recentJobs)
+		<tr class="headercolor$c">
+
+		<td>
+		#if($job.getProject())
+		<a href="$appRoot/Core/Project/details.vm?projectId=$!{job.getProject().getPk()}">$!{job.getProject().getName()}</a>
+		#end
+		</td>
+		<td > $job.getFunction().getName() </td>
+		<td > $job.getStartTime() </td>
+		<td > <a href="$appRoot/Core/JobPool/details.vm?Id=$job.getPk()" color="$job.getState().getColor()" style="text-decoration:underline">
+    #if($job.getState().getName())
+<!--		$job.getState().getName() -->
+    Details
+		#else
+		Details
+		#end
+		</a>
+		</td>
+		</tr>
+		#if ($c == 1)
+      #set($c=2)
+    #else
+      #set($c=1)
+    #end
+	#end
+#end
+</table>
+<br />
+</div>
+
+<br />
+</div>
+
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/running.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/running.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/running.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/running.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,55 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: running.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/HomeTop.vm")
+#set ( $pageSelected = "RecentJobs" )
+#parse("/layout/header.vm")
+
+
+
+
+<div align="center" class="contentbox">
+<br /><br />
+
+<table width="90%" border="0" cellspacing="1" cellpadding="1">
+
+  #set ($sortedJobs = $view.getRunningJobs())
+	#foreach ($hardwareName in $sortedJobs.keySet())
+
+			<tr valign="top"><td colspan="2">&nbsp;</td></tr>
+			<tr class="info" valign="top"><td colspan="3">Details for Server - $hardwareName </td></tr>
+			<tr class="body">
+				<td width="15%"><b>Job Name</b></td>
+				<td width="10%"><b>Job State</b></td>
+				<td width="75%"><b>Job StartTime</b></td>
+			</TR>
+    #foreach ($Job in $sortedJobs.get($hardwareName).values())
+				<tr class="body">
+					<td>$Job.getName() - $Job.getFunction().getCommand() </td>
+					<td>
+					<font color="$Job.getState().getColor()">$Job.getState().getName() </font>
+					</td>
+					<td> $Job.getStartTime() </td>
+				</tr>
+		#end
+	#end
+
+</table>
+
+<br />
+</div>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/search.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/search.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/search.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/JobPool/search.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,155 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: search.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($pageSelected = "RecentJobs")
+#set ($menu = "/layout/menu/HomeTop.vm")
+#parse("/layout/header.vm")
+
+<div align="center" class="contentbox">
+<br /><br />
+#if($filter || $StartDate || $EndDate || $userId || $functions)
+#set($results = $view.getJobPools($userId, $filter, $StartDate, $EndDate,  $functions))
+#end
+
+#tooltippopup("StartDatePopBox" "<ul>Format for the start date:<li>MM/DD/YY</li><li>MM/DD/YY HH:MM</li></ul>")
+#tooltippopup("EndDatePopBox" "<ul>Format for the end date:<li>MM/DD/YY</li><li>MM/DD/YY HH:MM</li></ul>")
+#tooltippopup("UserPopBox" "You may limit your search to a particular person's jobs.")
+#tooltippopup("FunctionPopBox" "As more functions are selected the search takes longer.")
+
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td width="33%">Search Jobs
+  </td>
+  <td width="33%" align=center>
+	 	<form action="$appRoot/Core/JobPool/search.vm" method="post">
+	 	<form type="hidden" name="filter" value="$!filter">
+	 	<form type="hidden" name="StartDate" value="$!StartDate">
+	 	<form type="hidden" name="EndDate" value="$!EndDate">
+	 	<form type="hidden" name="userId" value="$!userId">
+	 	#foreach($f in $functions)
+	 	<form type="hidden" name="functions" value="$!f">
+	 	#end
+		#submit_button("Submit" "&nbsp;Refresh&nbsp;" "button" "")
+		</form>
+  </td>
+	<td  width="33%" align=right>
+      <a class="info" href="$appRoot/Core/JobPool/recent.vm">Back to My Jobs</a>
+             </td>
+</tr>
+</table>
+
+<br>
+
+#if ($results)
+<table width="90%" border="0" cellspacing="1" cellpadding="1">
+	<tr class="info">
+		<td width="28%">Project</td>
+		<td width="15%">User</td>
+		<td width="15%">Action</td>
+		<td width="15%">Time</td>
+		<td width="7%">Status</TD>
+	</TR>
+#if(!$results || $results.isEmpty())
+	<tr class="headercolor5"><td colspan="4">No jobs fit your search results. </td></tr>
+#else
+  #set($c=1)
+	#foreach($job in $results)
+		<tr class="headercolor$c">
+
+		<td >
+		#if($job.getProject())
+		<A href="$appRoot/ProjectDetails.vm?projectId=$!{job.getProject().getPk()}">$!{job.getProject().getName()}</a>
+		#end
+		</td>
+		<td> $!{job.getUser().getFullName()} </td>
+		<td > $job.getFunction().getName() </td>
+		<td > $job.getStartTime() </td>
+		<td > <a href="$appRoot/Core/JobPool/details.vm?Id=$job.getPk()" color="$job.getState().getColor()" style="text-decoration:underline">
+    #if($job.getState().getName())
+		$job.getState().getName()
+		#else
+		Details
+		#end
+		</a>
+		</td>
+		</tr>
+		#if ($c == 1)
+      #set($c=2)
+    #else
+      #set($c=1)
+    #end
+	#end
+#end
+</table>
+<br>
+#end
+
+<table width="90%" class="messagebox" align="center">
+<tr><td align=center>
+<br />
+<form action="$appRoot/Core/JobPool/search.vm">
+<table width="50%">
+<tr><td>Filter: </td><td colspan=2><input type="text" name="filter" value="$!filter" /></td></tr>
+<tr><td>Date Range: </td><td colspan=2><input type="text" name="StartDate" value="$!StartDate" />&nbsp;#anchortippopup("StartDatePopBox" "$appRoot/Help/index.vm")</td></tr>
+<tr><td> &nbsp;</td><td>to:</td><td> <input type="text" name="EndDate" value="$!EndDate" />&nbsp;#anchortippopup("EndDatePopBox" "$appRoot/Help/index.vm")</td></tr>
+#set ($users = $view.getUsers())
+<tr><td>User: </td><td colspan=2><select name=userid>
+			      <option value=""> </option>
+			      #foreach ($u in $users)
+			      <option value=$u.getPk()>$u.getName()</option>
+			      #end
+			      </select>&nbsp;#anchortippopup("UserPopBox" "$appRoot/Help/index.vm")</td></tr>
+<tr><td>Function:</td><td colspan=2>
+<select name="functions" size=5 multiple>
+            #foreach ($f in $view.getFunctions())
+            <option value=$f.getPk()>$f.getName()</option>
+            #end
+         </select>&nbsp;#anchortippopup("FunctionPopBox" "$appRoot/Help/index.vm")</td></tr>
+<tr><td colspan=3 align=center>		#submit_button("Submit" "Search" "button" "")</td></tr>
+</table>
+
+
+</form>
+<br>
+</td></tr></table>
+
+<br>
+<br>
+
+
+
+
+
+
+<br />
+</div>
+<br /></div>
+
+
+
+
+
+
+
+
+
+
+
+
+#parse("/layout/footer.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,97 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: add.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#parse("/layout/header.vm")
+<div align="center" class="contentbox">
+<br /><br />
+
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td colspan=3>Infrastructure - <b>Hosting Pool</b>
+  </td>
+</tr>
+</table>
+<br />
+<div class="messagebox">
+
+<form name="Form" method="post" action='$link.setAction("administration/HostingPoolAction")'>
+<table>
+<tr>
+<td>
+Name:
+</td>
+<td>
+<input type="text" id="poolName" name="poolName" value="$!{poolName}">
+</td>
+</tr>
+<tr>
+<td>
+TomcatPool:
+</td>
+<td>
+#set ($tps = $view.getTomcatPools())
+<select name=tomcatPoolId>
+			      #foreach ($tp in $tps)
+			      <option value="$tp.getPk()">$tp.getName()
+			      #end
+			      </select>
+
+</td>
+</tr>
+<tr>
+<td>
+Apache Pool:
+</td>
+<td>
+#set ($aps = $view.getApachePools())
+<select name=apachePoolId>
+			      #foreach ($ap in $aps)
+			      <option value="$ap.getPk()">$ap.getName()
+			      #end
+			      </select>
+
+</td>
+</tr>
+<tr>
+<td>
+Environment:
+</td>
+<td>
+#set ($envs = $view.getEnvironments())
+
+<select name=envId>
+			      #foreach ($env in $envs)
+			      <option value="$env.getPk()">$env.getName()
+			      #end
+			      </select>
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddHostingPool">
+<input type="submit" value="submit">
+</form>
+</div>
+<br />
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildapacheconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildapacheconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildapacheconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildapacheconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: buildapacheconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "BuildConfig")
+#set($buttonName = "Build Config")
+#set ($function = "BuildApacheConfig")
+#set ($currentPage = "$appRoot/Core/Pool/buildapacheconf.vm")
+#parse("/Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: buildconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "BuildConfig")
+#set($buttonName = "Build Config")
+#set ($function = "BuildHostingPoolConfig")
+#set ($currentPage = "$appRoot/Core/Pool/buildconf.vm")
+#parse("Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildtomcatconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildtomcatconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildtomcatconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/buildtomcatconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: buildtomcatconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "BuildConfig")
+#set($buttonName = "Build Config")
+#set ($function = "BuildTomcatConfig")
+#set ($currentPage = "$appRoot/Core/Pool/buildtomcatconf.vm")
+#parse("Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/configtestapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/configtestapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/configtestapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/configtestapache.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: configtestapache.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "ConfigtestApache")
+#set($buttonName = "Configtest Apache")
+#set ($function = "ConfigtestApache")
+#set ($currentPage = "$appRoot/Core/Pool/configtestapache.vm")
+#parse("Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/confirm.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/confirm.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/confirm.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/confirm.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,28 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: confirm.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<!-- $function $User.isAllowed($function)  $methodToCall  $actionLink -->
+#if ($User.isAllowed($function) && $methodToCall && $actionLink)
+<form name="Form" method="post" action='$link.setAction($actionLink)'>
+<input type=hidden name="methodToCall" value="$methodToCall" >
+<input type="submit" value="$buttonName"><BR>
+$methodToCall
+<input type=hidden name=id value="$individual.getPk()" >&nbsp;&nbsp;
+$individual.getName()
+</form>
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,25 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: delete.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "administration/HostingPool/Delete")
+#set($methodToCall = "DeleteHostingPool")
+#set($buttonName = "Delete")
+#set ($function = "DeleteHostingPool")
+#set ($currentPage = "$appRoot/Core/Pool/delete.vm")
+#parse("Core/Pool/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deployapacheconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deployapacheconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deployapacheconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deployapacheconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: deployapacheconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "DeployApacheConfig")
+#set($buttonName = "Build and Deploy Config")
+#set ($function = "DeployApacheConfig")
+#set ($currentPage = "$appRoot/Core/Pool/deployapacheconf.vm")
+#parse("Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deploytomcatconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deploytomcatconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deploytomcatconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/deploytomcatconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: deploytomcatconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "BuildConfig")
+#set($buttonName = "Build Config")
+#set ($function = "DeployTomcatConfig")
+#set ($currentPage = "$appRoot/Core/Pool/deploytomcatconf.vm")
+#parse("/Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,94 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#parse("/layout/header.vm")
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateHostingPool")
+<div align="center" class="contentbox">
+<br /><br />
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td colspan="2">Infrastructure - <b>Hosting Pool</b>
+  </td>
+  <td align="right">
+  #parse("Core/Pool/menu/global.vm")
+  </td>
+</tr>
+</table>
+<br />
+#if ($id)
+#set ($ent = $view.getHostingPool($id))
+#set ($hp = $ent)
+#end
+#if ($hp)
+<table width="95%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info" valign="top">
+	<td colspan=2>Hosting Pool
+	#if ($hp)
+	- <b>$hp.getName()</b>
+	#end
+  </td>
+<td align="right">
+#if($ent)
+#parse("/Core/Pool/menu/indiv.vm")
+#else
+#parse("/Core/Pool/menu/global.vm")
+#end
+</td>
+</tr>
+<tr class="headercolor1">
+<td>Apache Pool:</td><td><a href="$appRoot/Apache/Pool/details.vm?id=$!{hp.getApachePool().getPk()}">$!{hp.getApachePool().getName()}</a></td>
+<td align="right">
+#set($ent = $hp.getApachePool())
+#if ($ent)
+#parse("/Apache/Pool/menu/indiv.vm")
+#end
+</td></tr>
+<tr class="headercolor2">
+<td>Tomcat Pool:</td><td><a href="$appRoot/Tomcat/Pool/details.vm?id=$!{hp.getTomcatPool().getPk()}">$!{hp.getTomcatPool().getName()}</a></td>
+<td align="right">
+#set($ent = $hp.getTomcatPool())
+#if ($ent)
+#parse("/Tomcat/Pool/menu/indiv.vm")
+#end
+</td></tr>
+<tr class="headercolor1">
+<td>Environment:</td><td><a href="$appRoot/Core/Environment/details.vm?id=$!{hp.getEnv().getPk()}">$!{hp.getEnv().getName()}</a></td><td> </td>
+</tr>
+</table>
+#else
+<tr class="headercolor1"><td colspan="2">
+Hosting Pool:</td><td align="right">
+#set ($hps = $view.getHostingPools())
+               <select name=hostingPoolId onchange='OnChange(this);'>
+                          <option value="">Select one
+              			      #foreach ($hp in $hps)
+              			      <option value="$appRoot/Core/Pool/details.vm?id=$hp.getPk()">$hp.getName()
+              			      #end
+              			      </select><</td>
+</table>
+#end
+<br />
+</div>
+<br />
+</div>
+#parse("/layout/footer.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/gracefulapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/gracefulapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/gracefulapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/gracefulapache.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,25 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: gracefulapache.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "GracefulApache")
+#set($buttonName = "Graceful Apache")
+#set ($function = "GracefulApache")
+#set ($currentPage = "$appRoot/Core/Pool/gracefulapache.vm")
+#parse("Core/Pool/list.vm")
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,46 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (!$collection)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Pool")
+#parse("/layout/header.vm")
+#set ($plf = "true")
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#set ($individual = $view.getHostingPool($id))
+#set ($indivPage = "/Core/Pool/confirm.vm")
+#else
+#set ($collection = $view.getHostingPools())
+#end
+#end
+#set ($entity = "HostingPool")
+#set ($usesEnv = "true")
+#set ($path = "Core/Pool")
+#if (! $currentPage)
+#set ($currentPage = "$appRoot/Core/Pool/list.vm")
+#end
+
+
+
+#parse("/layout/list2.vm")
+<!--$plf-->
+#if ($plf)
+#parse("/layout/footer.vm")
+#end
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,65 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Core/Pool/$page">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Core/Pool/details.vm">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("AddHostingPool"))
+<option value="$appRoot/Core/Pool/add.vm">&nbsp;Add&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm">&nbsp;Restart Apache&nbsp;</option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm">&nbsp;Graceful Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm">&nbsp;Stop Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm">&nbsp;Start Apache&nbsp;</option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm">&nbsp;Configtest Apache&nbsp;</option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm">&nbsp;Deploy Apache Config&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm">&nbsp;Restart Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm">&nbsp;Stop Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm">&nbsp;Start Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,62 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<select name=methodToCall onchange='OnChange(this);'>
+<option value="" selected>Select Action
+#if($page)
+<option value="$appRoot/Core/Pool/$page?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#else
+<option value="$appRoot/Core/Pool/details.vm?id=$!{ent.getPk()}">&nbsp;Details&nbsp;</option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm?id=$!{ent.getPk()}">&nbsp;Update&nbsp;</option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm?id=$!{ent.getPk()}">&nbsp;Delete&nbsp;</option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm?id=$!{ent.getPk()}">&nbsp;Restart Apache&nbsp;</option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm?id=$!{ent.getPk()}">&nbsp;Graceful Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm?id=$!{ent.getPk()}">&nbsp;Stop Apache&nbsp;</option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm?id=$!{ent.getPk()}">&nbsp;Start Apache&nbsp;</option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm?id=$!{ent.getPk()}">&nbsp;Configtest Apache&nbsp;</option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Apache Config&nbsp;</option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm?id=$!{ent.getPk()}">&nbsp;Restart Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm?id=$!{ent.getPk()}">&nbsp;Stop Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm?id=$!{ent.getPk()}">&nbsp;Start Tomcat&nbsp;</option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm?id=$!{ent.getPk()}">&nbsp;Deploy Tomcat Config&nbsp;</option>
+#end
+</select>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/search.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/search.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/search.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/menu/search.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: search.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<option value="$appRoot/Core/Pool/list.vm">&nbsp;View Hosting Pools&nbsp;</option>
+<option value="$appRoot/Apache/Pool/list.vm">&nbsp;View Apache Pools&nbsp;</option>
+<option value="$appRoot/Tomcat/Pool/list.vm">&nbsp;View Tomcat Pools&nbsp;</option>
+<option value="$appRoot/Core/Pool/add.vm">&nbsp;Add Hosting Pool&nbsp;</option>
+<option value="$appRoot/Apache/Pool/add.vm">&nbsp;Add Apache Pool&nbsp;</option>
+<option value="$appRoot/Tomcat/Pool/add.vm">&nbsp;Add Tomcat Pool&nbsp;</option>
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restartapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restartapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restartapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restartapache.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: restartapache.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "RestartApache")
+#set($buttonName = "Restart Apache")
+#set ($function = "RestartApache")
+#set ($currentPage = "$appRoot/Core/Pool/restartapache.vm")
+#parse("Core/Pool/list.vm")
+

Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restarttomcat.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restarttomcat.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restarttomcat.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/restarttomcat.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,24 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: restarttomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "HostingPool/SubmitJobAction")
+#set($methodToCall = "RestartTomcat")
+#set($buttonName = "Restart Tomcat")
+#set ($function = "RestartTomcat")
+#set ($currentPage = "$appRoot/Core/Pool/restarttomcat.vm")
+#parse("Core/Pool/list.vm")
+



Mime
View raw message