Commit Graph
3703 Commits
Author SHA1 Message Date
Jacques Le Roux 7c4afbc1e9 Fixed: Implement and demonstrate few services in Birt Report Builder
(OFBIZ-9192)

Jacopo reported an issue on dev ML on the Party view profile 
The InvoiceItemProductAndParty view use a partyName from the Party
entity, but there is no partyName in the Party.

I simply commented out this line in the view definition. 
PartyNameView could be used later there.

I also fixed partyName in BirtMasterReportServices class,
formatted it and used Debug.logError instead of printStackTrace()

Thanks: Jacopo for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790499 13f79535-47bb-0310-9956-ffa450edef68
2017-04-07 04:23:17 +00:00
Jacques Le Roux 9003ace40b Fixed: Eclipse Public License - v 1.0 files in OFBiz
(LEGAL-296)

This has been discussed in the OFBiz project and we preferred to ask legal 
before taking a definitive decision.

We read at  http://www.apache.org/legal/resolved.html#category-b
  For small amounts of source that is directly consumed by the ASF product at 
  runtime in source form, and for which that source is unmodified and unlikely 
  to be changed anyway (say, by virtue of being specified by a standard), 
  inclusion of appropriately labeled source is also permitted. An example of 
  this is the web-facesconfig_1_0.dtd, whose inclusion is mandated by the JSR 
  127: JavaServer Faces specification

The question was:
  Can the files under folders birt/webapp/birt/webcontent/birt, all licensed 
  under   https://www.eclipse.org/legal/epl-v10.html be included in source form,
  without modifications, in an Apache (source) release?  It's 160 files and 
  541 523 bytes at all.

Thanks: Marvin Humphrey for legal advice (the answer is NO)

So this removes the birt/webcontent folder. The related page in wiki has also
been removed


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790442 13f79535-47bb-0310-9956-ffa450edef68
2017-04-06 19:27:36 +00:00
Jacques Le Roux 899b35b7f1 No functional change, just a TODO in preparation of OFBIZ-9293 "Review and
possibly refactor code (not only Java, but mostly) in the ebaystore component"

Also to test WIP for OFBIZ-9275 "Add a Gradle task to svn update all plugins"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789750 13f79535-47bb-0310-9956-ffa450edef68
2017-03-31 21:02:59 +00:00
Jacques Le Roux 2c7b6656f0 Fixes r1788869 where I did not what I intented to do. I wrote then
<<No functional changes.

Fixes some unchecked casts by using  UtilMisc.toMap
Adds some @SuppressWarnings("unchecked")
Adds few @SuppressWarnings("unused")
Cleans imports
Completes and fixes Javadoc in BirtUtil class>>

Er, of course you can't fix unchecked casts by using UtilMisc.toMap, I intended
to use UtilGenerics.checkMap and got mislead by Eclipse which also hides 
unchecked casts warnings when you use UtilMisc.toMap
Then all derailed and I put some @SuppressWarnings("unchecked") to hide warning
on List unchecked casts :/

The rest was correct but a 
  private GenericValue userLogin;
in ReportDesignGenerator which is really useless

There are still no functional changes but some amended comments (French) 
and added TODO

I note that the translated TODO needs a re-visit, smell like factoring is needed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789381 13f79535-47bb-0310-9956-ffa450edef68
2017-03-29 15:25:39 +00:00
Jacques Le Roux 1c8d7845cd Fixed: Implement and demonstrate few services in Birt Report Builder
(OFBIZ-9192)

It was a long time I did not revisit this issue. I no longer stumbled upon 
issues I reported before in the Jira but found that 2 entities were missing.

I was an easy fix: the ServiceReportsView.xml was missing

Thanks: To Nicolas who in the meantime certainly committed fixes for the other 
issues I reported in the Jira

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789159 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 15:08:24 +00:00
Jacques Le Roux 3a6a875015 Fixed: Fix Default or Empty Catch block in Java files
(OFBIZ-8341)

In EbayStore services class, replaces forgotten e.printStackTrace()
(I guess due to "TODO Auto-generated catch block") by returning service errors
Uses the same pattern everywhere it's needed
Replaces returnFailure by returnError, an exception is not a failure, it's a
serious error

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789047 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 05:50:16 +00:00
Jacques Le Roux 8cb70d7363 Fixes a bug I just put in with r1789043 EbayFeedback is a service class not an
event class :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789046 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 05:38:43 +00:00
Jacques Le Roux de6af5e80c Fixed: Fix Default or Empty Catch block in Java files
(OFBIZ-8341)

