Commit Graph
367 Commits
Author SHA1 Message Date
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
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
Scott Gray 123c06717f Removed recurrence info checking when reloading crashed jobs, fixes OFBIZ-2974. I can't see any reason why a crashed job would already have been rescheduled considering that only happens when a job completes or fails.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899716 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 17:07:06 +00:00
Scott Gray 0d33c0b520 When reloading crashed jobs, only check for jobs with a SERVICE_RUNNING status, pending and queued jobs will get picked up by the next poll so there is no need to reload them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899715 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 17:07:00 +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
Bilgin Ismet Ibryam 34873e17d6 Applied patch from jira issue OFBIZ-3394 - Axis2 SOAP implementation does not have types defined for col-* elements.
The patch adds complex type for col-Collection element in the generated wsdl.
 
Thanks to Chatree Srichart and Chris Snow. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897820 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 09:44:28 +00:00
David E. Jones c2ee80ee52 A few improvements to the ArtifactInfo stuff to display more complete info, especially about services, and fix issue with controller request events that were not just plaing service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897387 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 07:26:58 +00:00
Adrian Crum 7e92260bb7 A simpler version of my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896649 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 20:07:53 +00:00
Adrian Crum 7ac3834321 Fixed a bug in TemporalExpressions.Union where the next(Calendar cal) method returned the next date found in the union, not the next chronological date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896642 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 19:46:18 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +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 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
Hans Bakker a6f58e1d8c make the soap tests independent of the application component, contribution by chatree, suggestion by Scott
detail:
1. change from ProductCategory and Product entity to Testing and TestingNode entity in testSOAP service
2. insert login.username and login.password attribute document in message part of WSDL
3. change type of eepk- and eeval- element to map-Map and insert its document in WSDL
4. insert document for cus-obj element in WSDL

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893087 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:47:20 +00:00