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
Hans Bakker
ea3a88e1a6
Upgrade Axis1 to Axis2. Ofbiz now supports complex parameters in webservices including WSDL generation. see OFBIZ-3363 for more info. A contribution of Antwebsystems employee Chatree
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892712 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 07:31:58 +00:00
Jacques Le Roux
7fd6e14864
A patch from Si Chen "wsdl generated is not correct for Apache Synapse and Visual Studio" ( https://issues.apache.org/jira/browse/OFBIZ-3299 ) - OFBIZ-3299
...
The WSDL generated by ModelService is not correct for Visual Studio or Apache Synapse, causing Web services not to work properly. The soap:action tag is missing the URI for soapAction and needs to specify that this style is "rpc" for RPC/literal.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890245 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 09:35:15 +00:00
Scott Gray
9273c5b478
I noticed during test runs that the same eca rules are being checked multiple times, this is because the test run loads multiple dispatchers with each calling ServiceEcaUtil.readConfig() which blindly adds the rules to each cache entry regardless of whether they are already present or not.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889919 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 10:50:28 +00:00
Jacques Le Roux
47c9613346
Some easy documentation (cwiki) links changes following r888510
...
I have found a way to fix tinylinks :D http://confluence.atlassian.com/pages/viewpage.action?pageId=162988142
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888559 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 20:23:23 +00:00
Bilgin Ismet Ibryam
ee59a11813
Fix for my previous commit in r886727 - added a new mapping for java.sql.Date to xsd:date
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886915 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 20:45:51 +00:00
Bilgin Ismet Ibryam
ee1cf7c139
Fixed wsdl generation for ofbiz services.
...
- Replaced java.util.Date with java.sql.Date because the latter is used in ofbiz services.
- Replaced soap binding style from document to rpc, as this is the expected style in SoapEventHandler, ie the service name element, wrapping all the parameter elements in the soap body.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886727 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 10:01:22 +00:00
Adam Heath
5baa6186e1
Switch UtilCache.values() to return a Collection instead of a List.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885270 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 21:23:38 +00:00
Jacques Le Roux
2777b83223
Fix r885091 where isNotEmpty has been used by error instead of isEmpty
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885092 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 13:59:45 +00:00
Jacques Le Roux
c72b29cb1f
Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux
4e0d303e06
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883507 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:42:18 +00:00
Jacques Le Roux
8ae9319710
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.size == 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883492 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 20:34:27 +00:00
Adam Heath
820d11eb97
Deprecate UtilCache constructors, and add a create helper function.
...
This is the first step to making utilCacheTable concurrent, and
non-blocking. To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Jacopo Cappellato
c3ee42f73a
New improved version of an enhancement to the service framework after I reverted my first one because it was causing some issues with service validations.
...
Added two new IN parameter, internally (and automatically) set for service definitions:
login.username
login.password
They are already used by the authorization service ("userLogin") to authorize the user to the service call and to retrieve the userLogin object (if the user is authorized).
They can be passed to the service in the input context in place of the userLogin object: this is useful when the service is invoked from a remote system (thru SOAP etc...).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883056 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 10:23:09 +00:00
Jacopo Cappellato
c55722b2e3
Reverted change I did in 882187 because Bilgin Ibryam has reported an issue with it (it is causing an error in services which require auth).
...
I will investigate more and provide a better fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882836 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 07:28:20 +00:00
Jacopo Cappellato
23a095ab67
Added two new IN parameter, internally (and automatically) set for service definitions:
...
login.username
login.password
They are already used by the authorization service ("userLogin") to authorize the user to the service call and to retrieve the userLogin object (if the user is authorized).
They can be passed to the service in the input context in place of the userLogin object: this is useful when the service is invoked from a remote system (thru SOAP etc...).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882187 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 16:06:43 +00:00
Scott Gray
c3d2b880de
Delay the completion of the testServiceEcaGlobalEventExec test to allow the global ecas to complete before the next test is run, fixes OFBIZ-3124 reported by Jeremy Wickersheimer
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835548 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 21:13:49 +00:00
Scott Gray
f69cbf5456
Don't attempt to cast Service Eca Set Field values to string after formatting, fixes ClassCastException caused by when using certain formats
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835541 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 20:57:36 +00:00
Jacques Le Roux
c8372e6329
Fix bugs I introduced at r833725 converting while loops to enhanced for loops, thanks to Todor Spasov on dev ML.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834444 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 12:01:37 +00:00
Jacques Le Roux
ac889d7a13
A modified patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - entityext" ( https://issues.apache.org/jira/browse/OFBIZ-3108 ) - OFBIZ-3108
...
I replaced 4 while loops by for loops. Doing that I removed the empty checks. So I also used a FastList in StrungUtile.split() which I also refactored a bit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833725 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 18:14:22 +00:00
Jacopo Cappellato
816a5c1e67
Added the ability to set the exportAll flag in the RemoteDispatcher from a configuration file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831176 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 01:10:25 +00:00
Jacopo Cappellato
1755bb5560
Added demo truststore file to be used by client applications invoking services using the RemoteDispatcher (see for example the ExampleRemoteClient class).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829476 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 01:00:28 +00:00
Scott Gray
8a46a8ae24
Fixed a bug in the RouteEngine service engine (engine="route") where no ECAs were being triggered when running a route service asynchronously, this is caused because in general ECAs aren't triggered until a service is called synchronously but the RouteEngine was simply returning instead of doing a runSync on a separate thread. Fixed this by changing the RouteEngine to extend the GenericAsyncEngine and letting it handle the async calls in the same way it does for other engines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828839 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 20:27:10 +00:00
Scott Gray
d360614c52
When scheduling a service to be run do it within it's own transaction.
...
This resolves a bug I encountered where a long running (couple of minutes) service was scheduling jobs but the poller was unable to get a lock on those JobSandbox rows which prevented the poller from queuing any jobs at all for the duration of the service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@828289 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 03:19:21 +00:00
Adrian Crum
9ee18d37c5
Updated client code to use the new Delegator factory method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adrian Crum
7fa08f9079
Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum
a4d68934c9
Converted GenericDelegator concrete class references to Delegator interface references.
...
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Jacques Le Roux
52a03030bb
A new feature from Shi Yusen ( https://issues.apache.org/jira/browse/OFBIZ-2948 ) - OFBIZ-2948
...
This change will make it possible to invoke both static method and instance method. See http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#invoke(java.lang.Object,%20java.lang.Object...)
Thanks to Scott for optimisation advice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819281 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 10:35:21 +00:00
Scott Gray
2afbb75457
Get rid of a whole pile of unnecessary string instantiations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818665 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 23:49:02 +00:00
Adam Heath
69a9cfb394
Fix typo in runAsync verbosity message.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@816007 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 23:24:24 +00:00
Adam Heath
c8abe01fa5
Apply patch from OFBIZ-1023, adding returnSuccess(List); the javadoc
...
from the patch wasn't used, however.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815916 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 18:10:49 +00:00
Adam Heath
0cdcfa6189
Service definitions are now wrapped with their filename and line
...
number, for easier debugging.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812783 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 06:15:08 +00:00
Adrian Crum
74ea95889c
Reverted rev 802567.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00