Fixes forgotten "TODO Auto-generated catch block" not using Debug.logError. 
Groups similar exceptions in multi-catches
Removes an useless catch embedded in a same catch in EbayStore
In catches in events, returns "error" and an error messages in requests

I stop there in ebaystore, I'll hopefull continue later, it has been coded 
with feet and seems to contains a lot of such issues.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789043 13f79535-47bb-0310-9956-ffa450edef68
2017-03-28 05:08:10 +00:00
Jacques Le Roux e168918b5f No functional label change, it's not one but many Flexible Reports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788933 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 13:59:08 +00:00
Jacques Le Roux f247052b1c Documented: Complete Birt Flexible Reports documentation
(OFBIZ-9188)

This is the technical documentation about the Flexible Reports. 
It's done with Markdown files with links to Confluence for images

Also the HTML version soon used in the wiki

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788911 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 11:57:07 +00:00
Jacques Le Roux bdc00743de No functional changes.
Fixes an update the README.md file

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788871 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 09:55:43 +00:00
Jacques Le Roux d5d4cd588f No functional changes.
Fixes some unchecked casts by using  UtilMisc.toMap
Adds some @SuppressWarnings("unchecked")
Adds few @SuppressWarnings("unused")
Cleans imports
Completes and fixes Javadoc in BirtUtil class

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788869 13f79535-47bb-0310-9956-ffa450edef68
2017-03-27 09:54:18 +00:00
Jacques Le Roux 6440cb15d3 Documented: Complete Birt Flexible Reports documentation
(OFBIZ-9188)

I missed an image

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788770 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 19:17:17 +00:00
Jacques Le Roux 1192ed0faf Documented: Complete Birt Flexible Reports documentation
(OFBIZ-9188)

Fixes titles and indentation issues

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788762 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 18:42:05 +00:00
Jacques Le Roux aed0a8ca81 Documented: Complete Birt Flexible Reports documentation
(OFBIZ-9188)

Complete the documentation about the Flexible Reports. Here are the HTML 
versions to be used in the "Birt Flexible Reports" wiki page.
Also with an link in "Creating reports.md" to 
"Using the Birt Report Designer.md.html"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788759 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 17:55:06 +00:00
Jacques Le Roux e99ff2a8dd Documented: Complete Birt Flexible Reports documentation
(OFBIZ-9188)

This is the documentation about the Flexible Reports. It's done with Markdown 
files with links to Confluence for images

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788756 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 17:27:47 +00:00
Jacques Le Roux 277c25f48a No functional changes
I decided to sort the flexible report export formats on the enumCode 
(ie alphabetically) rather than using sequenceId which did not make much sense
Also fixes a typo in a French error label


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788752 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 16:50:42 +00:00
Jacques Le Roux 7ab621a5e3 Improved: Improvement: warn users about sending a flexible report before having
published it
(OFBIZ-9284)

When you create a Flexible Report you get to the EditFlexibleReport screen. 
There is a Preview panel with a Send button. If you send before having 
1) downloaded the file,
2) conveniently edited it in Birt Report Designer
3)  and then uploaded it, 
you get an error which is embarrassing and difficult to avoid 
programmatically. 

I decided to warn users, when necessary (ie when the report is not published) 
at the UI level. This completes OFBIZ-9194



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788750 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 16:47:07 +00:00
Shi Jinghai 3f39aa0fae Improved: Add a PriCat component under specialpurpose
(OFBIZ-9123)

Moved pricat/webapp/pricat/ftl to pricat/template/pricat, pricat/webapp/pricatdemo/ftl to pricat/template/pricatdemo, and changed paths in files accordingly.

Thanks Jacques, Pierre and Michael for the code review and suggestion on this improvement.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788744 13f79535-47bb-0310-9956-ffa450edef68
2017-03-26 16:28:19 +00:00
Deepak Dixit 10e1531634 Fixed: Fixed data load error causing due to plugin dependecny (OFBIZ-9243)
Added demo data in respective plugin that was causing foreign key issue while data load in ebay and myportal plugin.

Thanks Wai for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788660 13f79535-47bb-0310-9956-ffa450edef68
2017-03-25 10:43:51 +00:00
Jacques Le Roux 78c8440166 No functional changes, fixes a typo in a comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788253 13f79535-47bb-0310-9956-ffa450edef68
2017-03-23 14:16:53 +00:00
Jacques Le Roux c5378c7724 Fixed: After creating a new Flexible Birt report, before visualising it you
need to do other actions
(OFBIZ-9194)

