From lokahi-commits-return-29-apmail-incubator-lokahi-commits-archive=incubator.apache.org@incubator.apache.org Mon Apr 10 17:11:34 2006 Return-Path: Delivered-To: apmail-incubator-lokahi-commits-archive@locus.apache.org Received: (qmail 17341 invoked from network); 10 Apr 2006 17:11:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Apr 2006 17:11:34 -0000 Received: (qmail 49372 invoked by uid 500); 10 Apr 2006 17:11:34 -0000 Delivered-To: apmail-incubator-lokahi-commits-archive@incubator.apache.org Received: (qmail 49357 invoked by uid 500); 10 Apr 2006 17:11:34 -0000 Mailing-List: contact lokahi-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lokahi-dev@incubator.apache.org Delivered-To: mailing list lokahi-commits@incubator.apache.org Delivered-To: moderator for lokahi-commits@incubator.apache.org Received: (qmail 71536 invoked by uid 99); 10 Apr 2006 16:22:42 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Message-ID: <20060410162153.92471.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r392982 [22/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 -0000 To: lokahi-commits@incubator.apache.org From: toback@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/search.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/search.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/search.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/search.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,111 @@ +## +## 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 = "Pool") +#set($focus = "Form1.name.focus();") +#parse("/layout/header.vm") + + +
+

+
+ + + + + +
Infrastructure - Pool - Search
+
+#if ($name && $type != "") +
+
+
+ +Component +
+ + +
+
+
+
+#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 +
+
+#if ($name && $type != "") +
+#else + +#end +Component
+ + +
+
+
+ +
+
+ +#parse("/layout/footer.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/startapache.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/startapache.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/startapache.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/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 = "HostingPool/SubmitJobAction") +#set($methodToCall = "StartApache") +#set($buttonName = "Start Apache") +#set ($function = "StartApache") +#set ($currentPage = "$appRoot/Core/Pool/startapache.vm") +#parse("/Core/Pool/list.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/starttomcat.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/starttomcat.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/starttomcat.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/starttomcat.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: starttomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +#set($actionLink = "HostingPool/SubmitJobAction") +#set($methodToCall = "StartTomcat") +#set($buttonName = "Start Tomcat") +#set ($function = "StartTomcat") +#set($currentPage = "$appRoot/Core/Pool/starttomcat.vm") +#parse("Core/Pool/list.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stopapache.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stopapache.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stopapache.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/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 = "HostingPool/SubmitJobAction") +#set($methodToCall = "StopApache") +#set($buttonName = "Stop Apache") +#set ($function = "StopApache") +#set ($currentPage = "$appRoot/Core/Pool/stopapache.vm") +#parse("Core/Pool/list.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stoptomcat.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stoptomcat.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stoptomcat.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/stoptomcat.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: stoptomcat.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +#set($actionLink = "HostingPool/SubmitJobAction") +#set($methodToCall = "StopTomcat") +#set($buttonName = "Stop Tomcat") +#set ($function = "StopTomcat") +#set ($currentPage = "$appRoot/Core/Pool/stoptomcat.vm") +#parse("Core/Pool/list.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/update.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/update.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/update.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/update.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,108 @@ +## +## 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 = "Pool") +#parse("/layout/header.vm") +
+

+ +
+ + + + +
Infrastructure - Hosting Pool +
+
+ + +#set ($id = $request.getParameter("id")) +#set ($methodToCall = "UpdateHostingPool") + + +#if ($User.isAllowed("UpdateHostingPool") && $methodToCall == "UpdateHostingPool") +#if ($id) +#set ($hp = $view.getHostingPool($id)) +
+ + + +Name:
+TomcatPool: +#set ($tps = $view.getTomcatPools()) +#if ($hp.getTomcatPool()) +#if ($tps.remove($hp.getTomcatPool())) + +#end +#end +
+ +Apache Pool: +#set ($aps = $view.getApachePools()) +#if ($hp.getApachePool()) +#if ($aps.remove($hp.getApachePool())) + +#end +#end +
+ +#set ($envs = $view.getEnvironments()) +#if($hp.getEnv()) +#if($envs.remove($hp.getEnv())) + +#end +#end +Environment:
+ + + +
+#else +Hosting Pool: +#set ($hps = $view.getHostingPools()) +
+#end +#end +
+
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/view.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/view.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/view.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/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/Core/Pool/viewapacheconf.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheconf.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheconf.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheconf.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,63 @@ +## +## 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: viewapacheconf.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") + +
+

+ +
+ + + + +
Infrastructure - Hosting Pool +
+
+ +#if ($request.getParameter("id")) +#set ($id = $request.getParameter("id")) +#end + +
+ +#if ($id) +#set ($apacheWorker = $view.getApacheWorker($id)) + + + +#else +Apache Worker: +#set ($aws = $view.getApacheWorkers()) +
+#end + +
+
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheprop.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheprop.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheprop.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewapacheprop.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,63 @@ +## +## 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: viewapacheprop.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") + +
+

+ +
+ + + + +
Infrastructure - Hosting Pool +
+
+ +#if ($request.getParameter("id")) +#set ($id = $request.getParameter("id")) +#end + +
+ +#if ($id) +#set ($apacheWorker = $view.getApacheWorker($id)) + + + +#else +Apache Worker: +#set ($aws = $view.getApacheWorkers()) +
+#end + +
+
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewserverxml.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewserverxml.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewserverxml.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Pool/viewserverxml.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,58 @@ +## +## 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: viewserverxml.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") + +
+

+ +
+ + + + +
Infrastructure - Hosting Pool +
+
+#if ($request.getParameter("id")) +#set ($id = $request.getParameter("id")) +#end +
+#if ($id) +#set ($tomcatWorker = $view.getTomcatWorker($id)) + + +#else +Tomcat Worker: +#set ($tws = $view.getTomcatWorkers()) +
+#end +
+
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/add.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/add.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/add.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/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/menu/ProjectTop.vm") +#set ($letter = "Add") +#parse("/layout/header.vm") + +#parse("/Core/Project/availtemplates.vm") + + + +
+
+ + +
+ + + + + +
+Name: + + +
+ + + +
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/availtemplates.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/availtemplates.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/availtemplates.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/availtemplates.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: availtemplates.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +
+
+Available Templates:
+Generic VirtualHost
+DMZ Project
+Add Intranet Site
+


+
+
+ Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/delete.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/delete.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/delete.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/delete.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: delete.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 ($projectId = $request.getParameter("project")) +#set($actionLink = "administration/project/Delete") +#set($methodToCall = "DeleteProject") +#set($buttonName = "Delete") +#set ($function = "DeleteProject") +##parse("administration/project/list.vm") + +##set ($id = $request.getParameter("id")) +#set($project = $User.getProject($projectId)) + + +#if ($User.isAllowed($function) && $methodToCall == "DeleteProject") + + + + + + +Are you sure you want to delete $!{project.getName()} +
+
+ + + + + +
+
+ #submit_button("submit" "< Back" "button" "") +
+
+
+ + + #submit_button("Submit" "Delete" "button" "") +
+
+#end + +
+
+#parse("/layout/footer.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,299 @@ +## +## 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(! $headerParsed) +#set ($menu = "/layout/menu/ProjectTop.vm") +#parse("/layout/header.vm") + +#set ($projectId = $request.getParameter("projectId")) +#set($project = $User.getProject($projectId)) +#if ($request.getParameter("e")) +#set ($envId = $request.getParameter("e")) +#end +#end +
+

+ +
+#set($vhosts = $project.getVirtualHosts()) +#set($projectContexts = $project.getTomcatContexts()) + +
+ +
+ + + + + +
Project - $!{project.getName()}   + #foreach ($env in $project.getEnvs()) + $env.getName()   + #end + All   + +#if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject", $projectId) || $User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject", $projectId) || $User.isAllowed("DeleteProject", $projectId)) + +#end +
+
+#set($c = 1) +#if( $vhosts && ! $vhosts.isEmpty()) + + + + + + + + + + + #foreach ($vhost in $vhosts) + #if (!$envId || $vhost.getEnvId().toString() == $envId) + + + #set($ap = $vhost.getApachePool()) + + + + + #set ($contexts = $vhost.getContexts()) + #if( $contexts && ! $contexts.isEmpty()) + #set($cc = 1) + #foreach ($context in $contexts) + + #if($User.isAllowed("ViewContext",$projectId, $context) || $User.isAllowed("ReloadContext",$projectId, $context) || $User.isAllowed("StopContext",$projectId, $context) || $User.isAllowed("StartContext",$projectId, $context) || $User.isAllowed("UpdateContext",$projectId, $context) || $User.isAllowed("DeleteContext",$projectId, $context) || $User.isAllowed("UndeployContext",$projectId, $context) || $User.isAllowed("RedeployContext",$projectId, $context) || $User.isAllowed("InstallContext",$projectId, $context) || $User.isAllowed("ListContext",$projectId, $context) || $User.isAllowed("SessionsOfContext",$projectId, $context) || $User.isAllowed("StatusOfContext",$projectId, $context)) + #set ($tomcatPool = $context.getTomcatPool()) + #if (!$context.hasTomcatPool()) + + + + + #else + + + + + + #end + + #end + #if ($cc == 1) + #set($cc=2) + #else + #set($cc=1) + #end + #end ##of all contexts + #end ##of env if + #end ## of all vhosts + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end +#end ## end of IF VHOST. +
+ Apache - Tomcat applications + +
Virtual Host Context Pool
$!{vhost.getName()}   $!{ap.getName()} + #if ($User.isAllowed("AddContext", $projectId) || $User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject", $projectId) || $User.isAllowed("DeleteVirtualHost", $projectId, $vhost) || $User.isAllowed("ViewVirtualHost", $projectId, $vhost) || $User.isAllowed("UpdateVirtualHost", $projectId, $vhost)) + + #end +
  $!{context.getName()} Not assigned to a Pool
  $!{context.getName()} + $!{tomcatPool.getName()}
+
+ + + + #contextDropBox($User $project $context $vhost) +
+
+#set ($temp = $projectContexts.clone()) +#foreach ($context in $temp) + #if($envId && $context.getEnvId().toString() != $envId) + + #end +#end +#if( $projectContexts && ! $projectContexts.isEmpty()) + + + + + + + + + + + #set($c = 1) + #foreach ($context in $projectContexts) + #set ($count = 1) + #set ($tomcatPool = $context.getTomcatPool()) + #if (!$context.hasTomcatPool()) + + + + + #else + + + + #end + + + + #set ($count = $math.add($count, 1)) + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end ##of all servers for this context +#end ## of all contexts +
+ Tomcat applications + +
Context Environment Worker
$!{context.getName()} $!{context.getEnv().getName()} Not assigned to a Pool
$!{context.getName()} $!{context.getEnv().getName()} + #foreach ($tomcatWorker in $tomcatPool.getTomcatWorkers()) + $!{tomcatWorker.getName()}
+ #end +
+ + + + #contextDropBoxWOvhost($User $project $context) +
+
+ + +#set ($jobpool = $project.getJobPools()) + + + + + + + + + +#if(! $jobpool || $jobpool.isEmpty()) + + + +#else +#set($c = 1) + #foreach($job in $jobpool) + + + + + + + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end +#end +
+Recent Jobs +
User Action Time Status
No jobs for this project
$!{job.getUser().getFullName()} $job.getFunction().getName() $job.getStartTime() Details +
+
+ + + #set ($users = $project.getUsers()) + + + + + + + + + #if(! $users || $users.isEmpty()) + + + + #else + #set($c = 1) + #foreach($u in $users) + + + + + + + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end + #end +
+ Users +
User Name First Name Last Name
No users assigned to this project
$!{u.getName()} $!{u.getFirstName()} $!{u.getLastName()}
+ + + + + + + +
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/index.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/index.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/index.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/index.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: index.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +#if ($request.getParameter("Letter")) +#set ($letter = $request.getParameter("Letter")) +#end +#if($letter) + #if($letter.equals("all")) + #set ($recentProjects = $User.getVisibleProjects()) + #elseif($letter.equals("Last5")) + #set ($recentProjects = $User.getRecentProjects()) + #else + #set ($recentProjects = $User.getProjects($letter)) + #end +#else + #set ($recentProjects = $User.getRecentProjects()) +#end +#set ($menu = "/layout/menu/ProjectTop.vm") +#parse("/layout/header.vm") +
+

+
+ + +#if ($letter && $letter != "Last5") + +#else + +#end + + +
Projects - $letterProjects - Last 10
+
+#set($projectsInCallingVm = $recentProjects) +#parse("/Core/Project/list.vm") +
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/list.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/list.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/list.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/list.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,48 @@ +## +## 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($c = 1) +#if((! $projectsInCallingVm) || $projectsInCallingVm.isEmpty()) + +#else + #foreach( $project in $projectsInCallingVm ) + + + + + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end +#end +
ProjectEnvironment
+ #if($letter == "all") No projects + #elseif ($letter == "Last5") No Recent Projects + #elseif ($letter == "Search") No Projects found + #elseif ($letter) No Projects starting with $letter + #else No Projects + #end +
$project.getName() + #foreach ($env in $project.getEnvs()) + $env.getName()   + #end +
+ Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/my.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/my.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/my.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/my.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,22 @@ +## +## 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: my.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +#set ($menu = "/layout/menu/ProjectTop.vm") +#set ($letter = "My") +#parse("/Core/Project/user.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/search.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/search.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/search.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/search.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,89 @@ +## +## 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/ProjectTop.vm") +#set ($letter = "Search") +#set($focus = "Form1.name.focus();") +#parse("/layout/header.vm") + + +
+

+
+ + + + + +
Projects - Search
+
+#if ($name) +
+
+
+ +Project name
+ + +
+
+
+
+#if ($type == "beginsWith") +#set($projectsInCallingVm = $view.getProjectBeginsWith($name)) +#elseif ($type == "endsWith") +#set($projectsInCallingVm = $view.getProjectEndsWith($name)) +#elseif ($type == "contains") +#set($projectsInCallingVm = $view.getProjectContains($name)) +#else +#set($projectsInCallingVm = $view.getProjectByName($name)) +#end +#parse("/Core/Project/list.vm") + +
+#end + + +
+
+#if ($name) +
+#else + +#end +Project name
+ + +
+
+
+ +
+
+ +#parse("/layout/footer.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Project/user.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Project/user.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Project/user.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/user.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: user.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +#if(!$pageSelected && !$menu) +#set ($pageSelected = "RecentProjects") +#set ($menu = "/layout/menu/HomeTop.vm") +#end +#parse("/layout/header.vm") +
+

+
+ + + + + +
My Projects
+
+##get the user's projects +#set ($projectsInCallingVm = $User.getProjects()) +#parse("/Core/Project/list.vm") +
+
+
+
+#parse("/layout/footer.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/add.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/add.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/add.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/add.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,131 @@ +## +## 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 = "Server") +#parse("/layout/header.vm") +
+

+ +
+ + + + +
Infrastructure - Tomcat Pool +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Hardware Name: + + +
+Physical Location: + + +
+Comments: + + +
+Instance: + +#set ($insts = $view.getInstances()) +#if($hardware.getInstance()) +#if($insts.remove($hardware.getInstance())) + +#end +#end + +
+Environment: + +#set ($envs = $view.getEnvironments()) +#if($hardware.getEnv()) +#if($envs.remove($hardware.getEnv())) + +#end +#end + + +
+Status: Active + + +
+Default IP: + +
+
+Additional IPs (comma seperated): + + +
+ + +
+
+
+
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/confirm.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/confirm.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/confirm.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/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) +
+ +
+$methodToCall +   +$individual.getName() +
+#end + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/delete.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/delete.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/delete.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/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/Hardware/Delete") +#set($methodToCall = "DeleteHardware") +#set($buttonName = "Delete") +#set ($function = "DeleteHardware") +#parse("administration/Hardware/list.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/details.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/details.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/details.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/details.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,111 @@ +## +## 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 = "Server") +#parse("/layout/header.vm") +####################################################### +#if ($request.getParameter("id")) +#set ($id = $request.getParameter("id")) +#end +
+

