Moved the "birt" component out of framework to specialpurpose; moved all the birt reports from the applications to the birt component itself, where the application webapps are overriden to inject the reports; the end result is the same but since all these birt reports are simply a proof of concepts that cannot be used in production (for example they use hardcoded userlogin for authentication) the birt component should be probably disabled by default (but this will be discussed in the dev list).
Now it will be very easy to extract the birt component (for OFBiz Extras) or to disable it when deploying to production or when interested in sparing some hardware resources. I did some cursory tests but since the work has been challenging and rather complex I would appreciate testing help and also reviews to finds chunks of code that I could have missed and that could be moved out as well. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1361130 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you 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.
|
||||
-->
|
||||
|
||||
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="EditMail" type="single" target="sendBirtMail">
|
||||
<field name="sendFrom"><text/></field>
|
||||
<field name="sendTo"><text/></field>
|
||||
<field name="subject"><text/></field>
|
||||
<field name="birtReportLocation" tooltip="Example is component://example/webapp/birt/report/example.rptdesign"><text/></field>
|
||||
<field name="birtContentType">
|
||||
<drop-down>
|
||||
<option key="text/html" description="text/html"/>
|
||||
<option key="application/pdf" description="application/pdf"/>
|
||||
<option key="application/postscript" description="application/postscript"/>
|
||||
<option key="application/vnd.ms-excel" description="application/vnd.ms-excel"/>
|
||||
<option key="application/vnd.ms-word" description="application/vnd.ms-word"/>
|
||||
<option key="application/vnd.ms-powerpoint" description="application/vnd.ms-powerpoint"/>
|
||||
<option key="application/vnd.oasis.opendocument.text" description="application/vnd.oasis.opendocument.text"/>
|
||||
<option key="application/vnd.oasis.opendocument.spreadsheet" description="application/vnd.oasis.opendocument.spreadsheet"/>
|
||||
<option key="application/vnd.oasis.opendocument.presentation" description="application/vnd.oasis.opendocument.presentation"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="attachmentName"><text/></field>
|
||||
<field name="sendButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
</forms>
|
||||
@@ -1,113 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you 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://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="main">
|
||||
<section>
|
||||
<actions>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<label style="h3" text="BIRT is an open source Eclipse-based reporting system that integrates with any OFBiz application to produce compelling reports including graphical presentations like pie and bar charts."/>
|
||||
<label style="h3" text="This application provides you with a sample example report."/>
|
||||
<label style="h3" text="See the help option how to create your own OFBiz intergrated reports."/>
|
||||
<link style="h3" text="or see the Birt home for more information" target="http://eclipse.org/birt/phoenix/intro/" url-mode="plain" target-window="_blank_"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="Report">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Report"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html>
|
||||
<html-template location="component://example/webapp/birt/birt/report.ftl"/>
|
||||
</html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditMail">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Mail"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Send BIRT report by mail">
|
||||
<include-form location="component://example/widget/example/BirtForms.xml" name="EditMail"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="chartReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="chartReport"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/birt/birt/chartReport.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
@@ -232,44 +232,6 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonBirtDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="Birt"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="BirtTabBar" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.WebtoolsPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleChartsDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
@@ -42,12 +42,6 @@ under the License.
|
||||
<menu-item name="ExampleGeoLocation" title="${uiLabelMap.CommonGeoLocation}">
|
||||
<link target="ExampleGeoLocationPointSet1"/>
|
||||
</menu-item>
|
||||
<menu-item name="Birt" title="${uiLabelMap.ExampleBirtExamples}">
|
||||
<link target="BirtMain"/>
|
||||
</menu-item>
|
||||
<menu-item name="ExampleCharts" title="Chart examples">
|
||||
<link target="ExampleBarChart"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="EditExample" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
@@ -88,15 +82,6 @@ under the License.
|
||||
<menu-item name="ExampleOsmGeoLocationPointSet4" title="${uiLabelMap.OsmPointSet4}"><link target="ExampleOsmGeoLocationPointSet4"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="BirtTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="Report" title="${uiLabelMap.ExampleBirtReport}"><link target="Report"/></menu-item>
|
||||
<menu-item name="Export" title="${uiLabelMap.ExampleBirtViewHandler}"><link target="ViewHandler"/></menu-item>
|
||||
<menu-item name="Mail" title="${uiLabelMap.ExampleBirtMail}"><link target="Mail"/></menu-item>
|
||||
<!-- Reports using charts-->
|
||||
<menu-item name="chartReport" title="${uiLabelMap.ExampleBirtChartReport}"><link target="chartReport"/></menu-item>
|
||||
<menu-item name="chartExport" title="${uiLabelMap.ExampleBirtChartViewHandler}"><link target="chartViewHandler"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="ExampleCharts" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="ExampleBarChart" title="Bar chart"><link target="ExampleBarChart"/></menu-item>
|
||||
<menu-item name="ExamplePieChart" title="Pie chart"><link target="ExamplePieChart"/></menu-item>
|
||||
|
||||
Reference in New Issue
Block a user