The solution I provided with revision: 1781218 was wrong. A really satisfying
solution would be to gray the "Send" button on the 
birt/control/CreateFlexibleReport page. But that's not something easy to do
because it's generated from a content. 

So I decided to remove the part in the PrepareBirtCall.groovy and add an 
indication in the BirtErrorNotPublishedReport for users to use their browser 
back button. Because you catch a ViewHandlerException in 
RequestHandler.renderView() and there is not much you can do at this stage...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788020 13f79535-47bb-0310-9956-ffa450edef68
2017-03-21 18:52:50 +00:00
Jacques Le Roux 041c683ef4 No functional change. Adds tsvn:logtemplatecommit and 80 chars width
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1787539 13f79535-47bb-0310-9956-ffa450edef68
2017-03-18 09:32:13 +00:00
Jacques Le Roux 8a54299735 Completed: Removes the now useless hot-deploy directory
(OFBIZ-9268)

The hot-deploy removal was discussed at https://s.apache.org/7Y2w

Forgot this weird harcoded strings in scrum component, because
You can't see the svn changes under plugins from root




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1787538 13f79535-47bb-0310-9956-ffa450edef68
2017-03-18 09:29:31 +00:00
Jacques Le Roux c125a71557 No functional change
Clean the content, more a pretext to test the Builbot triggers

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1786301 13f79535-47bb-0310-9956-ffa450edef68
2017-03-10 08:52:50 +00:00
Jacques Le Roux 4677004c50 Fixed: Create an Accounting Transaction page not found
(OFBIZ-9228)

Go through
Asset Maint --> Fixed Assets - >>> find DEMO_VEHICLE_01 --> Depreciation 
and then press on button Create an Accounting Transaction: 00.000
will give ERROR not found

jleroux: the partyDecoratorLocation was missing in webapp/assetmaint/WEB-INF/web.xml

Thanks: Moatasim Al Masri for report, Ismail Alkouz for a try (not my solution)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1784144 13f79535-47bb-0310-9956-ffa450edef68
2017-02-23 14:41:21 +00:00
Deepak Dixit 0f2050716f Fixed: Copied sales order item fact related services from order component (OFBIZ-9213)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1782661 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:51:13 +00:00
Deepak Dixit 08a190d5ef Removed unsed component-load.xml from plugins repo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1782656 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:20:25 +00:00
Deepak Dixit f2a048bb04 Improved: Moves plugins and creates the new structure (OFBIZ-9182)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1782651 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 10:32:53 +00:00
Jacques Le Roux 83ba64a42a Implemented: Load demo data shows error loading xml files
Fixed:
(OFBIZ-9211)

"gradlew cleanAll loadDefault" generates a data loading error

It's logically due to the removing of plugins/component-load.xml in OFBIZ-9182
A temporary solution is to put it in again. 
A definitive solution is to remove data dependencies. 
We have also this problem with ecommerce data which create dependencies 
from applications

jleroux: I don't close this issue yet because we need to work together on this.
I simply remove the regression by putting back plugins/component-load.xml

Thanks: Wai for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1782577 13f79535-47bb-0310-9956-ffa450edef68
2017-02-11 10:16:02 +00:00
Nicolas Malin 74b9f8befb Fixed: Birt logging unlogical high (OFBIZ-9201)
Currently the class BirtContainer call the birt engine with hard coded log level ALL that generated huge log file.
We can't implement easily log4j on the birt engine so with this commit I create a quick fix to have matching between the java.util.Logger and org.apache.log4j.Logger level.
You can select the log level from debug.properties to populate the ReportEngine log file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1782070 13f79535-47bb-0310-9956-ffa450edef68
2017-02-07 19:56:04 +00:00
Jacques Le Roux 5dc7ce9548 No functional changes
completes r1781219 by putting svn:eol-style=native to all file types declared 
in [auto-props] section of the svn config files.css

Actually this is only a 1st pass, it was too complicated to do it for  
all file types at once only concerned here
*.java;*.bsh;*.groovy;*.jsp;*.tld;*.ftl;*.js;*.sql;*.c;*.cpp;*.h;*.txt;*.sgml;
*.properties;*.xml;.classpath;.project;*.sld;*.gml;*.xsl;*.xsd
*.html;*.htm;*.css;*.md;README;NOTICE;LICENSE;rc.ofbiz.*;*.less;*.dsp;*.dsw

