Commit Graph
48 Commits
Author SHA1 Message Date
Jacques Le Roux d00f9fc378 Improved: Plugins Asciidoc documentation must be standalone
(OFBIZ-10658)

Removes toc information after ":toclevels:" 3 is used in build.gradle


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1849119 13f79535-47bb-0310-9956-ffa450edef68
2018-12-17 17:42:20 +00:00
Jacques Le Roux 695301d303 Improved: Fix or Silence various warnings
(OFBIZ-10701)

In order to detect potential issues early, the linting compiler option should be 
used by default and disabled with {{./gradlew -PXlint:none build}}.

Additionally it is important to reduce the number of warnings otherwise new 
warnings will remain unnoticed.

The warning related to the com.googlecode.concurrentlinkedhashmap dependency 
should resolves itself once we handle upgrade to Caffeine like proposed in 
OFBIZ-6747.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1848673 13f79535-47bb-0310-9956-ffa450edef68
2018-12-11 13:33:49 +00:00
Jacques Le Roux 769084a49b Fixed: Standalone Asciidoc plugins documents can't render logo correctly in PDF
(OFBIZ-10677)

Forgot to commit the birt.adoc file with the way to generate the logo

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1848396 13f79535-47bb-0310-9956-ffa450edef68
2018-12-07 13:07:37 +00:00
Jacques Le Roux e4e7d859e7 Documented: Standalone Asciidoc plugins documents can't render logo correctly in
PDF
(OFBIZ-10677)

It does not work, I'll revisit that later.

Using Buildbot to copy the logo locally would work, but only to generate for us.
Not for users who would want to generate locally. They could use a manual copy.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1847708 13f79535-47bb-0310-9956-ffa450edef68
2018-11-29 09:59:40 +00:00
Jacques Le Roux 16328e2185 Fixed: Plugins Asciidoc documentation must be standalone
(OFBIZ-10658)

Completes the standalone document part as required by guidelines.

Note that using ":toclevels: 3" does not work when generating with Gradle 
because of the OOTB definition "'toclevels': '5'" in build.gradle

It does when used apart in Asciidoc editors. I believe OOTB a 3 levels is enough
 and the numbers are superfluous if not unpleasant.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1847272 13f79535-47bb-0310-9956-ffa450edef68
2018-11-23 14:27:05 +00:00
Jacques Le Roux 5cfeab364f Documented: no functional changes
Last touch on Birt doc

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1847196 13f79535-47bb-0310-9956-ffa450edef68
2018-11-22 17:59:53 +00:00
Jacques Le Roux e17875795b Documented: no functional changes
Formats too long lines in bt-*.adoc files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1847192 13f79535-47bb-0310-9956-ffa450edef68
2018-11-22 17:01:41 +00:00
Jacques Le Roux d315facebd Documented: no functional changes
Formats too long lines in wa-cross-domains-SSO.adoc 
Fixes references in bt-creating reports.adoc
Fixes text in bt-report master creation.adoc

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1847177 13f79535-47bb-0310-9956-ffa450edef68
2018-11-22 15:07:19 +00:00
Jacques Le Roux 634ba04427 Improved: Convert Birt component doc from Markdown to AsciiDoc
(OFBIZ-10647)