+
+ + + + + +
Infrastructure - Hardware + + #parse("/Core/Server/menu/global.vm") +
+
+ + +#if ($id) + #set ($hardware = $view.getHardware($id)) + #set ($ent = $hardware) + + + + + + + + + + + + + +#set ($ips = $hardware.getIpAddresses()) +#if($ips.remove($hardware.getDefaultIp())) + +#end +#set ($c = 1) +#foreach($ip in $ips) + +#if ($c == 1) + #set($c=2) +#else + #set($c=1) +#end +#end + +
+ Hardware - $!{hardware.getName()} + + +#if ($ent) +#parse("/Core/Server/menu/indiv.vm") +#end +
Physical Location:$!{hardware.getPhysicalLocation()}
Environment:$!{hardware.getEnv().getName()}
Instance:$!{hardware.getInstance().getName()}
Status:$hardware.getStatus().getName()
Default Ip:$!{hardware.getDefaultIp().getName()}
Additional Ips:
$ip.getName()
Comments:$!{hardware.getComments()}
+ + +#set ($collection = $view.getApacheWorkers($hardware)) +#if( $collection && ! $collection.isEmpty()) +
+#parse("/Apache/Worker/list.vm") +#end ## of all apaches + +#set ($collection = $view.getTomcatWorkers($hardware)) +#if( $collection && ! $collection.isEmpty()) +
+#parse("/Tomcat/Worker/list.vm") +#end ## of all apaches + +#else + Hardware: + #set ($hws = $view.getHardwares()) +
+#end + + +
+ + +
+ +#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/list.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/list.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/list.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/list.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: 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 = "Server") +#parse("/layout/header.vm") +#set ($plf = "true") +#if ($request.getParameter("id")) +#set ($id = $request.getParameter("id")) +#set ($individual = $view.getHardware($id)) +#set ($indivPage = "/Core/Server/confirm.vm") +#else +#set ($collection = $view.getHardwares()) +#end +#end +#set ($entity = "Hardware") +#set ($usesEnv = "true") +#set ($path = "Core/Server") +#if (! $currentPage) +#set ($currentPage = "$appRoot/Core/Server/list.vm") +#end + +#parse("/layout/list2.vm") +#if ($plf) +#parse("/layout/footer.vm") +#end + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/global.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/global.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/global.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/global.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: global.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/indiv.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/indiv.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/indiv.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/menu/indiv.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: indiv.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/search.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/search.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/search.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/search.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,108 @@ +## +## 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 = "Server") +#set($focus = "Form1.name.focus();") +#parse("/layout/header.vm") + + +
+