Most files should not be concerned by this change, but it's impossible to do
it one by one.

There are also changes in files with have mixed EOLs; because this has no sense
when using native which automatically resolves this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781731 13f79535-47bb-0310-9956-ffa450edef68
2017-02-05 11:09:59 +00:00
Jacques Le Roux 5cd12b29fc Fixed: Missing file results in error
(OFBIZ-9198)

When accessing a file/image in ecomseo (only seo version) that is physically 
missing or the dataresource attribute isPublic=="N" the request results 
in a loop.

jleroux: to break the loop in case or error, I simply decided to return a 
response of type none. I also added the same for io-error which can be returned
by the DataEvents class, also in ecommerce controller

Thanks: Ingo Wolfmayr for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781662 13f79535-47bb-0310-9956-ffa450edef68
2017-02-04 12:20:41 +00:00
Jacques Le Roux b32fe6a877 No functional change, removes useless return in Javadoc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781431 13f79535-47bb-0310-9956-ffa450edef68
2017-02-02 16:34:44 +00:00
Jacques Le Roux fc3e1db4f6 No functional changes
At http://markmail.org/message/ffmyw773p65fndey I wrote:

I'd like to follow the suggestion I made in the last message of the linked 
thread.
In other words, use
http://subversion.apache.org/docs/release-notes/1.8.html#repos-dictated-config
http://blogs.collab.net/subversion/the-road-to-repository-dictated-configuration-day-2-autoprops
Then this problem would be over. No longer need to check from time to time that
concerned files, have svn:eol-style=native property set
This imply that all OFBiz users use svn > 1.7, but we can inform them, et voilà

Then at markmail.org/message/h3q2yvj4db544ro7 I wrote:

Actually, since we get new committers now and then and their are able to create
new files I have a warning every 6 months which says "Check Java 
files, have all svn:eol-style=native" (I totally forgot that because I assume
the machine knows it and warns me ;))
I could extend that to all files (at least the most prominent types), I'll
see...

This does what the last sentence said for Groovy, XML and few new Birt 
Java files.

I'll see if I can implement the svn 1.8 repos-dictated-config ASAP!




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781219 13f79535-47bb-0310-9956-ffa450edef68
2017-02-01 10:58:46 +00:00
Jacques Le Roux 293c56f0eb Fixed: After creating a new Flexible Birt report, before visualising it you need
to do other actions
(OFBIZ-9194)

You need to add the data set fields with the Birt Report Designer 
and publish the report. This will be documented with OFBIZ-9188

I thought about graying the button but it was a delicate matter because it uses
a <content element in screen and directly call a view handled from a Groovy 
event.

It was easier to fix the PrepareBirtCall Groovy event. But to be totally sure
I also handled the possible NPE in the BirtViewHandler

I also fixed viewLast error in controller 

Because the files were not committed with the svn:eol-style native property
you will see false changes in this commit. Some files have their svn:eol-style 
native property set. I'll soon commit missing so in new Birt Java files.

I'll also commit a lot of svn:eol-style native property changes for XML and 
Groovy files which have been neglected so far. I'm sorry for that because 
when we do so we loose the annotations history. I will then definitely put in 
place what I suggested in http://markmail.org/message/ffmyw773p65fndey

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781218 13f79535-47bb-0310-9956-ffa450edef68
2017-02-01 10:50:22 +00:00
Jacques Le Roux 0c35ddda50 No functional changes
Adds a missing BirtOverrideFilters label
Fixes a typo in BirtServices.java and organise imports
Change a button name in BirtForms.xml
Uses the BirtOverrideFilters label in BirtScreens.xml

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781215 13f79535-47bb-0310-9956-ffa450edef68
2017-02-01 10:23:44 +00:00
Jacques Le Roux 6003315000 No functional change, removes useless <fail-widgets/> element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781202 13f79535-47bb-0310-9956-ffa450edef68
2017-02-01 07:44:00 +00:00
Jacques Le Roux 52c14a2f0c Improved: Implement and demonstrate few services in Birt Report Builder
(OFBIZ-9192)

The Birt Report Builder can also use services. for now only the "rotation" 
report as been provided. We can provide more examples based on François' 
work. 

Here are trivial changes
  fixes missing Lookup maps and view in controller for the "rotation" report 
  new needed labels
  typos fixed
  