Following [this thread|https://markmail.org/message/nujdq5rmegcg3p4z], convert 
Birt component doc from Markdown to AsciiDoc.

While doing so move images from 
[wiki|https://cwiki.apache.org/confluence/display/OFBIZ/Birt+Flexible+Reports] 
to source and update 
the [blog|https://blogs.apache.org/ofbiz/entry/the-birt-flexible-reports-a]

 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1846531 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 19:20:19 +00:00
Jacques Le Roux 7d9b898e92 Improved: Handle service response effectively
(OFBIZ-9981)

As per discussion on Dev ML:
==========================
Every service calling from java/groovy must handle errors by service util 
methods such as isError, returnError etc. 
and similarly in case of XML <call-service, there should be <check-error/> 
to make sure service was executed successfully.

Apart from this, one suggestion is to include *Debug.logError* in 
*ServiceUtil.returnProblem* so that in case of any error occurred and handled, 
it will always be logged on the console.
==========================

jleroux: this is the plugins part with some slight changes

Thanks: Suraj Khurana and Anushi Gupta

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1819735 13f79535-47bb-0310-9956-ffa450edef68
2017-12-31 12:30:48 +00:00
Michael Brohl 31d9364ac4 Improved: Fixing defects reported by code analysis tools, package
org.apache.ofbiz -bi.util, -birt and -birt.container.
(OFBIZ-10102)

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1818845 13f79535-47bb-0310-9956-ffa450edef68
2017-12-20 19:45:02 +00:00
Jacques Le Roux 6bb17c236d Improved: The main logo in screen upper part shows distorted
(OFBIZ-9990)

Forgot the plugins :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1816932 13f79535-47bb-0310-9956-ffa450edef68
2017-12-02 07:35:37 +00:00
Deepak Dixit f02613b01b Improved: No functional change, Only added license header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1812310 13f79535-47bb-0310-9956-ffa450edef68
2017-10-16 18:43:49 +00:00
Deepak Dixit 1e984db782 Inconsistent String Comparisons, Applied patch for plugins classes.
Thanks Devanshu Vyas for your contribution (OFBIZ-9254)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1812282 13f79535-47bb-0310-9956-ffa450edef68
2017-10-16 10:43:56 +00:00
Nicolas Malin 83b7d0a52a Fixed: Correct library ftl call to render the email body (OFBIZ-9138 Create a common theme)
add possibility to call the ThemeFactory.resolveTheme() with empty request if the visualTheme normaly present on the service context isn't found, so we return the default theme define in general.properties
Thanks to Jacques for raise this problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1806238 13f79535-47bb-0310-9956-ffa450edef68
2017-08-25 21:25:50 +00:00
Deepak Dixit a5e7b3649a Improved: Removed duplicate field type entry from BirtUtil class file
Thanks Aditya Shrama for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1804487 13f79535-47bb-0310-9956-ffa450edef68
2017-08-09 05:03:08 +00:00
Deepak Dixit 1ed571ac9c Improved: Removed ne references from BirtUtil class file (OFBIZ-9351)
Thanks Aditya for your contribution.
I removed them but forgot to commit :)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1804224 13f79535-47bb-0310-9956-ffa450edef68
2017-08-06 05:52:43 +00:00
Jacques Le Roux 91fb6d5f4d No functional changes.
Fixes a comment and formats Java code

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1794974 13f79535-47bb-0310-9956-ffa450edef68
2017-05-12 13:09:35 +00:00
Jacques Le Roux 2558dabc92 No functional changes:
Fixes a label
Adds an error label
Uses the error label
Adds the word service in not yet labelised error msg


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1792899 13f79535-47bb-0310-9956-ffa450edef68
2017-04-27 14:06:30 +00:00
Jacques Le Roux 78bd8621a4 No functional changes.
BirtServices.java
    Formatting
    Few better comments and some TODOs
    Replaces e.printStackTrace() by Debug.logError(). 
    Adds few missing Debug.logError()
    Adds return ServiceUtil.returnError() 
    Improves an EntityListIterator closing not done, using try-with-ressources
        Not a funct. change, EntityListIterator.finalyse() catches anyway
    Replaces return ServiceUtil.returnError(e.getMessage()) by more explicit 
        messages. Not needs to clutter the UI.
    Uses multi-catches when applicable
    
BirtUtil.java
    Formatting
    Note: the Birt.properties file does not exist OOTB but can be added for 
        convenience, like using the location where you edit with the 
        Birt Report Designer...

ReportDesignGenerator.java
    Formatting
    Removes useless and confusing try and re-thrown exceptions. This allows to 
    fix possible other issues


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790547 13f79535-47bb-0310-9956-ffa450edef68
2017-04-07 13:21:50 +00:00
Jacques Le Roux b839e1dc63 Fixed: Implement and demonstrate few services in Birt Report Builder
(OFBIZ-9192)

This fixes an issue I put in while removing partyName. 
The couple ("Customer", "Customer name") should also have been removed

While at it I formatted to make things more legible

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790501 13f79535-47bb-0310-9956-ffa450edef68
2017-04-07 04:49:50 +00:00
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 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 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
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 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
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
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
Arun Patidar 1a80f308c4 Implemented: Refer to objects by their interfaces rather than class when instantiating Collection implementation classes in Java files
(OFBIZ-9023) (OFBIZ-9026)(OFBIZ-9027)(OFBIZ-9032)(OFBIZ-9034)(OFBIZ-9036)(OFBIZ-9030)

Thanks: Divesh Dutta, Amit Gadaley and Shubham Agrawal for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1768189 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:16:49 +00:00
Arun Patidar d24ff76d52 Fixed: Catch GenericEntityException and GenericServiceException and other instead of Exception in Java classes.
(OFBIZ-8909)(OFBIZ-8910)(OFBIZ-8911)(OFBIZ-8912)(OFBIZ-8913)(OFBIZ-8914)(OFBIZ-8915)(OFBIZ-8917)(OFBIZ-8918)(OFBIZ-8919)(OFBIZ-8920)(OFBIZ-8921)(OFBIZ-8922)

Thanks: Divesh Dutta for reporting and Amit Gaadaley for providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1768168 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 09:30:07 +00:00
Taher A. Alkhateeb 013666db25 Improved: Refactor and simplify the startup sequence in OFBiz
(OFBIZ-8337)

This is a major refactoring exercise to simplify the startup sequence in
OFBiz. There are no functional changes, however, both the logic and the
API signatures of the core classes in OFBiz are changed to help simplify
the startup sequence. The changes insofar are summarized as:

- Rename ContainerConfig.Container to ContainerConfig.Configuration, the old
  nameing was very confusing as it confuses it with actual containers
- Change the signature of ContainerLoader and Container to accept
  List<StartupCommand> instead of String[]. And also migrate the adapter for
  converting these args into a standalone class called
  StartupCommandsToArgsAdapter
- Remove the LockedBy annotation as it is not used
- Substantially simplify the ContainerLoader load and unload logic and delete
  the start logic (merge it with load). The interface StartupLoader was updated
  accordingly
- Remove old logic to load containers in hot-deploy components
- Remove printThreadDump output from ContainerLoader which used to exist for
  debugging purposes and is no longer necessary
- Cleanup the AdminServer startup logic
- Change the StartupControlPanel logic to use only one StartupLoader instead
  of a list. The only implementation is ContainerLoader
- Remove the synchronized blocks in StartupControlPanel due to having only one
  loader
- Update the startup .properties files to reflect the changes in the startup
  logic
- Update the TestRunContainer to use List<StartupCommand> in its logic

We expect more commits (specifically to the containers) to complete this
refactoring initiative



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1765127 13f79535-47bb-0310-9956-ffa450edef68
2016-10-16 09:07:08 +00:00
Deepak Dixit 9ed1111a39 (OFBIZ-7979) Applied patch from jira issue
=====================================
Add UI labels for success / error messages in birt component
=====================================
Thanks Tanmay for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1759079 13f79535-47bb-0310-9956-ffa450edef68
2016-09-03 12:04:24 +00:00
Deepak Dixit 8f3141cd46 (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Taher A. Alkhateeb 2963cd7188 Migrate ALL java files from /src to /src/main/java - OFBIZ-7790
This is the first of two steps in the above mentioned JIRA. This
first step changes the java source directory for every component
from /src to /src/main/java. The next step will be adding unit
tests to every component in /src/test/java

Thank you to Deepak Dixit for tips on how to use the SVN commands
to make the appropriate file moving.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1752838 13f79535-47bb-0310-9956-ffa450edef68
2016-07-15 14:17:14 +00:00
Arun Patidar a103bc9bd7 Applied patch from jira issue - OFBIZ-7410 - Enforce noninstantiability to BirtWorker Class. Thanks Pratik Kulshreshth for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1750352 13f79535-47bb-0310-9956-ffa450edef68
2016-06-27 14:42:20 +00:00
Deepak Dixit 1245fb9efe (OFBIZ-6287) Replace html widget rendering with Macro widget rendering in BirtEmailServices.java file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1731346 13f79535-47bb-0310-9956-ffa450edef68
2016-02-20 08:55:27 +00:00
Jacques Le Roux 8c767f7102 A rearranged patch from Gareth Carter for "Update SimpleContentViewHandler to return mime type on file extension and use inline for content-disposition" https://issues.apache.org/jira/browse/OFBIZ-6702
SimpleContentViewHandler will return mime type 'text/html' for all DataResource values without a specified mimeTypeId. Changing to DataResourceWorker.getMimeType will allow determining the mimeTypeId by file extension 
Fixing the mime type will allow the browsers to display content inline if UtilHttp is updated aswell. All unknown extensions will be set to octet-stream causing the browser to prompt for download

jleroux: after some discussions, this finally uses a content-disposition-type property in requestHandler.properties to allow more flexibility for users (see UtilHttp.setContentDisposition() method). Beware "inline" is less secure. For this reason, Gareth forced the "dangerous" text/html mime type to application/octet-stream in SimpleContentViewHandler class. This to prevent possible static XSS attacks. See the Jira issue for more details.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1712835 13f79535-47bb-0310-9956-ffa450edef68
2015-11-05 17:47:00 +00:00
Nicolas Malin 1e3600618d Convert javolution FastMap, FastSet and FastList by standard java.util.*
Related to OFBIZ-5781 Convert Javolution collections into Java collections
Thanks to Deepak Dixit and Adrian Crum for their help.

By defautl converted :
 * FastMap by HashMap
 * FastList by LinkedList
 * FastSet by HashSet

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1672752 13f79535-47bb-0310-9956-ffa450edef68
2015-04-10 20:22:54 +00:00
Adrian Crum d504b6ffde Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Adrian Crum ae9103cf18 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Ashish Vijaywargiya b06039daf6 Applied patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue(). Thanks so much Arun for this important contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1644015 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 10:09:22 +00:00
Jacques Le Roux 2c3aced803 I found annoying to mix the Birt report engine logs and especially lock files with the other OFBiz logs.
As suggested on dev ML,this moves these files under a birt sub directory of runtime


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1602671 13f79535-47bb-0310-9956-ffa450edef68
2014-06-15 08:08:36 +00:00
Jacques Le Roux 1c49d94225 A patch from Leon for "Birt 4.2, export report as MS 2007 document format" https://issues.apache.org/jira/browse/OFBIZ-5653
One of the new features of Birt 4.2 is the capability to export report as MS 2007 format, such as .docx, .xlsx and .pptx.
Birt library in OFBiz trunk has already been upgrade to version 4.3.1. So it's ready to introduce this new feature into ofbiz.

patch: 3 new content types for MS 2007 word, excel and ppt. Also update the help xml and comments in controll.xml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1602334 13f79535-47bb-0310-9956-ffa450edef68
2014-06-13 07:58:48 +00:00
Jacques Le Roux ac7138ebdd A patch from Chatree Srichart for "BIRT Web Viewer Integration" https://issues.apache.org/jira/browse/OFBIZ-4952
jleroux: Oops forgot to commit the unversioned files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1579359 13f79535-47bb-0310-9956-ffa450edef68
2014-03-19 19:16:28 +00:00
Jacques Le Roux 255d601eeb A patch from Chatree Srichart for "BIRT Web Viewer Integration" https://issues.apache.org/jira/browse/OFBIZ-4952
Chatree Srichart:
I have created a patch to solve a viewer servlet problem and uncomment the viewer servlet in the birt webapp. To do this will allow a user to use BIRT Web Viewer to render a report by coping a webcontent directory from birt-runtime-x_x_x/WebViewerExample directory and paste into the birt webapp directory ($OFBIZ_HOME/specialpurpose/example/webapp/birt).

These are URLs to render example reports using BIRT Web Viewer.
http://localhost:8080/birt/frameset?__report=component://example/webapp/birt/report/example.rptdesign
http://localhost:8080/birt/frameset?__report=component://example/webapp/birt/report/chart.rptdesign

jleroux: a more detailled documentation is available at https://cwiki.apache.org/confluence/display/OFBIZ/Using+BIRT+with+OFBiz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1579356 13f79535-47bb-0310-9956-ffa450edef68
2014-03-19 19:08:52 +00:00
Jacopo Cappellato 6f42787e73 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
2012-07-13 09:48:32 +00:00