|
From: Wolfgang W. <wo...@us...> - 2008-07-14 10:47:29
|
Update of /cvsroot/cobricks/cobricks2/web/ADMIN/org.cobricks.core In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16761/web/ADMIN/org.cobricks.core Modified Files: comm.html.en db.html.en index.html.en scheduler.html.en Log Message: Index: index.html.en =================================================================== RCS file: /cvsroot/cobricks/cobricks2/web/ADMIN/org.cobricks.core/index.html.en,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- index.html.en 7 Dec 2006 13:29:22 -0000 1.1 +++ index.html.en 14 Jul 2008 10:47:24 -0000 1.2 @@ -1,23 +1,22 @@ -#parse ( "/ADMIN/pageheader.html" ) +$portalPresenter.parse("/ADMIN/pageheader.html",$portalRequest) -<em><a href="/ADMIN/index.html">Admin</a> - -<a href="/ADMIN/org.cobricks.core/index.html">Core Component</a></em> +<em><a href="$contextPath/ADMIN/index.html">Admin</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/index.html">Core Component</a></em> <h1>Core Component</h1> -<h3><a href="properties.html">Properties</a></h3> +<h3><a href="$contextPath/ADMIN/org.cobricks.core/properties.html">Properties</a></h3> -<h3><a href="db.html">Database Access</a></h3> +<h3><a href="$contextPath/ADMIN/org.cobricks.core/db.html">Database Access</a></h3> <p>Database Version: $coreManager.getDBAccess().getDBInfo()<br> Database URI: ${coreManager.getProperty("db.jdbc.uri")}</p> -<h3><a href="scheduler.html">Scheduler</a></h3> - -<h3><a href="comm.html">Component Communication</a></h3> +<h3><a href="$contextPath/ADMIN/org.cobricks.core/scheduler.html">Scheduler</a></h3> +<h3><a href="$contextPath/ADMIN/org.cobricks.core/comm.html">Component Communication</a></h3> -#parse ( "/ADMIN/pagefooter.html" ) +$portalPresenter.parse("/ADMIN/pagefooter.html",$portalRequest) Index: db.html.en =================================================================== RCS file: /cvsroot/cobricks/cobricks2/web/ADMIN/org.cobricks.core/db.html.en,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- db.html.en 7 Dec 2006 13:29:22 -0000 1.1 +++ db.html.en 14 Jul 2008 10:47:24 -0000 1.2 @@ -1,9 +1,9 @@ -#parse ( "/ADMIN/pageheader.html" ) +$portalPresenter.parse("/ADMIN/pageheader.html",$portalRequest) -<em><a href="/ADMIN/index.html">Admin</a> - -<a href="/ADMIN/org.cobricks.core/index.html">Core Component</a> - -<a href="/ADMIN/org.cobricks.core/db.html">Database Access</a></em> +<em><a href="$contextPath/ADMIN/index.html">Admin</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/index.html">Core Component</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/db.html">Database Access</a></em> <h1>Database Access</h1> @@ -18,19 +18,31 @@ <p> -<p>TBD: show schema ... +<p>Tables:<br> +#set ( $l = $coreManager.getDBAccess().getTables()) +#set ( $flag = 0 ) +#foreach ($tname in $l) +#if ( $flag == 1 ) +, +#end +<a href="db-schema.html?tname=$tname">$tname</a> +#set ($flag = 1) +#end + +<p> #set ( $cmd = "$!cmd" ) #if ($cmd == "dbquerydoit") <p><b>Results of query "$sqlquery":</b><br> -#foreach ($row in $coreManager.getDBAccess().sqlQuery($sqlquery)) +#foreach ($row in $corePresenter.sqlQuery($sqlquery)) $corePresenter.formatDBRow($row)<br> #end #end #if ($cmd == "dbupdatedoit") <p><b>Performing update "$sqlquery"</b><br> -$coreManager.getDBAccess().sqlExecute($sqlquery) +#set ($res = $!corePresenter.sqlExecute("$!sqlquery")) +<div class="error">$!res</div> #end <p> @@ -51,5 +63,4 @@ <input type="submit" name="submit" value="Perform Update"> </form> - -#parse ( "/ADMIN/pagefooter.html" ) +$portalPresenter.parse("/ADMIN/pagefooter.html",$portalRequest) Index: scheduler.html.en =================================================================== RCS file: /cvsroot/cobricks/cobricks2/web/ADMIN/org.cobricks.core/scheduler.html.en,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- scheduler.html.en 7 Dec 2006 13:29:23 -0000 1.1 +++ scheduler.html.en 14 Jul 2008 10:47:24 -0000 1.2 @@ -1,16 +1,50 @@ -#parse ( "/ADMIN/pageheader.html" ) +$portalPresenter.parse("/ADMIN/pageheader.html",$portalRequest) -<em><a href="/ADMIN/index.html">Admin</a> - -<a href="/ADMIN/org.cobricks.core/index.html">Core Component</a> - -<a href="/ADMIN/org.cobricks.core/scheduler.html">Scheduler</a></em> +<em><a href="$contextPath/ADMIN/index.html">Admin</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/index.html">Core Component</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/scheduler.html">Scheduler</a></em> <h1>Scheduler</h1> -TBD +#set ( $sh = $coreManager.getSchedulerHandler() ) +#if ("$!startTask"!="") +#set ( $tmps = $sh.startThread("$startTask") ) +<p><div class="success">Task $!startTask started.</div></p> +#end +<p>The scheduler has to configured by editing / extending the platform +properties, e.g. +<pre> + scheduler.task.X.time=cron:*,*,*,*,* + scheduler.task.X.class=org.cobricks.item.RSSImportTask + scheduler.task.X.args=argument1,argument2 +</pre> +</p> -#parse ( "/ADMIN/pagefooter.html" ) +<p>In the following we show all property entries beginning +with 'scheduler.':</p> +<table border="0"> +#foreach( $i in $corePresenter.getSortedPropertyNames("scheduler.") ) +<tr><td><em>$i</em></td><td> </td><td>$coreManager.getProperty($i)</td> +</tr> +#end +</table> + +<p>To explicitly start sheduled tasks press the button for the +required task.</p> + +<ul> +#foreach ( $id in $sh.getScheduleIds() ) +<li><b>$id</b> - <a href="scheduler.html?startTask=$id">start task</a><br> + $sh.getSchedule($id)<br> + $sh.getScheduleClass($id)<br> + $sh.getScheduleArgs($id) +#end +</ul> + + +$portalPresenter.parse("/ADMIN/pagefooter.html",$portalRequest) Index: comm.html.en =================================================================== RCS file: /cvsroot/cobricks/cobricks2/web/ADMIN/org.cobricks.core/comm.html.en,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- comm.html.en 7 Dec 2006 13:29:21 -0000 1.1 +++ comm.html.en 14 Jul 2008 10:47:24 -0000 1.2 @@ -1,9 +1,9 @@ -#parse ( "/ADMIN/pageheader.html" ) +$portalPresenter.parse("/ADMIN/pageheader.html",$portalRequest) -<em><a href="/ADMIN/index.html">Admin</a> - -<a href="/ADMIN/org.cobricks.core/index.html">Core Component</a> - -<a href="/ADMIN/org.cobricks.core/comm.html">Component Communication</a></em> +<em><a href="$contextPath/ADMIN/index.html">Admin</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/index.html">Core Component</a> - +<a href="$contextPath/ADMIN/org.cobricks.core/comm.html">Component Communication</a></em> <h1>Component Communication</h1> @@ -24,8 +24,4 @@ #end -#parse ( "/ADMIN/pagefooter.html" ) - - - - +$portalPresenter.parse("/ADMIN/pagefooter.html",$portalRequest) |