Thanks:

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781084 13f79535-47bb-0310-9956-ffa450edef68
2017-01-31 14:07:04 +00:00
Jacques Le Roux 040f1b520c No functional change, updates Supported Content Types in example controller to
be the same than in birt controller

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781037 13f79535-47bb-0310-9956-ffa450edef68
2017-01-31 09:22:11 +00:00
Nicolas Malin 55fb361eb4 Fixed: no functional change, remove ';' to respect coding groovy convention
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780801 13f79535-47bb-0310-9956-ffa450edef68
2017-01-29 14:28:58 +00:00
Nicolas Malin e6ba65e509 Fixed: Convert delegator.find to EntityQuery (OFBIZ-9189)
The code came from a project under ofbiz 13.07 and is still using deprecated delegator.find calls, so I converted them to EntityQuery

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780800 13f79535-47bb-0310-9956-ffa450edef68
2017-01-29 14:27:27 +00:00
Taher A. Alkhateeb 96b0d76707 Improved: fully refactored the component loading logic in Gradle
(OFBIZ-9182)

This commit provides the following:
- Fully refactor common.gradle so that it mirrors the component loading
  logic found in ComponentContainer. This makes the loading very flexible
  and changing the directory structure should have no impact on the build
  scripts.
- Gradle will now ignore a component if it exists but disabled in
  ofbiz-component.xml (i.e. enabled="false")
- Removes /plugins/component-load.xml
- Disables the ebaystore component in ofbiz-component.xml

The above is needed as a first step toward preparing the project for svn
restructure


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780790 13f79535-47bb-0310-9956-ffa450edef68
2017-01-29 13:07:32 +00:00
Nicolas Malin 492772b40a Implemented: Birt Report Builder: an enhancement of the Birt component. Easier user possibility of report creation. (OFBIZ-6919)
The concept, you define a report domain related to an entity or a service through a master content (master report) and a master search form.
When a high level user create a report on a configured domain, OFBiz prepare an instantiation of the master content (flexible report) that permit
to surcharge the search form (recorded dynamically on the content as ElectronicText) and prepare a rptDesign skeleton.
The high level user can download the rptDesign to edit it trhough the birt editor, with all fields that ofbiz will be load as dataset and when is finish upload the result on the content instantiation.
For the end user, he selected the instantiation report, OFBiz display the report search from the content instantiation and the submission call birt with the search parameters and the linked rptDesign.

The rptDesign file is drive by OFBiz to build the data set by two methods :
 * call the performFind if the domain is related to an entity
 * call the a custom service if the domain is related to a service.
For the last case we need two services, a first who prepare and list available fields for search and display. And a second who realize the search.
By convention currently the first service as the same name that the second service suffixed by 'PrepareFields'

This commit contains :
 * useful UI to create a new content instance from a master content. List, edit, remove a content instance and a simple drop-down to list all instance published (ready to use by end user)
 * all services (with the work flexibleReport) to manage a flexible report, prepare the rptDesign skeleton, reanalyze the rptDesign uploaded, prepare the search form
 * Services interface to define you own search custom method
 * Two examples, one on the entity Exemple and one with the service flexibleReportTurnOver. Warning ! there are raw example without a beautiful rptDesign so you need to update the rptDesign with the birt editor to display something.
Thanks: François Wurmser for initialize this improvement, Jacques and Gil for their time to analyze, document and refactor the code


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780683 13f79535-47bb-0310-9956-ffa450edef68
2017-01-28 13:22:55 +00:00
Shi Jinghai 5af8988f7a Fixed: Update Apache Solr/Lucene to release 6.2.1
(OFBIZ-8316)

Change LongPoint and DoublePoint fields to String field to make solr work in trunk version, and I'll change them back when updating to new release of Solr.

Thanks: Jacques Le Roux for reporting the point fields problem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780133 13f79535-47bb-0310-9956-ffa450edef68
2017-01-25 03:09:48 +00:00
Jacques Le Roux 008e962b5c Fixed: add item to order cause exception
(OFBIZ-9167)

-go to https://localhost:8443/ordermgr/control/orderentry
-create order for DemoCustomer
-add an item

console output...
java.lang.NullPointerException
        at org.apache.ofbiz.content.content.ContentWorker.
renderContentAsText(ContentWorker.java:368) ~[ofbiz.jar:?]
[...]

While at it I also found issues with cartLine.getName() in ftl files. It was
also missing the dispatcher. 

This was broken by OFBIZ-9164

Thanks: Wai

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1778889 13f79535-47bb-0310-9956-ffa450edef68
2017-01-15 07:37:35 +00:00
Taher A. Alkhateeb 436c99ca6d Implemented: renamed the directory specialpurpose to plugins
(OFBIZ-7972)

