Commit Graph
13667 Commits
Author SHA1 Message Date
Adam Heath 5da12fa6cd Move all JSON converters to a separate class, change the collection
converters that used to use JSON back to calling toString, and implement
separate JSON conversion.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910112 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:44:39 +00:00
Adam Heath a24c178c3e StringToEnum conversions now go thru the creation system.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910111 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:41:52 +00:00
Adam Heath 0bbbb00531 Implement a creation framework; this allows creaters to provide
optimized versions of converters.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910110 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:41:19 +00:00
Adam Heath ba40d13675 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910109 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:40:44 +00:00
Adam Heath 8d00d8d2fa Improve the targeted class convert methods, to have a more strict
generics type.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910108 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:39:53 +00:00
Adam Heath 62861a8ed5 AbstractConverter now implement ConverterLoader, and thee register call
was moved to loadConverters().

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910105 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:39:03 +00:00
Adam Heath 68e313b5d0 In loadConverters, if the contained class implements ConverterLoader,
call it's loadConverters method.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910104 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:38:26 +00:00
Adam Heath 89390ab5fa Make the enum converters extend AbstractConverter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910103 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:37:52 +00:00
Adam Heath 150b144e44 Protect against public classes with non-public constructors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910101 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:37:14 +00:00
Adam Heath 2d278dde6d getSourceClass and getTargetClass are no longer final.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910100 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:36:46 +00:00
Adam Heath ea485e191f Make AbstractLocalizedConverter extend AbstractConverter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910099 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:36:11 +00:00
Adam Heath 5cafceca54 Make AbstractLocalizedConverter more like AbstractConverter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910098 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:35:41 +00:00
Adam Heath c436afc999 Remove checkExtendsImplements; in actuality, each converter should
handle this itself.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910097 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:35:13 +00:00
Adam Heath 732a9b62d6 Implement unsynchronized(non-blocking) access to converterMap and
noConversion.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910096 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:34:46 +00:00
Adam Heath 31976663c0 Remove temporary values variable in getConverter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910095 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:34:13 +00:00
Adam Heath 590a2a0a9b Use generics for loop in loadContainedConverters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910094 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:32:49 +00:00
Adam Heath d3a12cdd13 Remove debug print statement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910093 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 22:32:21 +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 6635cfdc25 Added two new automated tests for production runs; fixed a bug (header costs not considered by the getProductionRunCost service) and adjusted automated test accordingly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910004 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 12:49:55 +00:00
Jacopo Cappellato fa7eebb420 Added assert statement to test the service getProductionRunCost
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909992 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 08:54:58 +00:00
Jacopo Cappellato a1b37c0255 No functional change: grouped together the services dealing with creation of production runs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909991 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 08:53:42 +00:00
Jacopo Cappellato a2b75f2ebc Automated test for service getProductCost
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909985 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 08:34:48 +00:00
Jacques Le Roux 1aaa73329d Label for ExampleLookupFields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909925 13f79535-47bb-0310-9956-ffa450edef68
2010-02-13 22:48:12 +00:00
Adrian Crum 7eb22acb3a Test XStream serialization/deserialization of GenericValue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909858 13f79535-47bb-0310-9956-ffa450edef68
2010-02-13 17:45:11 +00:00
Adam Heath 1d4257f190 Fix ordering of Enum converter class comparisons.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909718 13f79535-47bb-0310-9956-ffa450edef68
2010-02-13 03:54:42 +00:00
Adrian Crum 668e940a69 Added the XStream library to the project:
http://xstream.codehaus.org/


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909650 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 23:09:20 +00:00
Adam Heath 5aba6d47a1 Fix a few typos.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909543 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 18:10:26 +00:00
Jacopo Cappellato 8db8db7ae8 Automated test for the product standard cost algorithm.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909331 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 10:12:37 +00:00
Jacques Le Roux 4f74dcaa14 A patch from Sascha Rodekamp "Allow to quit a layered lookup with Esc key" (https://issues.apache.org/jira/browse/OFBIZ-3451) - OFBIZ-3451
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909312 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 09:45:05 +00:00
Jacopo Cappellato 63eb001a41 Fix for a couple of production run related bugs discovered playing with new automated tests:
* wrong date field tipy was set for Lot records
* the finished product id was not set in accounting transactions related to production run header costs


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909308 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 09:30:13 +00:00
Jacopo Cappellato 8e1d2b3275 Fixed wrong file names in LICENSE file for Docbook files for which Hans received specific distribution permissions from one of the authors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909286 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 08:13:21 +00:00
Bilgin Ismet Ibryam cd3ec88938 Fixed "create quote from request" link. Reported in user list by James
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909281 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 07:53:01 +00:00
Hans Bakker 79258b9d6f id in facility contactmech was not generated new, could create duplicattion
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909258 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 06:37:47 +00:00
Scott Gray 6646b02f32 Added ebaystore build folder to .gitignore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909217 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 03:33:23 +00:00
Scott Gray 5929b3b830 Moved username.lowercase and password.lowercase security property checks from calling events to the userLogin service itself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909216 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 03:33:20 +00:00
Andrew Zeneski e5cae56b68 fix to call onchange events when the fieldlookup sets a field's value; same as in lookup.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909186 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 00:20:19 +00:00
Jacopo Cappellato a9a3d19f71 Implemented tests for accounting transactions posted for a production run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909098 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 18:13:32 +00:00
Erwan de Ferrieres beeb73e0fb Updating classpath with framework/base/build/gen-src/javacc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909064 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 16:33:27 +00:00
Jacopo Cappellato 77b0231262 New automated test for a complete quick execution of a production run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908984 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 14:16:32 +00:00
Jacopo Cappellato 7bac599f27 Applied patch cotributed by Chris Snow in OFBIZ-3454: deleteWorkEffort service does not remove related WorkEffortFixedAssetAssign.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908948 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 12:39:28 +00:00
Jacopo Cappellato 6ed667e6d9 Added newly added (in rev. 908894) renderDisplayField input arguments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908912 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 10:33:19 +00:00
Erwan de Ferrieres 24a4a3a21a German translation for property loginmapprocs.password_not_equal_verfiy_password in SecurityextUiLabels was wrong - OFBIZ-3462
(https://issues.apache.org/jira/browse/OFBIZ-3462)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908907 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 10:04:42 +00:00
Erwan de Ferrieres 0d80780800 Added german translation for property productpromoworker.promotion_code_not_valid in OrderErrorUiLabels
(http://issues.apache.org/jira/browse/OFBIZ-3463) OFBIZ-3463

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908903 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:50:58 +00:00
Erwan de Ferrieres ea0c1b1cbb Reformating OrderErrorUiLabels, removing trailing spaces and white lines
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908901 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:48:39 +00:00
Erwan de Ferrieres e818c214b4 Formating the error message in userLogin Service : adding spaces in error messages
(https://issues.apache.org/jira/browse/OFBIZ-3460) OFBIZ-3460

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908897 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:39:44 +00:00
Erwan de Ferrieres 311e0d14ac Adding a new field type in forms' display so we can display an image and keep a list's consistency
Example :
<field name="displayProduct" use-when="!&quot;foo&quot;.equals(productId)">
  <hyperlink target="EditProduct" image-location="/images/next.gif" also-hidden="false"/>
</field>
<field name="displayProduct" use-when="&quot;Cap&quot;.equals(productId)">                                                                                                                                                                         
  <display type="image" image-location="/images/ofbiz.ico"/>
</field>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908894 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:27:01 +00:00
Adam Heath 02f0f513ea Add allowJsonResolve support.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908715 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:50:00 +00:00
Adam Heath 43fd79184f Allow readObject/writeObject to fall back to JSON.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908714 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:48:41 +00:00
Adam Heath afd908e3e4 Switch the collection/string converters to the json parser.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908713 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:48:07 +00:00
Adam Heath 852ceb0866 JSON reading/writing. May seem like it is uneeded, but a later commit
will add support for this becoming more extensible.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908712 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 22:47:30 +00:00