You are viewing a plain text version of this content. The canonical link for it is here.
Posted to lokahi-commits@incubator.apache.org by to...@apache.org on 2006/04/10 16:20:11 UTC
svn commit: r392982 [20/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...
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Server/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Server/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Server/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Server/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,74 @@
+##
+## 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/menu/PoolTop.vm")
+#set ($pageSelected = "Server")
+#parse("/layout/header.vm")
+
+
+<div id="bigright">
+<div class="messagebox">
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateApache")
+#if($id)
+#set ($apache = $view.getApache($id))
+
+#if ($User.isAllowed("UpdateApache") && $methodToCall == "UpdateApache")
+<form name="Form" method="post" action='$link.setAction("administration/ApacheAction")'>
+<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="$!{apache.getName()}"><br>
+Server Root: <input type="text" size="45" id="serverRoot" name="serverRoot" value="$!{apache.getServerRoot()}"><br>
+Log Location: <input type="text"size="45" id="logLocation" name="logLocation" value="$!{apache.getLogLocation()}"><br>
+System User: <input type="text" id="sysUser" name="sysUser" value="$!{apache.getSysUser()}"><br>
+System Group: <input type="text" id="sysGroup" name="sysGroup" value="$!{apache.getSysGroup()}"><br>
+Start Command: <input type="text" id="startCommand" name="startCommand" value="$!{apache.getStartCommand()}"><br>
+Stop Command: <input type="text" id="stopCommand" name="stopCommand" value="$!{apache.getStopCommand()}"><br>
+Restart Command: <input type="text" id="restartCommand" name="restartCommand" value="$!{apache.getRestartCommand()}"><br>
+Environment Varibles: <input type="text" id="envVaribles" name="envVaribles" value="$!{apache.getEnvVaribles()}"><br>
+ Pid File Location: <input type="text" id="pidFileLocation" name="pidFileLocation" value="$!{apache.getPidFileLocation()}"><br>
+Apache Main:
+#set ($allFiles = $view.getFiles())
+#if ($apache.getMain())
+#if ($allfiles.remove($apache.getMain()))
+
+#end
+#end
+<select name=mainId>
+<option value="$!{apache.getMain().getPk()}">$!{apache.getMain().getDescriptor()}
+#foreach ($file in $allFiles)
+<option value="$file.getPk()">$file.getDescriptor()
+#end
+</select>
+<input type="submit" value="Update"><br>
+</form>
+#end
+#else
+ Apache:
+ #set ($aps = $view.getApaches())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($ap in $aps)
+ <option value="$appRoot/Apache/Server/update.vm?id=$ap.getPk()">$ap.getName()
+ #end
+ </select><BR>
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Server/viewconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Server/viewconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Server/viewconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Server/viewconf.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,50 @@
+##
+## 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: viewconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Server")
+#parse("/layout/header.vm")
+
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+
+<div id="bigright">
+<div class="messagebox">
+
+#if ($id)
+#set ($apacheWorker = $view.getApacheWorker($id))
+
+<TextArea cols="90" READONLY rows="30">$apacheWorker.buildConfForWeb()</textarea>
+
+#else
+Apache Worker:
+#set ($aws = $view.getApacheWorkers())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($aw in $aws)
+ <option value="$appRoot/Apache/Server/viewconf.vm?id=$aw.getPk()">$aw.getName()
+ #end
+ </select><BR>
+#end
+
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,106 @@
+##
+## 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/PoolTop.vm")
+#set ($pageSelected = "ApachePool")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+#if ($request.getParameter("workers"))
+#set($numberOfWorkers = $math.toInteger($request.getParameter("workers")))
+#else
+#set($numberOfWorkers = 1)
+#end
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+
+
+Debug: Number of workers: $numberOfWorkers<BR><BR>
+
+<form name="Form" method="post" action='$link.setAction("administration/ApachePoolAction")'>
+<table>
+<tr>
+<td>
+Pool Name:
+</td>
+<td>
+#if($id)
+#set ($apachePool = $view.getApachePool($id))
+<input type="text" id="poolName" name="poolName" value="$!{apachePool.getName()}">
+#end
+<input type="text" id="poolName" name="poolName" value="$!{poolName}">
+</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>
+<tr>
+<td collspan="2">
+<A href="add.vm?workers=$math.add($numberOfWorkers, 1)"> Add another Apache Worker</A>
+</td>
+</tr>
+<tr>
+<td>
+Apache Container:
+</td>
+<td>
+Hardware:
+</td>
+</tr>
+#set($Apaches = $view.getApaches())
+#set($hardware = $view.getHardwares())
+#foreach($run in [1..$numberOfWorkers])
+<tr>
+<td>
+$run
+<select name=apacheId>
+ #foreach ($apache in $Apaches)
+ <option value="$apache.getPk()">$apache.getName()
+ #end
+ </select>
+
+</td>
+<td>
+<select name=hardwareId>
+ #foreach ($h in $hardware)
+ <option value="$h.getPk()">$h.getName()
+ #end
+ </select>
+</td>
+</tr>
+#end
+</table>
+<input type="hidden" name="methodToCall" value="AddApachePool">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/buildconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/buildconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/buildconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/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 = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "BuildConfig")
+#set($buttonName = "Build Config")
+#set ($function = "BuildApacheConfig")
+#set ($currentPage = "$appRoot/Apache/Worker/buildconf.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/configtestapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/configtestapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/configtestapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/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 = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "ConfigtestApache")
+#set($buttonName = "Configtest Apache")
+#set ($function = "ConfigtestApache")
+#set ($currentPage = "$appRoot/Apache/Worker/configtestapache.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/confirm.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/confirm.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/confirm.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/confirm.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,27 @@
+##
+## 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 $
+##
+#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()" >
+$individual.getName()
+</form>
+#end
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/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/ApacheWorker/Delete")
+#set($methodToCall = "DeleteApacheWorker")
+#set($buttonName = "Delete")
+#set ($function = "DeleteApacheWorker")
+#set ($currentPage = "$appRoot/Apache/Worker/delete.vm")
+#parse("Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/deployconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/deployconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/deployconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/deployconf.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: deployconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "DeployApacheConfig")
+#set($buttonName = "Build, Deploy Config")
+#set ($function = "DeployApacheConfig")
+#set ($currentPage = "$appRoot/Apache/Worker/deployconf.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,148 @@
+##
+## 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 $
+##
+#if (! $page)
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#set ($page = "details.vm")
+#end
+#parse("/layout/header.vm")
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#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 colspan="2">Infrastructure - <b>Apache Worker</b>
+ </td>
+ <td align="right">
+ #parse("/Apache/Worker/menu/global.vm")
+ </td>
+</tr>
+</table>
+<br />
+
+
+#if ($id)
+ #set ($apacheWorker = $view.getApacheWorker($id))
+ #set ($ent = $apacheWorker)
+<table width="95%" border="0" cellspacing="0" cellpadding="1">
+ <tr height="15" class="info">
+ <td align="left" valign="center" colspan=2 >
+ Worker - $!{apacheWorker.getName()}
+ </b>
+ </td>
+ <td align="right">
+#if ($ent)
+#parse("/Apache/Worker/menu/indiv.vm")
+#end
+</td></tr>
+ <tr class="headercolor1">
+ <td>Apache</td>
+ <td><A href="$appRoot/Apache/Server/details.vm?id=$!{apacheWorker.getApache().getPk()}">$!{apacheWorker.getApache().getName()}</a></td>
+ <td align="right">
+ #set($ent = $apacheWorker.getApache())
+ #if($ent)
+ #parse("/Apache/Server/menu/indiv.vm")
+ #end
+ </td>
+ </tr>
+ <tr class="headercolor2">
+ <td>Hardware</td>
+ <td><A href="$appRoot/Core/Server/details.vm?id=$!{apacheWorker.getHardware().getPk()}">$!{apacheWorker.getHardware().getName()}</a></td>
+ <td align="right">
+ #set($ent = $apacheWorker.getHardware())
+ #if($ent)
+ #parse("/Core/Server/menu/indiv.vm")
+ #end
+ </td>
+ </tr>
+
+</table>
+
+
+#set ($collection = $view.getApachePools($apacheWorker))
+#if( $collection && ! $collection.isEmpty())
+<br />
+#parse("/Apache/Pool/list.vm")
+#end ## of all apachepools
+
+#set ($vhosts = $view.getVirtualHosts($User, $apacheWorker))
+#if( $vhosts && ! $vhosts.isEmpty())
+<br />
+ <table width="95%" border="0" cellspacing="0" cellpadding="1">
+ <tr height="15" class="info">
+ <td align="left" valign="center" colspan="3">
+ Virtualhosts
+ </td>
+ <td align="right")
+ #parse("/Apache/Entity/menu/global.vm")
+ </td>
+ </tr>
+ <tr class="info">
+ <td width=25%> Hostname </td>
+ <td width=15%> Environment </td>
+ <td width=30%> Apache Pool </td>
+ <td width=30%> </td>
+ </tr>
+ #set($c = 1)
+ #foreach ($vhost in $vhosts)
+ #set ($count = 1)
+ <tr class="headercolor$c">
+ <td><A href="$appRoot/Apache/Entity/view.vm?id=$!{vhost.getPk()}"> $!{vhost.getName()} </td>
+ <td align="center"> $!{vhost.getEnv().getName()} </td>
+ <td align="center">
+ <a href="$appRoot/Apache/Pool/details.vm?id=$!{vhost.getApachePool().getPk()}">$!{vhost.getApachePool().getName()} </a><br>
+ </td>
+ <td align="right">
+ #set($ent = $vhost)
+ #parse("/Apache/Entity/menu/indiv.vm")
+ </td>
+ </tr>
+ #set ($count = $math.add($count, 1))
+ #if ($c == 1)
+ #set($c=2)
+ #else
+ #set($c=1)
+ #end
+ #end ##of all servers for this context
+</table>
+#end ## of all vhosts
+
+#else
+ Apache Worker:
+ #set ($aws = $view.getApacheWorkers().orderByName().values())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($aw in $aws)
+ <option value="$appRoot/Apache/Worker/$page?id=$aw.getPk()">$aw.getName()
+ #end
+ </select><BR>
+#end
+
+
+<br>
+
+
+</div>
+
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/gracefulapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/gracefulapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/gracefulapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/gracefulapache.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: gracefulapache.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "GracefulApache")
+#set($buttonName = "Graceful Apache")
+#set ($function = "GracefulApache")
+#set ($currentPage = "$appRoot/Apache/Worker/gracefulapache.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,44 @@
+##
+## 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 = "Worker")
+#parse("/layout/header.vm")
+#set($plf = "true")
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#set ($individual = $view.getApacheWorker($id))
+#set ($indivPage = "/Apache/Worker/confirm.vm")
+#else
+#set ($collection = $view.getApacheWorkers())
+#end
+#end
+#set ($entity = "ApacheWorker")
+#set ($usesEnv = "true")
+#set ($path = "Apache/Worker")
+#if (! $currentPage)
+#set ($currentPage = "$appRoot/$path/list.vm")
+#end
+
+
+
+#parse("/layout/list2.vm")
+#if($plf)
+#parse("/layout/footer.vm")
+#end
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/global.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,50 @@
+##
+## 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($User.isAllowed("ViewApacheWorker"))
+<option value="$appRoot/Apache/Worker/details.vm"> Details </option>
+#if($User.isAllowed("UpdateApacheWorker"))
+<option value="$appRoot/Apache/Worker/update.vm"> Update </option>
+#end
+#if($User.isAllowed("DeleteApacheWorker"))
+<option value="$appRoot/Apache/Worker/delete.vm"> Delete </option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Apache/Worker/restartapache.vm"> Restart </option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Apache/Worker/gracefulapache.vm"> Graceful </option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Apache/Worker/stopapache.vm"> Stop </option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Apache/Worker/startapache.vm"> Start </option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Apache/Worker/configtestapache.vm"> Configtest </option>
+#end
+<option value="$appRoot/Apache/Worker/viewconf.vm"> View Config File </option>
+<option value="$appRoot/Apache/Worker/viewprop.vm"> View workers.properties </option>
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Apache/Worker/deployconf.vm"> Deploy Config Files </option>
+#end
+#end
+</select>
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/menu/indiv.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,56 @@
+##
+## 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/Apache/Worker/$page?id=$!{ent.getPk()}"> Details </option>
+#else
+<option value="$appRoot/Apache/Worker/details.vm?id=$!{ent.getPk()}"> Details </option>
+#end
+#if($User.isAllowed("UpdateApacheWorker"))
+<option value="$appRoot/Apache/Worker/update.vm?id=$!{ent.getPk()}"> Update </option>
+#end
+#if($User.isAllowed("DeleteApacheWorker"))
+<option value="$appRoot/Apache/Worker/delete.vm?id=$!{ent.getPk()}"> Delete </option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Apache/Worker/restartapache.vm?id=$!{ent.getPk()}"> Restart </option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Apache/Worker/gracefulapache.vm?id=$!{ent.getPk()}"> Graceful </option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Apache/Worker/stopapache.vm?id=$!{ent.getPk()}"> Stop </option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Apache/Worker/startapache.vm?id=$!{ent.getPk()}"> Start </option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Apache/Worker/configtestapache.vm?id=$!{ent.getPk()}"> Configtest </option>
+#end
+#if($User.isAllowed("ViewApacheWorker"))
+<option value="$appRoot/Apache/Worker/viewconf.vm?id=$!{ent.getPk()}"> View Config File </option>
+#end
+#if($User.isAllowed("ViewApacheWorker"))
+<option value="$appRoot/Apache/Worker/viewprop.vm?id=$!{ent.getPk()}"> View workers.properties </option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Apache/Worker/deployconf.vm?id=$!{ent.getPk()}"> Deploy Config Files </option>
+#end
+</select>
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/restartapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/restartapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/restartapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/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 = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "RestartApache")
+#set($buttonName = "Restart Apache")
+#set ($function = "RestartApache")
+#set ($currentPage = "$appRoot/Apache/Worker/restartapache.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/startapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/startapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/startapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/startapache.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: startapache.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "StartApache")
+#set($buttonName = "Start Apache")
+#set ($function = "StartApache")
+#set ($currentPage = "$appRoot/Apache/Worker/startapache.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/stopapache.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/stopapache.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/stopapache.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/stopapache.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: stopapache.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set($actionLink = "ApacheWorker/SubmitJobAction")
+#set($methodToCall = "StopApache")
+#set($buttonName = "Stop Apache")
+#set ($function = "StopApache")
+#set ($currentPage = "$appRoot/Apache/Worker/stopapache.vm")
+#parse("/Apache/Worker/list.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/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/menu/PoolTop.vm")
+#set ($pageSelected = "ApacheWorker")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateApacheWorker")
+
+#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateApacheWorker")
+#if($id)
+#set ($aw = $view.getApacheWorker($id))
+<form name="Form" method="post" action='$link.setAction("administration/ApacheWorkerAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+Name: <input type="text" size="45" readonly id="name" name="name" value="$!{aw.getName()}"><BR>
+
+Apache:
+#set($Apaches = $view.getApaches())
+<select name=apacheId>
+#foreach ($apache in $Apaches)
+<option value="$apache.getPk()">$apache.getName()
+#end
+</select>
+<BR>
+State: <input type="text" readonly id="state" name="state" value="Active"><BR>
+Hardware:
+#set($hardware = $view.getHardwares())
+<select name=hardwareId>
+#foreach ($h in $hardware)
+<option value="$h.getPk()">$h.getName()
+#end
+</select>
+<BR>
+<input type="submit" value="update">
+</form>
+#else
+Apache Worker:
+#set ($aws = $view.getApacheWorkers())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($aw in $aws)
+ <option value="$appRoot/Apache/Worker/update.vm?id=$aw.getPk()">$aw.getName()
+ #end
+ </select><BR>
+#end
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/view.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/view.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/view.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/view.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,19 @@
+##
+## 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: view.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewconf.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewconf.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewconf.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewconf.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: viewconf.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#parse("/layout/header.vm")
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+
+<div id="bigright">
+<div class="messagebox">
+
+#if ($id)
+#set ($apacheWorker = $view.getApacheWorker($id))
+
+<TextArea cols="90" READONLY rows="30">$!{apacheWorker.buildConfForWeb()}</textarea>
+
+#else
+Apache Worker:
+#set ($aws = $view.getApacheWorkers())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($aw in $aws)
+ <option value="$appRoot/Apache/Worker/viewconf.vm?id=$aw.getPk()">$aw.getName()
+ #end
+ </select><BR>
+#end
+
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewprop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewprop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewprop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Apache/Worker/viewprop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,50 @@
+##
+## 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: viewprop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Worker")
+#parse("/layout/header.vm")
+
+
+#if ($request.getParameter("id"))
+#set ($id = $request.getParameter("id"))
+#end
+
+<div id="bigright">
+<div class="messagebox">
+
+#if ($id)
+#set ($apacheWorker = $view.getApacheWorker($id))
+
+<TextArea cols="90" READONLY rows="30">$!{apacheWorker.buildWorkersProperties()}</textarea>
+
+#else
+Apache Worker:
+#set ($aws = $view.getApacheWorkers())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($aw in $aws)
+ <option value="$appRoot/Apache/Worker/viewprop.vm?id=$aw.getPk()">$aw.getName()
+ #end
+ </select><BR>
+#end
+
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/add.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,66 @@
+##
+## 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 = "alert")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/AlertAction")'>
+<table>
+<tr>
+<td>
+Alert Title:
+</td>
+<td>
+<input type="text" id="alertTitle" name="alertTitle" value="$!{alertTitle}">
+</td>
+</tr>
+<tr>
+<td>
+Alert Link:
+</td>
+<td>
+<input type="text" id="alertLink" name="alertLink" value="$!{alertLink}">
+</td>
+</tr>
+<tr>
+<td>
+Alert Content:
+</td>
+<td>
+<textarea id="content" name="content" cols="40" rows="5">$!{content}</textarea>
+</td>
+</tr>
+<tr>
+<td>
+Is Context HTML Formatted?:
+</td>
+<td>
+Yes<input type="radio" id="format" name="format" value="Yes" checked> <br>
+No<input type="radio" id="format" name="format" value="No">
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddAlert">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/delete.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,96 @@
+##
+## 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 ($menu = "/layout/UtilTop.vm")
+#set ($pageSelected = "alert")
+#parse("/layout/header.vm")
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+ var myindex = dropdown.selectedIndex;
+ var SelValue = dropdown.options[myindex].value;
+ var baseURL = "$appRoot/administration/alerts/delete.vm?id=" + SelValue;
+ top.location.href = baseURL;
+
+ return true;
+}
+//-->
+</SCRIPT>
+<div id="center">
+<div class="messagebox">
+
+#set ($alertId = $request.getParameter("id"))
+#set($actionLink = "administration/AlertAction")
+#set($methodToCall = "DeleteAlert")
+#set($buttonName = "Delete")
+#set ($function = "DeleteAlert")
+
+#if($alertId)
+#set ($alerts = $alertSet.getRecentAlerts())
+ #foreach ($alert in $alerts)
+ #if ("$alert.getPk()" == $alertId)
+ #set($a = $alert)
+ #end
+ #end
+##parse("administration/project/list.vm")
+
+##set ($id = $request.getParameter("id"))
+##set($project = $User.getProject($projectId))
+
+
+#if ($User.isAllowed($function) && $methodToCall == "DeleteAlert")
+
+
+<table>
+<tr>
+
+
+Are you sure you want to delete $!{a.getName()}
+<br>
+<br>
+ <td valign="middle">
+ <form action="javascript:history.go(-1)" method="post">
+ #submit_button("submit" "< Back" "button" "")
+ </form>
+ </td>
+ <td valign="middle">
+ <form method="post" action='$link.setAction("administration/AlertAction")' method="post">
+ <input type="hidden" name="id" value="$!{alertId}">
+ <input type="hidden" name="methodToCall" value="DeleteAlert">
+ #submit_button("Submit" "Delete" "button" "")
+ </form>
+ </td>
+
+</tr>
+
+</table>
+#end
+#else
+ Alert to Delete:
+ #set ($als = $alertSet.getRecentAlerts())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($al in $als)
+ <option value="$al.getPk()">$al.getName()
+ #end
+ </select><BR>
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/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"> Details </option>
+#else
+<option value="$appRoot/Core/Pool/details.vm"> Details </option>
+#end
+#if($User.isAllowed("AddHostingPool"))
+<option value="$appRoot/Core/Pool/add.vm"> Add </option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm"> Update </option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm"> Delete </option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm"> Restart Apache </option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm"> Graceful Apache </option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm"> Stop Apache </option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm"> Start Apache </option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm"> Configtest Apache </option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm"> Deploy Apache Config </option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm"> Restart Tomcat </option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm"> Stop Tomcat </option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm"> Start Tomcat </option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm"> Deploy Tomcat Config </option>
+#end
+</select>
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/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()}"> Details </option>
+#else
+<option value="$appRoot/Core/Pool/details.vm?id=$!{ent.getPk()}"> Details </option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm?id=$!{ent.getPk()}"> Update </option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm?id=$!{ent.getPk()}"> Delete </option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm?id=$!{ent.getPk()}"> Restart Apache </option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm?id=$!{ent.getPk()}"> Graceful Apache </option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm?id=$!{ent.getPk()}"> Stop Apache </option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm?id=$!{ent.getPk()}"> Start Apache </option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm?id=$!{ent.getPk()}"> Configtest Apache </option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm?id=$!{ent.getPk()}"> Deploy Apache Config </option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm?id=$!{ent.getPk()}"> Restart Tomcat </option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm?id=$!{ent.getPk()}"> Stop Tomcat </option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm?id=$!{ent.getPk()}"> Start Tomcat </option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm?id=$!{ent.getPk()}"> Deploy Tomcat Config </option>
+#end
+</select>
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Alerts/update.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,104 @@
+##
+## 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 = "alert")
+#parse("/layout/header.vm")
+<SCRIPT LANGUAGE=javascript>
+<!--
+function OnChange(dropdown)
+{
+ var myindex = dropdown.selectedIndex;
+ var SelValue = dropdown.options[myindex].value;
+ var baseURL = "$appRoot/administration/alerts/update.vm?id=" + SelValue;
+ top.location.href = baseURL;
+
+ return true;
+}
+//-->
+</SCRIPT>
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateAlert")
+
+
+<div id="bigright">
+<div class="messagebox">
+
+##When AlertTool is upgraded uncomment this
+###if($id)
+###set($a = $alertSet.getAlertById($id))
+
+##delete this block when the above is uncommented
+#if($id)
+#set ($alerts = $alertSet.getRecentAlerts())
+ #foreach ($alert in $alerts)
+ #if ("$alert.getPk()" == $id)
+ #set($a = $alert)
+ #end
+ #end
+##block above
+
+
+##remove below comment at appropriate time
+#if ($User.isAllowed("UpdateAlert") && $methodToCall == "UpdateAlert")
+
+<form name="Form" method="post" action='$link.setAction("administration/AlertAction")'>
+<table>
+<tr>
+<td>
+Alert Title:
+</td>
+<td>
+<input type="text" size="40 id="alertTitle" name="alertTitle" value="$!{a.getName()}">
+</td>
+</tr>
+<tr>
+<td>
+Alert Link:
+</td>
+<td>
+<input type="text" size="40 id="alertLink" name="alertLink" value="$!{a.getLink()}">
+</td>
+</tr>
+<tr>
+<td>
+Alert Content:
+</td>
+<td>
+<textarea id="content" name="content" cols="40" rows="5">$!{a.getContent()}</textarea>
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="UpdateAlert">
+<input type="hidden" name="id" value="$!{id}">
+<input type="submit" value="Modify">
+</form>
+#end
+#else
+ Alerts:
+ #set ($als = $alertSet.getRecentAlerts())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($al in $als)
+ <option value="$al.getPk()">$al.getName()
+ #end
+ </select><BR>
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Entity/index.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Entity/index.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Entity/index.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Entity/index.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,50 @@
+##
+## 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: index.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($menu = "/layout/menu/EntityTop.vm")
+#set ( $pageSelected = "Entity" )
+#parse("/layout/header.vm")
+<div align="center" class="contentbox">
+<br /><br />
+<table width="700" border="0" cellspacing="0" cellpadding="0" >
+<tr valign="top" class="info">
+ <td valign="top" height="25" align="center"> Manage Assets </td>
+</tr>
+<tr valign="top" class="body">
+ <td align="center" valign="top" style="border-right-color:#666666;border-right-style:solid;border-right-width:1px;"><br />
+
+ <a href="$appRoot/Core/File/list.vm"> Manage Files </a><br />
+
+ <a href="$appRoot/Core/Enviroment/list.vm"> Manage Environments </a><br />
+
+ <a href="$appRoot/Core/Instance/list.vm"> Manage Instances </a><br />
+
+ <a href="$appRoot/Core/User/addAdmin.vm"> Manage Alerts </a>fix this link<br />
+
+
+ </td>
+</tr>
+
+</table>
+
+</form>
+
+<br />
+</div>
+
+#parse("/layout/footer.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Entity/search.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Entity/search.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Entity/search.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Entity/search.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,106 @@
+##
+## 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 ($menu = "/layout/menu/PoolTop.vm")
+#set ($pageSelected = "Entity")
+#set($focus = "Form1.name.focus();")
+#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 - Entity - <b>Search</b></td>
+<td colspan="2" align="right"> </td>
+</tr>
+</table>
+<br />
+#if ($name && $type != "")
+<div class="messagebox" width="75%" align="center">
+<br />
+<form name="Form1" method="post" action='$appRoot/Core/Entity/search.vm'>
+
+Component <select name=type>
+<option value="">Select one</option>
+<option value="Virtualhost">Virtualhost</option>
+<option value="Context">Context</option>
+</select>
+<input type="text" id="name" name="name" value="$!{name}"><br />
+
+<input type="submit" value="Search">
+</form>
+<br />
+</div>
+<br />
+#if ($type == "HostingPool")
+#set($collection = $view.searchHostingPools($name))
+#set($path = "Core/Pool")
+#elseif ($type == "ApachePool")
+#set($collection = $view.searchApachePools($name))
+#set($path = "Apache/Pool")
+#elseif ($type == "TomcatPool")
+#set($collection = $view.searchTomcatPools($name))
+#set($path = "Tomcat/Pool")
+#elseif ($type == "ApacheWorker")
+#set($collection = $view.searchApacheWorkers($name))
+#set($path = "Apache/Worker")
+#elseif ($type == "TomcatWorker")
+#set($collection = $view.searchTomcatWorkers($name))
+#set($path = "Tomcat/Worker")
+#elseif ($type == "Hardware")
+#set($path = "Core/Server")
+#set($collection = $view.searchHardwares($name))
+#elseif ($type == "Apache")
+#set($path = "Apache/Server")
+#set($collection = $view.searchApaches($name))
+#elseif ($type == "Tomcat")
+#set($collection = $view.searchTomcats($name))
+#set($path = "Tomcat/Server")
+#elseif ($type == "Virtualhost")
+#set($path = "Apache/Entity")
+#set($collection = $view.searchVirtualHosts($name))
+#elseif ($type == "Context")
+#set($path = "Tomcat/Entity")
+#set($collection = $view.searchContexts($name))
+#end
+#parse("$path/list.vm")
+#end
+<div class="messagebox" width="75%" align="center">
+<br />
+#if ($name && $type != "")
+<form name="Form2" method="post" action='$appRoot/Core/Entity/search.vm'>
+#else
+<form name="Form1" method="post" action='$appRoot/Core/Entity/search.vm'>
+#end
+Component <select name=type>
+<option value="">Select one</option>
+<option value="Virtualhost">Virtualhost</option>
+<option value="Context">Context</option>
+</select> <input type="text" id="name" name="name" value="$!{name}"><br />
+
+<input type="submit" value="Search">
+</form>
+<br />
+</div>
+
+<br />
+</div>
+
+#parse("/layout/footer.vm")
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/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 = "enviroment")
+#parse("/layout/header.vm")
+<div id="bigright">
+<div class="messagebox">
+<form name="Form" method="post" action='$link.setAction("administration/EnvironmentAction")'>
+<table>
+<tr>
+<td>
+Name:
+</td>
+<td>
+<input type="text" id="envName" name="envName" value="$!{envName}">
+</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="AddEnvironment">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/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/Environment/Delete")
+#set($methodToCall = "DeleteEnvironment")
+#set($buttonName = "Delete")
+#set ($function = "DeleteEnvironment")
+#parse("administration/Environment/list.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,77 @@
+##
+## 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 = "enviroment")
+#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/Environment/details.vm?id=" + SelValue;
+ top.location.href = baseURL;
+
+ return true;
+}
+//-->
+</SCRIPT>
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "ViewEnvironment")
+
+
+#if($id)
+#if ($User.isAllowed("ViewEnvironment") && $methodToCall == "ViewEnvironment")
+#set ($Environment = $view.getEnvironment($id))
+Name: $!{Environment.getName()}<BR>
+Comments: <textarea readonly id="entry" name="entry" cols="40" rows="5"> $!{Environment.getComments()} </textarea><BR>
+#end
+
+#if ($User.isAllowed("UpdateEnvironment"))
+<a href="$appRoot/administration/Environment/update.vm?id=$id">Update this Environment</a> <BR><BR>
+#end
+
+#if ($User.isAllowed("DeleteEnvironment"))
+ <form name="Form" method="post" action='$appRoot/administration/Environment/Delete.do'>
+ <input type=hidden name="methodToCall" value="delete" >
+ <input type=hidden name=id value="$id" >
+ <input type="submit" value="Delete">
+ </form>
+#end
+
+#else
+Environment:
+#set ($envs = $view.getEnvironments())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($env in $envs)
+ <option value="$env.getPk()">$env.getName()
+ #end
+ </select><BR>
+
+
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,52 @@
+##
+## 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/menu/EntityTop.vm")
+#set ($pageSelected = "enviroment")
+#parse("/layout/header.vm")
+
+<div align="center" class="contentbox">
+<br /><br />
+<table width="700" border="0" cellspacing="0" cellpadding="0" >
+<tr valign="top" class="info">
+ <td valign="top" height="25" align="center"> Environments </td>
+</tr>
+<tr valign="top" class="body">
+ <td align="center" valign="top" style="border-right-color:#666666;border-right-style:solid;border-right-width:1px;"><br />
+
+ <a href="#"> Some </a><br />
+ <a href="#"> Environments </a><br />
+ <a href="#"> Go </a><br />
+ <a href="#"> Here? </a><br />
+
+ </td>
+</tr>
+
+</table>
+
+</form>
+
+<br />
+</div>
+
+#set ($collection = $view.getEnvironments())
+#set ($entity = "Environment")
+#parse("/layout/list2.vm")
+
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/menu/global.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/menu/global.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/menu/global.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/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"> Details </option>
+#else
+<option value="$appRoot/Core/Pool/details.vm"> Details </option>
+#end
+#if($User.isAllowed("AddHostingPool"))
+<option value="$appRoot/Core/Pool/add.vm"> Add </option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm"> Update </option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm"> Delete </option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm"> Restart Apache </option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm"> Graceful Apache </option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm"> Stop Apache </option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm"> Start Apache </option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm"> Configtest Apache </option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm"> Deploy Apache Config </option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm"> Restart Tomcat </option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm"> Stop Tomcat </option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm"> Start Tomcat </option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm"> Deploy Tomcat Config </option>
+#end
+</select>
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/menu/indiv.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/menu/indiv.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/menu/indiv.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/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()}"> Details </option>
+#else
+<option value="$appRoot/Core/Pool/details.vm?id=$!{ent.getPk()}"> Details </option>
+#end
+#if($User.isAllowed("UpdateHostingPool"))
+<option value="$appRoot/Core/Pool/update.vm?id=$!{ent.getPk()}"> Update </option>
+#end
+#if($User.isAllowed("DeleteHostingPool"))
+<option value="$appRoot/Core/Pool/delete.vm?id=$!{ent.getPk()}"> Delete </option>
+#end
+#if($User.isAllowed("RestartApache"))
+<option value="$appRoot/Core/Pool/restartapache.vm?id=$!{ent.getPk()}"> Restart Apache </option>
+#end
+#if($User.isAllowed("GracefulApache"))
+<option value="$appRoot/Core/Pool/gracefulapache.vm?id=$!{ent.getPk()}"> Graceful Apache </option>
+#end
+#if($User.isAllowed("StopApache"))
+<option value="$appRoot/Core/Pool/stopapache.vm?id=$!{ent.getPk()}"> Stop Apache </option>
+#end
+#if($User.isAllowed("StartApache"))
+<option value="$appRoot/Core/Pool/startapache.vm?id=$!{ent.getPk()}"> Start Apache </option>
+#end
+#if($User.isAllowed("ConfigtestApache"))
+<option value="$appRoot/Core/Pool/configtestapache.vm?id=$!{ent.getPk()}"> Configtest Apache </option>
+#end
+#if($User.isAllowed("DeployApacheConfig"))
+<option value="$appRoot/Core/Pool/deployapacheconf.vm?id=$!{ent.getPk()}"> Deploy Apache Config </option>
+#end
+#if($User.isAllowed("RestartTomcat"))
+<option value="$appRoot/Core/Pool/restarttomcat.vm?id=$!{ent.getPk()}"> Restart Tomcat </option>
+#end
+#if($User.isAllowed("StopTomcat"))
+<option value="$appRoot/Core/Pool/stoptomcat.vm?id=$!{ent.getPk()}"> Stop Tomcat </option>
+#end
+#if($User.isAllowed("StartTomcat"))
+<option value="$appRoot/Core/Pool/starttomcat.vm?id=$!{ent.getPk()}"> Start Tomcat </option>
+#end
+#if($User.isAllowed("DeployTomcatConfig"))
+<option value="$appRoot/Core/Pool/deploytomcatconf.vm?id=$!{ent.getPk()}"> Deploy Tomcat Config </option>
+#end
+</select>
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/update.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/update.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/update.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Enviroment/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 = "enviroment")
+#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/Environment/update.vm?id=" + SelValue;
+ top.location.href = baseURL;
+
+ return true;
+}
+//-->
+</SCRIPT>
+
+#set ($id = $request.getParameter("id"))
+#set ($methodToCall = "UpdateEnvironment")
+
+#if ($User.isAllowed("UpdateEnvironment") && $methodToCall == "UpdateEnvironment")
+#if($id)
+#set ($Environment = $view.getEnvironment($id))
+<form name="Form" method="post" action='$link.setAction("administration/EnvironmentAction")'>
+<input type="hidden" id="id" name="id" value="$!{id}">
+<input type="hidden" id="methodToCall" name="methodToCall" value="$methodToCall">
+Name: <input type="text" readonly id="envName" name="envName" value="$!{Environment.getName()}"><BR>
+Comments: <textarea id="comments" name="comments" cols="40" rows="5"> $!{Environment.getComments()} </textarea><BR>
+<input type="submit" value="Update">
+
+</form>
+#else
+Environment:
+#set ($envs = $view.getEnvironments())
+ <select name=id onchange='OnChange(this);'>
+ <option value="">Select one
+ #foreach ($env in $envs)
+ <option value="$env.getPk()">$env.getName()
+ #end
+ </select><BR>
+
+#end
+#end
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/File/add.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/add.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/add.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/add.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: add.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">
+<form name="Form" method="post" action='$link.setAction("administration/FileAction")'>
+<table>
+<tr>
+<td>
+Name:
+</td>
+<td>
+<input type="text" id="name" name="name" value="$!{name}">
+</td>
+</tr>
+<tr>
+<td>
+Content:
+</td>
+<td>
+<textarea id="content" name="content" cols="90" rows="30">$!{content}</textarea>
+</td>
+</tr>
+<tr>
+<td>
+Path:
+</td>
+<td>
+<input type="text" id="path" name="path" value="$!{path}">
+</td>
+</tr>
+<tr>
+<td>
+Descriptor:
+</td>
+<td>
+<input type="text" id="descriptor" name="descriptor" value="$!{descriptor}">
+</td>
+</tr>
+</table>
+<input type="hidden" name="methodToCall" value="AddFile">
+<input type="submit" value="submit">
+</form>
+</div>
+</div>
+#parse("/layout/footer.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/File/delete.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/delete.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/delete.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/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/File/Delete")
+#set($methodToCall = "DeleteFile")
+#set($buttonName = "Delete")
+#set ($function = "DeleteFile")
+#parse("administration/File/list.vm")
+
+
Added: incubator/lokahi/lokahi/trunk/src/www/Core/File/details.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/details.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/details.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/details.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,77 @@
+##
+## 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 = "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/Core/File/details.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("ViewFile")) <BR>
+Name: "$!{file.getName()}" <BR>
+Path: "$!{file.getPath()}" <BR>
+Descriptor: "$!{file.getDescriptor()}" <BR>
+Content: <textarea id="content" name="content" READONLY cols="90" rows="30">$!{file.getContent()}</textarea><BR>
+#end
+
+#if ($User.isAllowed("UpdateFile"))
+<BR><BR><a href="$appRoot/administration/File/update.vm?id=$id">Update this File</a> <BR><BR>
+#end
+
+#if ($User.isAllowed("DeleteFile"))
+ <form name="Form" method="post" action='$appRoot/administration/File/Delete.do'>
+ <input type=hidden name="methodToCall" value="delete" >
+ <input type=hidden name=id value="$id" >
+ <input type="submit" value="Delete">
+ </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/File/list.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/File/list.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/File/list.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/File/list.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,54 @@
+##
+## 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 = "file")
+#parse("/layout/header.vm")
+
+#set ($collection = $view.getFiles())
+#set ($entity = "File")
+#set ($addFunction = "Add$entity")
+#set ($deleteFunction = "Delete$entity")
+<div id="center">
+<div class="messagebox">
+#if ($User.isAllowed($addFunction))
+<A href="$appRoot/administration/$entity/add.vm">Add</a>
+#end
+#if ($User.isAllowed($deleteFunction))
+<form name="Form" method="post" action='$link.setAction("administration/$entity/Delete")'>
+<input type=hidden name="methodToCall" value="delete" >
+#end
+<UL>
+#if ($collection.isEmpty())
+No $entity to list.
+#end
+#foreach($item in $collection)
+<li>
+#if ($User.isAllowed($deleteFunction))
+<input type=checkbox name=id value="$item.getPk()" >
+#end
+<A href="$appRoot/administration/$entity/details.vm?id=$item.getPk()">$item.getName() - $!{item.getDescriptor()}</a></li>
+#end
+</ul>
+#if ($User.isAllowed($deleteFunction))
+<input type="submit" value="Delete">
+</form>
+#end
+</div></div>
+#parse("/layout/footer.vm")
+
+