In another step towards completing the plugin system for OFBiz, we renamed
the /specialpurpose directory to /plugins and changed all occurences of the
word "specialpurpose" to "plugins" in all files found in the system

Reference discussion: http://markmail.org/message/hpyuxkmftiyn44w2


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1778271 13f79535-47bb-0310-9956-ffa450edef68
2017-01-11 10:48:47 +00:00
Jacques Le Roux 47b29086a6 Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue 
due to r1652852 where Adrian improved the cacheKey in 
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants). 

Actually I'm not even sure it was done at r1652852 because Adrian did not 
maintain the FormFactory svn history.

Anyway, to make a long story short I had to introduce a DispatchContext 
parameter when calling FormFactory.readFormDocument() when the code from 
R13.07 only passed a null.

This had an impact in the hierarchy tree because FormFactory.readFormDocument() 
was called in DataResourceWorker class, where the new code was called 
from renderDataResourceAsText(). 

So I instead of only passing a Delegator I decided to pass only a 
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the 
Delegator  from the LocalDispatcher. Doing so it had an impact on the 
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface 
and all related.

I finally decided to apply the same "Change Method Signature" refactoring 
pattern (http://refactoring.com/catalog/addParameter.html) to all cases 
related to ContentWorkerInterface. No need to pass a delegator when you have 
LocalDispatcher!

Since last commit and revert I fixed 5 test failures and improved the code more,
 mostly formatting, comments, etc.

There are very ugly method signatures out there which still need refactoring,
but it's so much work...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1777297 13f79535-47bb-0310-9956-ffa450edef68
2017-01-04 12:48:11 +00:00
Jacques Le Roux 0ad5a2388a Reverted:Merged revision(s) 1777145 from ofbiz/trunk:
Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue 
due to r1652852 where Adrian improved the cacheKey in 
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants). 

Actually I'm not even sure it was done at r1652852 because Adrian did not 
maintain the FormFactory svn history.

Anyway, to make a long story short I had to introduce a DispatchContext 
parameter when calling FormFactory.readFormDocument() when the code from 
R13.07 only passed a null.

This had an impact in the hierarchy tree because FormFactory.readFormDocument() 
was called in DataResourceWorker class, where the new code was called 
from renderDataResourceAsText(). 

So I instead of only passing a Delegator I decided to pass only a 
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the 
Delegator  from the LocalDispatcher. Doing so it had an impact on the 
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface 
and all related.

I finally decided to apply the same "Change Method Signature" refactoring 
pattern (http://refactoring.com/catalog/addParameter.html) to all cases 
related to ContentWorkerInterface. No need to pass a delegator when you have 
LocalDispatcher!

I locally got 5 incomprehensible test failures. After checking as much as I can
w/o committing I believe it's a Windows 7 issue only. Anyway if Buildbot reports
the same I'll revert. I need this changes in to continue on another not yet 
created subtask of OFBIZ-6919 
........


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1777154 13f79535-47bb-0310-9956-ffa450edef68
2017-01-03 16:14:29 +00:00
Jacques Le Roux 5691a7536b Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)

While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue 
due to r1652852 where Adrian improved the cacheKey in 
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants). 

Actually I'm not even sure it was done at r1652852 because Adrian did not 
maintain the FormFactory svn history.

Anyway, to make a long story short I had to introduce a DispatchContext 
parameter when calling FormFactory.readFormDocument() when the code from 
R13.07 only passed a null.

This had an impact in the hierarchy tree because FormFactory.readFormDocument() 
was called in DataResourceWorker class, where the new code was called 
from renderDataResourceAsText(). 

So I instead of only passing a Delegator I decided to pass only a 
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the 
Delegator  from the LocalDispatcher. Doing so it had an impact on the 
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface 
and all related.

I finally decided to apply the same "Change Method Signature" refactoring 
pattern (http://refactoring.com/catalog/addParameter.html) to all cases 
related to ContentWorkerInterface. No need to pass a delegator when you have 
LocalDispatcher!

I locally got 5 incomprehensible test failures. After checking as much as I can
w/o committing I believe it's a Windows 7 issue only. Anyway if Buildbot reports
the same I'll revert. I need this changes in to continue on another not yet 
created subtask of OFBIZ-6919 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1777145 13f79535-47bb-0310-9956-ffa450edef68
2017-01-03 15:37:25 +00:00