David E. Jones
17d28a89cf
Applied patch from Adrian Crum in Jira #OFBIZ-1245, fixes some inconsistencies in previous handling of failure and error messages, a handling of failure and error messages and cleanes up some things related to the recent result-to-result changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@591241 13f79535-47bb-0310-9956-ffa450edef68
2007-11-02 06:42:53 +00:00
Andrew Zeneski
69b57d8123
reverted last change
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@590266 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 18:51:27 +00:00
Andrew Zeneski
fef329eeaf
added code to display inventory across all facilities as well as the inventory associated with just the facility from the store
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@590265 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 18:47:51 +00:00
David E. Jones
2597f80af3
Based on feedback from Adrian changed to merge error messages instead of overwriting them; part of OFBIZ-1237
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589977 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 07:19:17 +00:00
David E. Jones
202d5c420d
Fixed issue with new Blob on the entity level and ByteBuffer on the service level stuff related to persisting actual bytes in the db related to persisting actual bytes in the db instead of an object wrapper; also some improvements to the null value and entity, etc; the main issue here was reported by guo weizhan
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 06:35:19 +00:00
Scott Gray
6b6d7e6c78
Fixed problem with creating RecurrenceRules, reported by William Perng OFBIZ-1368
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@588783 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 21:49:05 +00:00
Adam Heath
759fc3cd6c
Undo revision 586470; I missed a spot in checkAuth that changed
...
the context, after a call to makeValid.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586938 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 19:13:06 +00:00
Adam Heath
9aed331614
Remove 2-arg vararg variants; beanshell doesn't handle overridden
...
methods correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586924 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 18:18:11 +00:00
Adam Heath
af0d38ddbc
Turn on unchecked warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586857 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:09:55 +00:00
Adam Heath
f1a750a4ce
The last of the java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586856 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:08:17 +00:00
Adam Heath
65fee88f24
All error message lists and maps are now make use of java 1.5
...
features.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586855 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:06:00 +00:00
Adam Heath
77b1dae239
Another set of internal java 1.5 markup changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586854 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:04:22 +00:00
Adam Heath
b12475b471
java 1.5 markup for internal code/methods/fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586853 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:02:48 +00:00
Adam Heath
2c038c9407
Another set of java 1.5 changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586852 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:00:41 +00:00
Adam Heath
8223e66e22
getLocalServiceMap/getGlobalServiceMap are generified, so modify the
...
internal callers to take advantage of that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586851 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:57:48 +00:00
Adam Heath
6800519f7e
ServiceDispatcher.runLog now has generics markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586850 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:55:49 +00:00
Adam Heath
ef4d4cde1b
Don't instantiate new java.lang.Number instances.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586849 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:53:56 +00:00
Adam Heath
f107f75aed
All things delegator/entity are now generified.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586848 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:52:32 +00:00
Adam Heath
9b0735ce53
Use ComponentConfig generics.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586847 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:50:49 +00:00
Adam Heath
cc9d9de222
Made UtilXml generics usage.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586845 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:41:47 +00:00
Adam Heath
9342c80521
The internal serviceInvoker methods were returning map in all cases.
...
So, change the return type to match.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586839 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:11:39 +00:00
Adam Heath
a751352f92
Don't use string addition.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586835 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:08:06 +00:00
Jacques Le Roux
ae76370a04
Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
...
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl
Those links were useless before also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Adam Heath
8a1a1ecb52
allowCallbacks() was generified too early.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586660 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 03:34:50 +00:00
Adam Heath
6299562937
Fix up another call to ModelServiceReader.getModelServiceMap so that
...
it uses generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586590 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:45:08 +00:00
Adam Heath
8ce0dfc0ee
Add generics markup to code that deals with UtilCache directly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586479 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:27:45 +00:00
Adam Heath
aedfa46991
loadClass calls now have generics markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586478 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:26:16 +00:00
Adam Heath
d8a8d6a922
Use generics markup from entity engine.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586477 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:24:56 +00:00
Adam Heath
ffeda205f6
Java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586475 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:23:50 +00:00
Adam Heath
a20d5e5b5c
Make use of UtilXml's generics markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586473 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:22:10 +00:00
Adam Heath
4c9f4fc83b
No longer return anything from checkAuth; instead, just modify the
...
passed in context.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586470 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:20:44 +00:00
Adam Heath
04a2050667
Don't use a single sendCallbacks method, with different value
...
arguments; it's not type-safe. Instead, use 3 variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586468 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:18:53 +00:00
Adam Heath
04ed802604
Start of java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586467 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:17:07 +00:00
Adam Heath
90dc49d692
Collapse the nested collections in getServiceEventRules.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586464 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:12:06 +00:00
Adam Heath
c6fc1e414e
Append msg to the buffer in getMessage; got lost.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585878 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 06:01:03 +00:00
Adam Heath
37abcb458f
Add varargs variants to framework/service.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585857 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:14:01 +00:00
Adam Heath
a87922cae1
Add helper method for checking/making service context maps.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585856 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:12:44 +00:00
Adam Heath
f67fa00c43
Remove most uses of LinkedMap, and replace with LinkedHashMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585854 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:11:26 +00:00
Adam Heath
71b996b591
Switch from HashMap to FastMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585852 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:09:50 +00:00
Adam Heath
f86b842da5
Use the varargs variants in the delegator.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585851 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:08:11 +00:00
Adam Heath
2b638d4802
Use varargs for reflection access.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585850 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 04:06:43 +00:00
Adam Heath
503dcdcfb9
No need to use + when a StringBuilder already exists.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585806 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:59:02 +00:00
Adam Heath
ffad050836
Use StringBuilder instead of StringBuffer in framework/service.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585804 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:54:25 +00:00
Adam Heath
2ff7a8a575
Make use of the single-arg variants of makePK/makeValue, removeAll,
...
and clearCacheLine
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:46:57 +00:00
Adam Heath
5d2226ca82
Switch to local LRUMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585798 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:38:37 +00:00
Adam Heath
60df320b48
Use LinkedHashMap instead of LinkedMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585793 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:25:10 +00:00
Adam Heath
5048936900
Switch to collections class, from Vector/Hashtable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585788 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:18:34 +00:00
Adam Heath
70b72b96a9
Use System.currentTimeMillis() instead of new Date.getTime().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585784 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:13:02 +00:00
Adam Heath
d9732f5d00
While tracking down memory usage(using java 1.6 and jhat), I noticed
...
a significant amount being referenced from the xml definition files.
Interning the strings that are found reduced this usage noticably.
Each string found in an xml file ends up sharing the original array
from the incoming buffer, so more than is nescessary is held in
memory.
Additionally, several strings(for example, partyId) are referenced
several times. Interning them reduces the memory even further.
Closes https://issues.apache.org/jira/browse/OFBIZ-1291
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585761 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 00:02:59 +00:00
Adam Heath
abd5c3b0d6
Used LinkedHashMap/LinkedHashSet, from collections 1.2, instead of
...
using local variants. Deprecated OrderedMap/OrderedSet. The filed
patch removed them, but that might break downstream code, so I'll
leave them in for now. Closes
https://issues.apache.org/jira/browse/OFBIZ-1324
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585679 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 20:37:37 +00:00