+
+ + + + + +
Infrastructure - Server - SearchView Hardware   View Apache   View Tomcat
+
+#if ($name && $type != "") +
+
+
+ +Component +
+ + +
+
+
+
+#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 +
+
+#if ($name && $type != "") +
+#else + +#end +Component
+ + +
+
+
+ +
+
+ +#parse("/layout/footer.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/Server/update.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/Server/update.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/Server/update.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/Server/update.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,145 @@ +## +## 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") + + +
+
+#if ( $request.getParameter("id")) +#set ($id = $request.getParameter("id")) +#end +#set ($methodToCall = "UpdateHardware") +#if($id) +#set ($hardware = $view.getHardware($id)) + +#if ($User.isAllowed("UpdateHardware") && $methodToCall == "UpdateHardware") +
+ + + +Name:
+Physical Location:
+ +#set ($envs = $view.getEnvironments()) +#if($hardware.getEnv()) +#if($envs.remove($hardware.getEnv())) + +#end +#end +Environment:
+ +#set ($insts = $view.getInstances()) +#if($hardware.getInstance()) +#if($insts.remove($hardware.getInstance())) + +#end +#end +Instance:
+ +Status:
+ +#set ($ips = $view.getIps()) +#if($hardware.getDefaultIp()) +#if($ips.remove($hardware.getDefaultIp())) + +#end +#end +Default Ip:
+Additional Ips (comma seperated): +#set ($ips = $hardware.getIpAddresses()) +#if($ips.remove($hardware.getDefaultIp())) + +#end +#foreach($ip in $ips) +#if ($additionalIps) +#set($additionalIps="$additionalIps,$ip.getName()") +#else +#set($additionalIps="$ip.getName()") +#end +#end + +
+Comments:
+
+ +
+#else + +Name: $hardware.getName()
+Location: $hardware.getPhysicalLocation()
+Environment: $hardware.getEnv().getName()
+Instance: $hardware.getInstance().getName()
+Status: $hardware.getStatus().getName()
+Default Ip: $hardware.getDefaultIp().getName()
+Additional Ips:
+#foreach($ip in $hardware.getIpAddresses()) +$ip.getName()
+#end +Comments: $hardware.getComments()
+ +#end + +

