Commit Graph
381 Commits
Author SHA1 Message Date
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
Adrian Crum de50263021 Built out the new service parameter description feature. Descriptions defined in service interfaces are not being copied to the implementations - so that needs to be fixed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981067 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 15:16:46 +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 e00b1cf382 Add a description element for service attributes, should make documenting some services a little easier. Still need to display it in webtools somewhere.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981018 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:26:42 +00:00
Scott Gray 18c40989d5 ServiceDispatcher method was returning a call to itself, stumbled across it by chance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959453 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 21:58:32 +00:00
Erwan de Ferrieres e710059ab7 OFBIZ-3798 Add xml-rpc engine on serviceengine - A new patch from Nicolas Malin (https://issues.apache.org/jira/browse/OFBIZ-3798) - Also updating xml-rpc libs from 3.0.1 to 3.1.2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959261 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 10:52:12 +00:00
Erwan de Ferrieres 0803e3c6f1 Reverting previous commit as it wasn't fully reviewed and was producing errors. Sorry guys...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959076 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 19:19:55 +00:00
Erwan de Ferrieres ad183f5cea OFBIZ-3798 Add xml-rpc engine on serviceengine - (https://issues.apache.org/jira/browse/OFBIZ-3798)
A patch from Nicolas Malin - adding a generic service to call xml-rpc server. The goal is to have a technical interface to make calls directly from mini-lang.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959071 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 18:43:56 +00:00
Adam Heath 7135ac1de0 No longer use deprecated UtilMisc.staticWait().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958271 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:24 +00:00
Erwan de Ferrieres 40615fed9f Using a LocalDispatcher when having a groovy service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@957182 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23 13:08:00 +00:00
Jacques Le Roux 6193dd4e53 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux 63fd94e778 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Adrian Crum 043c15ee63 Removed deprecated temporal expression class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940559 13f79535-47bb-0310-9956-ffa450edef68
2010-05-03 18:30:02 +00:00
Bilgin Ismet Ibryam 8e26a2b0e9 Updated the descriptions of some TemporalExpressions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935695 13f79535-47bb-0310-9956-ffa450edef68
2010-04-19 18:27:08 +00:00
Bilgin Ismet Ibryam 1562b0a308 Added description field to TemporalExpression entity and related data plus forms. Part of https://issues.apache.org/jira/browse/OFBIZ-3521
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935387 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:41:20 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Adam Heath f2bfef6274 Create a main-jar macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935380 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:37 +00:00
Jacques Le Roux a0b01446aa A patch from Bob Morley "Resolve java warnings exposed in Eclipse (Party part of OFBIZ-3100)" https://issues.apache.org/jira/browse/OFBIZ-3589 - OFBIZ-3589
Party was very clean; only a few minor changes - also added a @SupressWarnings("serial") in framework's MimeMessageWrapper (noticed when fixing iteration from this in Party).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935269 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:25:40 +00:00
Scott Gray f8354e3fa4 Get rid of a bunch of Integer instantiations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935163 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:27:15 +00:00
Adam Heath 8bfe0b1b51 Reduce excessive service error exception logging, removes 2 cases of the
logged exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932103 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:36 +00:00
Scott Gray 7bd3330fc6 Remove some unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931773 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:44 +00:00
Vikas Mayur ff81b42928 Extending the <required-permissions> tag in service model such that it can contain one or more occurrence of <permission-service> tag.
This is helpful when there is a need to check more then one permission using a permission service.

Applied framework only part from my patch from jira issue OFBIZ-3632 (https://issues.apache.org/jira/browse/OFBIZ-3632)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930536 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 16:07:18 +00:00
David E. Jones 8e3edae07f Merged multitenant20100310 branch into the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927271 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 04:42:26 +00:00
Adrian Crum 420751e5fd Some improvements to GroovyEngine.java to make Groovy services work more like mini-language and/or screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927217 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 23:01:16 +00:00
Adrian Crum a88013f96c Restored the original Binding setup used for Groovy scripts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927173 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 20:23:58 +00:00
Adrian Crum c81c12d286 Added the ability for services to invoke Groovy script methods. Groovy service methods do not have parameters; parameters are passed in the context - just like simple method services.
Removed long comment (unused cache testing code) in GroovyUtil.java.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926780 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 21:05:56 +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
Jacopo Cappellato 3c5a4d4764 By default, service debug is enabled; thanks to Hans Bakker for reporting this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916634 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 10:03:45 +00:00
Jacopo Cappellato ef3fcd2072 Added flag to switch off the debug mode for services that is causing out of memory errors for JVM PermGen space.
Warning: the default setting is still set to true but it is highly recommended to set it to false, especially for non-development instances (production, demo etc...).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916608 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 08:01:21 +00:00
Jacopo Cappellato 880b166319 Fixed formatting, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916586 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 06:42:05 +00:00
Adrian Crum a6d0392b58 Created a JMS serializer facade class to decouple JMS code from XmlSerializer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910385 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 03:38:41 +00:00
Adrian Crum 583d012e4b Created a SOAP serializer facade class to decouple SOAP code from XmlSerialize.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910060 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 18:38:34 +00:00
Jacopo Cappellato 75a3c9f270 Added a bunch of missing license headers; we'll have to pay more attention on this in the future.
Still some work needs to be done in order to have the codebase inline with the ASF policies as it used to be.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 11:24:45 +00:00
Adam Heath cf43138ac3 Fix closing of job list iterator if an exception happens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904982 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 06:25:04 +00:00
Adam Heath 6465fa07a1 Remove one constructor, using a single one for both variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903810 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:57:05 +00:00
Adam Heath 6760492ff1 Since the only way to access the parsed services is thru static
helper methods, it means the only callers will be local to the current
thread.  This then leads to not having to synchronize the parsing of the
xml data.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903809 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:56:37 +00:00
Adam Heath 649c3dc24c Remove unused private accessor methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903808 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:56:02 +00:00
Adam Heath 7468d7efca Make all methods private, except for the static ones; since it isn't
possible to create an instance outside of this class, and the existing
static methods don't store the instance they create, the methods aren't
can't be used outside of this class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903807 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:55:19 +00:00
Adam Heath 34f7d2f14c Make these constructors private; nothing is actually instantiating these
classes, except locally for reading purposes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903805 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:54:45 +00:00
Adam Heath 7ab0b4dea7 Remove several methods from the runtime-compiled wrapper class; this
removes use of 2.1M of permgem memory.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903803 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:53:14 +00:00
Adam Heath e768559d39 Bother; these uses of FastMap are actually rather stupid. The map is
only populated once at startup, then never modified again.  What I have
discovered is that, while FastMap is supposed to be more stable in
memory allocation and cpu utilization, there was one leg of it's
internal structure that was *extremely* unbalanced.  Ie, consider a
binary tree with 128 nodes, with 7 top level nodes, and then all the
rest of the nodes are on one side of the tree.  Since these maps are
never modified after startup, we might as well just use a HashMap here.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903802 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:52:27 +00:00
Adrian Crum 221df76567 Small fixup for previous commit plus additional documentation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900839 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 16:47:34 +00:00
Adrian Crum e3b9a60e28 A lot more work on the temporal expressions. The previous implementation would handle simple expressions just fine, but complicated expressions didn't work. I also added a pretty printer class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900662 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 05:57:10 +00:00
Adrian Crum 6231c1a3bd Minor fixup and JavaDoc fixes for temporal expressions. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900273 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 03:40:01 +00:00
Adrian Crum 377eecc699 Added a Substitution temporal expression. This solves Martin Fowler's conundrum - how to supply a substitute date for an excluded date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900217 13f79535-47bb-0310-9956-ffa450edef68
2010-01-17 20:57:19 +00:00
Adrian Crum a71bb71e0b Reorganized code in TemporalExpressions.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900050 13f79535-47bb-0310-9956-ffa450edef68
2010-01-17 03:13:19 +00:00
Adrian Crum ebb1ed0a37 Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900026 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 21:09:53 +00:00
Adrian Crum 2af56291a0 Temporal Expression bug fixes.
Internationalization note: this commit contains new UI labels.

Deprecated the time of day expression - it was a bad design. Replaced it with separate hour and minute expressions.

Fixed the createTemporalExpression service. It wouldn't allow user-specified expression IDs.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900024 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 20:59:37 +00:00
Adrian Crum 49ab6dd233 The start of some code cleanup and bug fixing in Temporal Expressions. Added a simplified constructor to the range expressions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899833 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 22:26:04 +00:00