Commit Graph
50 Commits
Author SHA1 Message Date
Jacques Le Roux 2b712efb98 No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.

Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Marco Risaliti a153d0a34f Removed some javadoc warning (wrong param/return) into framework components no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126708 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 20:11:12 +00:00
Erwan de Ferrieres ee08fe25a2 Removing old and not used lib in birt, 2.6.0 is used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1097841 13f79535-47bb-0310-9956-ffa450edef68
2011-04-29 15:30:54 +00:00
Erwan de Ferrieres 44e4e4f662 typo in BIRT's help
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1083856 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 16:12:01 +00:00
Marco Risaliti 54408637a8 Suppress some warning due to current Birt API in OFBizBirtViewerReportService (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078289 13f79535-47bb-0310-9956-ffa450edef68
2011-03-05 14:12:43 +00:00
Marco Risaliti ba33f4b4ff Remove some warning in BirtWorker (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078220 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 23:43:00 +00:00
Marco Risaliti e8518e4a3f Remove some warning in BirtEmailService (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078192 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:44:55 +00:00
Jacques Le Roux 2238844c6b A patch from Chatree Srichart "BIRT set output file name." (https://issues.apache.org/jira/browse/OFBIZ-4129) - OFBIZ-4129
I got a request to export a BIRT report as PDF file with custom file name. I attach a patch file for this feature.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061295 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 13:35:00 +00:00
Hans Bakker ca5b09bc7a add a popular categories section to the ecommerce frontpage which is generated from the data warehouse of real orders. Also adjusted the sales reports from the data warehouse by week/month/year. Demo data included is for display only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055774 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 07:37:45 +00:00
Bruno Busco 29f5073de7 Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052890 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 14:28:16 +00:00
Hans Bakker eaa8f6b5d4 next to setting of the tenent id, now also the initial mountpoint if entered also refactoring:
- set delegator, dispatcher and security from session, servlet context or request's attribute to app context of birt engine before render and send email
- add the initialPath field to Tenant entity
- create the tenant context which as a default servlet using org.ofbiz.webapp.control.TenantServlet in the catalina container and check the multitenant property for initial the tenant context with root mount /
- move the changing a multi tenant delegator statement from ControlServlet to ContextFilter that could apply to every servlets
(implementation by Chattree Richard)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1032472 13f79535-47bb-0310-9956-ffa450edef68
2010-11-08 06:54:17 +00:00
Erwan de Ferrieres fc024e7080 OFBIZ-3901 - Birt charts and PDF generation -- now Birt PDF files containing charts are generated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989593 13f79535-47bb-0310-9956-ffa450edef68
2010-08-26 10:27:19 +00:00
Erwan de Ferrieres 25e75576bd OFBIZ-3896 BIRT charts are not rendered - this file wasn't updated when moving from birt 2.5.1 to 2.6.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988024 13f79535-47bb-0310-9956-ffa450edef68
2010-08-23 08:14:53 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Scott Gray 4448c4a866 No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Scott Gray 4e0a332c82 Correct some jar names that cause a warning on startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965689 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 00:23:04 +00:00
Hans Bakker 0a21d46376 correction on previous commit, this one and previous contributed by chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964431 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 13:57:36 +00:00
Hans Bakker 63ef224344 upgrade birt to 2.6 and at the same time upgrade the itext library (OFBIZ-3407) which does work with this birt version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964371 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 10:33:57 +00:00
Jacopo Cappellato 3b42619762 Formatting fixes: no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950454 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 09:36:15 +00:00
Jacopo Cappellato f22bdccd59 Enhanced Birt view handler to automatically set report parameters in the request.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950452 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 09:34:19 +00:00
Hans Bakker 4ed7d3a044 fix a chart problem when a newer birt version in eclipse is used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946940 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 09:18:30 +00:00
Scott Gray 6e6e78c569 Fix copy/paste error (incorrect property default), good thing I review my one commits :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931779 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:12:40 +00:00
Scott Gray f97e54b11f dispatcherName wasn't being retrieved from the container config, causes a warning in the logs about the default dispatcher being assumed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931772 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:38 +00:00
Scott Gray 7ded8189ae Removed an unused private method
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927227 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 23:32:41 +00:00
Scott Gray a78b913998 Fix a ton of bad formatting, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927226 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 23:32:36 +00:00
Scott Gray a0590bd9b0 Added missing override annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927224 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 23:32:31 +00:00
Scott Gray 18505fbd01 Removed throws declaration since the exceptions aren't actually thrown; removed the resulting unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927223 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 23:32:17 +00:00
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adam Heath b4651644c8 Don't fetch the delegator with UtilObject, instead using
DelegatorFactory.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921987 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:57:33 +00:00
Hans Bakker 2e74586bcf make birt use the itext libraries already present in ofbiz, contribution of Chattree and reported by erwan in the mailing list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905500 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 03:18:15 +00:00
Scott Gray 91b171f685 Removed auto-generated TODO comments (missed in my last commit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903957 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 05:00:06 +00:00
Scott Gray 753286d071 Cleaned import statements
Removed auto-generated TODO comments
Suppressed some serialization warnings

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903955 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 04:55:30 +00:00
Hans Bakker d6e27a9e32 include birt introduction in OFbiz technocal document
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902805 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 13:20:17 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath eb0f0bfb16 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Adam Heath 2eb8a5bdb5 Fix several 'no newline at end of file' warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897033 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 22:17:56 +00:00
Adam Heath bb30188c09 Remove executable bit on lots of files(please be careful guys).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897030 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 22:09:43 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 693c05aacd Fix javadoc calls.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894025 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:18:20 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Bruno Busco 8820cd85c1 Sorry, it should have been added to example only, not to birt component also.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892659 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 20:54:26 +00:00
Bruno Busco cafa721fec Added birt webapp in the example component. This was erroneusly omitted in previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892658 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 20:47:20 +00:00
Bruno Busco 63ebc81a33 Moved Birt demos in the Example application. (OFBIZ-3352)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892633 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 18:22:09 +00:00
Hans Bakker 57463f1f36 too many files copied over from the addbirt branch: corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892454 13f79535-47bb-0310-9956-ffa450edef68
2009-12-19 09:22:29 +00:00
Hans Bakker a2982cef6d Although we do not experience compile problems here, there were some problems as reported https://issues.apache.org/jira/browse/OFBIZ-3353. which should be fixed now, contribution by chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891180 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 10:44:27 +00:00
Bruno Busco 98f577b977 Moved TabBar Menus from the "body" decorator-section to the "pre-body" decorator section.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890490 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 21:38:45 +00:00
Hans Bakker 141a75160f remove empty files, svnignore all files in the runtime log and tempfiles directory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890204 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 07:29:05 +00:00
Hans Bakker f9e1b11bde Merge birt branch 831204:886087 and 831209:885099. A contribution by Antwebsystems employee Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890175 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 04:41:28 +00:00