added view to show loaded components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499098 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -285,6 +285,7 @@ WebtoolsUseSoftRef=Use Soft Ref ?
|
||||
WebtoolsUseTransaction=Use transaction
|
||||
WebtoolsVerboseLogLevel=Verbose
|
||||
WebtoolsVerboseLogLevelTooltip=The Verbose Level designates fine-grained informational events that are most useful to debug an application.
|
||||
WebtoolsViewComponents=View Components
|
||||
WebtoolsViewData=view data
|
||||
WebtoolsViewLog=View Log
|
||||
WebtoolsViewRelations=View Relations
|
||||
|
||||
@@ -374,6 +374,12 @@ under the License.
|
||||
<response name="success" type="view" value="EntityPerformanceTest"/>
|
||||
</request-map>
|
||||
|
||||
<!-- Misc requests -->
|
||||
<request-map uri="ViewComponents">
|
||||
<security https="true" auth="true"/>
|
||||
<response name="success" type="view" value="ViewComponents"/>
|
||||
</request-map>
|
||||
|
||||
<!-- EntitySQL requests -->
|
||||
<request-map uri="EntitySQLProcessor">
|
||||
<security https="true" auth="true"/>
|
||||
@@ -547,5 +553,7 @@ under the License.
|
||||
<view-map name="EntityExportAll" page="component://webtools/widget/EntityScreens.xml#EntityExportAll" type="screen"/>
|
||||
<view-map name="EntityImportDir" page="component://webtools/widget/EntityScreens.xml#EntityImportDir" type="screen"/>
|
||||
<view-map name="EntityImport" page="component://webtools/widget/EntityScreens.xml#EntityImport" type="screen"/>
|
||||
|
||||
<view-map name="ViewComponents" page="component://webtools/widget/MiscScreens.xml#ViewComponents" type="screen"/>
|
||||
<!-- end of view mappings -->
|
||||
</site-conf>
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
<#--
|
||||
Copyright 2001-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.
|
||||
-->
|
||||
|
||||
<#assign components = Static["org.ofbiz.base.component.ComponentConfig"].getAllComponents()?if_exists/>
|
||||
<div class="head3">Loaded Components:</div>
|
||||
<#if (components?has_content)>
|
||||
<table cellpadding="2" cellspacing="0" border="1" width="100%">
|
||||
<tr>
|
||||
<td><div class="tableheadtext">Name</div></td>
|
||||
<td><div class="tableheadtext">Path</div></td>
|
||||
<td><div class="tableheadtext">Enabled</div></td>
|
||||
<td colspan="3"><div class="tableheadtext">WebApps (Name, Mount, Path)</div></td>
|
||||
</tr>
|
||||
<#list components as component>
|
||||
<tr>
|
||||
<td><div class="tabletext">${component.getComponentName()?if_exists}</div></td>
|
||||
<td><div class="tabletext">${component.getRootLocation()?if_exists}</div></td>
|
||||
<td><div class="tabletext">${component.enabled()?string?if_exists}</div></td>
|
||||
<#assign webinfos = component.getWebappInfos()?if_exists/>
|
||||
<#if (webinfos?has_content)>
|
||||
<td>
|
||||
<table cellpadding="2" cellspacing="0" border="0" width="100%">
|
||||
<#list webinfos as webinfo>
|
||||
<tr>
|
||||
<td><div class="tabletext">${webinfo.getName()?if_exists}</div></td>
|
||||
<td><div class="tabletext">${webinfo.getContextRoot()?if_exists}</div></td>
|
||||
<td><div class="tabletext">${webinfo.getLocation()?if_exists}</div></td>
|
||||
</tr>
|
||||
</#list>
|
||||
</table>
|
||||
</td>
|
||||
<#else>
|
||||
<td> </td>
|
||||
</#if>
|
||||
</#list>
|
||||
</table>
|
||||
<#else>
|
||||
<div class="tabletext">No components loaded.</div>
|
||||
</#if>
|
||||
@@ -45,6 +45,7 @@ under the License.
|
||||
<ul>
|
||||
<li><a href="<@ofbizUrl>/FindUtilCache</@ofbizUrl>" class="linktext">${uiLabelMap.WebtoolsCacheMaintenance}</a>
|
||||
<li><a href="<@ofbizUrl>/LogConfiguration</@ofbizUrl>" class="linktext">${uiLabelMap.WebtoolsAdjustDebuggingLevels}</a>
|
||||
<li><a href="<@ofbizUrl>/ViewComponents</@ofbizUrl>" class="linktext">${uiLabelMap.WebtoolsViewComponents}</a>
|
||||
</ul>
|
||||
<#if security.hasPermission("ENTITY_MAINT", session)>
|
||||
<li><div class="tabletext">${uiLabelMap.WebtoolsEntityEngineTools}</div>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<!--
|
||||
~ Copyright 2001-2007 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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="ViewComponents">
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonWebtoolsDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific><html><html-template location="component://webtools/webapp/webtools/component/viewComponents.ftl"/></html></platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
Reference in New Issue
Block a user