+#else + Hardware: + #set ($hws = $view.getHardwares()) +
+#end +
+#parse("/layout/footer.vm") + Added: incubator/lokahi/lokahi/trunk/src/www/Core/State/add.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/State/add.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/State/add.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/State/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 = "state") +#parse("/layout/header.vm") +
+
+
+ + + + + + + + + +
+Name: + + +
+Color: + + +
+ + +
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/State/delete.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/State/delete.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/State/delete.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/State/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/State/Delete") +#set($methodToCall = "DeleteState") +#set($buttonName = "Delete") +#set ($function = "DeleteState") +#parse("administration/State/list.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/State/details.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/State/details.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/State/details.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/State/details.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,80 @@ +## +## 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 = "state") +#parse("/layout/header.vm") +
+
+ + + +#set ($id = $request.getParameter("id")) +#set ($methodToCall = "UpdateState") + +#if($id) + +#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateState") +#set ($state = $view.getState($id)) +Name: $!{state.getName()}
+Color to Display as: $!{state.getColor()}
+#end + + +#if ($User.isAllowed("UpdateState") && $methodToCall == "UpdateState") +
+Update this State
+
+#end + +#if ($User.isAllowed("DeleteState")) +
+ + + +
+#end + +#else +State: +#set ($states = $view.getStates()) +
+ +#end + +
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/State/list.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/State/list.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/State/list.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/State/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 = "state") +#parse("/layout/header.vm") + +#set ($collection = $view.getStates()) +#set ($entity = "State") +#parse("/layout/list.vm") + +#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/State/update.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/State/update.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/State/update.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/State/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 = "state") +#parse("/layout/header.vm") +
+
+ + + +#set ($id = $request.getParameter("id")) +#set ($methodToCall = "UpdateState") +#if ($User.isAllowed($methodToCall) && $methodToCall == "UpdateState") +#if($id) +#set ($state = $view.getState($id)) +
+ + + +Name:
+Color to Display as:
+ + + +
+#else +State: +#set ($states = $view.getStates()) +
+ +#end +#end +
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/User/add.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/User/add.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/User/add.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/User/add.vm Mon Apr 10 09:19:33 2006 @@ -0,0 +1,92 @@ +## +## 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/UserTop.vm") +#set ($pageSelected = "User") +#parse("/layout/header.vm") +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+User Name: + + +
+First Name: + + +
+Last Name: + + +
+Email Address: + + +
+Comments: + + +
+Job Title: + + +
+Projects: + +
+ + +
+
+
+#parse("/layout/footer.vm") + + Added: incubator/lokahi/lokahi/trunk/src/www/Core/User/addAdmin.vm URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/Core/User/addAdmin.vm?rev=392982&view=auto ============================================================================== --- incubator/lokahi/lokahi/trunk/src/www/Core/User/addAdmin.vm (added) +++ incubator/lokahi/lokahi/trunk/src/www/Core/User/addAdmin.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: addAdmin.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $ +## +#set ($menu = "/layout/menu/UserTop.vm") +#set ($pageSelected = "admin") +#parse("/layout/header.vm") + +#if ($request.getParameter("seluser")) +#set ($selUserId = $request.getParameter("seluser")) +#end + +#if ($request.getParameter("tryuser")) +#set ($tryuser = $request.getParameter("tryuser")) +#set ($user = $User.getUser($tryuser)) +#set ($selUserId = $user.getPk()) +#end + + + + +
+
+
+ +
+ #if($tryuser) + $tryuser + + #set($user = $User.getUser($tryuser)) + #if ($user) + + #end + #else + User ID:  +
+ + #end +
+#if ($tryuser) +#if ($User.isAllowed("AddUserToProject")) + #set ($functions = $view.getFunctions()) + #foreach($function in $functions) + #if($User.isAllowed($function) || $User.getPk() == 1) + #if($user && $user.isAllowed($function)) + $function.getName() 
+ #else + $function.getName() 
+ #end + #end + #end + + +#end +#end + +
+
+
+#parse("/layout/footer.vm") +