Commit Graph
27737 Commits
Author SHA1 Message Date
Adrian Crum fd4ea93d14 Fix NPE caused by recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-5875.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639551 13f79535-47bb-0310-9956-ffa450edef68
2014-11-13 23:30:26 +00:00
Jacopo Cappellato 35a4d4f4a8 Improved unit test that was failing when executed in certain platforms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639373 13f79535-47bb-0310-9956-ffa450edef68
2014-11-13 15:39:54 +00:00
Jacopo Cappellato 06abae3dfa Enhanced the OFBiz DSL with an alternative way of invoking a service; converted one service call in OrderView.groovy to demonstrate its usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638801 13f79535-47bb-0310-9956-ffa450edef68
2014-11-12 14:45:56 +00:00
Jacopo Cappellato ddbb176a9a Converted the OrderView.groovy script to use the runService DSL method instead of the dispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638074 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 12:51:53 +00:00
Jacopo Cappellato d896026f58 No need to import the EntityQuery class when the new OFBiz DSL methods (select or from) are used to use the EntityQuery builder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638056 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:49:10 +00:00
Jacopo Cappellato e24c111f05 Added to the OFBiz DSL the ability to invoke the new EntityQuery builder.
Modified two calls in OrderView.groovy to demonstrate the new feature.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638054 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:33:15 +00:00
Adrian Crum 5510c3ea5b Upgraded httpclient libraries. HttpClient defaults to TLS instead of SSLv3.
http://www.apache.org/dist/httpcomponents/httpclient/RELEASE_NOTES-4.3.x.txt

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637883 13f79535-47bb-0310-9956-ffa450edef68
2014-11-10 15:15:59 +00:00
Nicolas Malin b6518f08a0 Correct createPartyRole call with pk collision risk detected by Supatthra Nawicha on OFBIZ-5853, while waiting for discussion if revert of createPartyRole from entity-auto is need or not
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637721 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:30:26 +00:00
Nicolas Malin 1f17ccfa03 Correct parameter fields present direclty on target value instead of use the parameter's link element that generate for partyId this string : '∂yId' , thanks for Supachai Chaima-ngua and Francis Douet for the alert on OFBIZ-5847
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637716 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:18:02 +00:00
Nicolas Malin 5bbff9f365 Manage multi pk with sub-sequence on entity-auto (OFBIZ-5800),
Add the possibility to the entity-auto engine on the create action to manage entities with more than 2 primary keys which one is under sub sequence or fromDate, like PerfReview (employeePartyId, employeeRoleTypeId, perfReviewId) or PartyQual (partyId, partyQualTypeId, fromDate).

Improve return message for the create action if the entity value exist and the delete action if the entity value not exist instead of the database message error.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637596 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 21:00:55 +00:00
Jacopo Cappellato cc8f10a6c7 OFBIZ-5793 Enhanced logic to run product subscription expiry service only once when the subscription expires:
a) augment the OFBiz data model with the new field: Subscription.expirationCompletedDate
b) modify the algorithm of runServiceUponSubscriptionExpiry to also check whether the expiry service has already run, by checking that expirationCompletedDate is null.
if expirationCompletedDate is null (and the other conditions are satisfied), run the service in SubscriptionResource.serviceNameOnExpiry and update the date/time into expirationCompletedDate
if expirationCompletedDate is not null, skip the expired subscription and move to the next

Thanks to Ivan Cauchi for the patch (slightly modified by me).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637535 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 09:38:09 +00:00
Jacques Le Roux b4030cbc48 I forgot to commit this fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637089 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 12:45:32 +00:00
Adrian Crum 871ec276fb Fixed UtilProperties.java bug caused by removal of Javolution - https://issues.apache.org/jira/browse/OFBIZ-5857.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637064 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 10:08:40 +00:00
Adrian Crum 5f5f4fe087 Comment out recently added entity test because it is still having problems. I will look into this more later.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637063 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 10:07:32 +00:00
Adrian Crum da478e9144 Fix JS bug caused by recent screen widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-5856.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637050 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 08:24:53 +00:00
Scott Gray 63f5adf671 Fix bug in EntityQuery where the moment specified in filterByDate(moment) was not being honoured. Adds a new method filterByDate(Timestamp, String...) to allow a moment to be specified when explicitly specifying filterByFieldNames. Thanks to Pritam Kute for the report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636970 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 21:43:39 +00:00
Adrian Crum 3e987a2402 Try to fix intermittent entity test failures.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636896 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 15:30:47 +00:00
Jacques Le Roux e511130439 Fixes the Poodle vulnerability following indications from "The Poodle fixer" at https://issues.apache.org/jira/browse/OFBIZ-5848
Note that this fix requires to use at least Tomcat 6.0.32 as explained at https://blogs.atlassian.com/2014/10/ssl-poodle/#comment-190966

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636869 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 13:19:10 +00:00
Jacques Le Roux 3e0382835b Fixes the Poodle vulnerability following indications from "The Poodle fixer" at https://issues.apache.org/jira/browse/OFBIZ-5848
We will certainly have to evolve this in the future because this correction forces the protocol to TLSv1.2

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636864 13f79535-47bb-0310-9956-ffa450edef68
2014-11-05 13:06:19 +00:00
Hans Bakker f67e5b0e87 role not checked for existence: https://issues.apache.org/jira/browse/OFBIZ-5845
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636495 13f79535-47bb-0310-9956-ffa450edef68
2014-11-04 02:45:29 +00:00
Hans Bakker a227fcfd04 use of wrong field name: https://issues.apache.org/jira/browse/OFBIZ-5846
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636493 13f79535-47bb-0310-9956-ffa450edef68
2014-11-04 02:39:56 +00:00
Adrian Crum f25e674873 Extract rendering code from ModelForm.java to rendering classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636437 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 20:46:34 +00:00
Adrian Crum 46fb78ef34 Remove unused methods from ModelForm.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636383 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 16:29:40 +00:00
Adrian Crum 087c291998 Cleaned up ModelScreen.java transaction handling - https://issues.apache.org/jira/browse/OFBIZ-4278.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636374 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 15:32:11 +00:00
Jacopo Cappellato 66daa32f1a Cleaned up and inproved the code that integrates Groovy in the OFBiz framework:
* Groovy services and Groovy events now use the same util methods from GroovyUtil to parse/execute the scripts
* the script base class is now specified in the base/config/groovy.parameter file rather than in the serviceengine.xml
* the same util methods (DSL) are now available to all Groovy scripts (executed as services, events or widget actions)
* removed a series of unused methods in the GroovyUtil class



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636346 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 13:15:29 +00:00
Adrian Crum 8e57e863f0 Major overhaul of ModelForm.java:
1. Class and its nested classes were not thread-safe.
2. Bugs caused by C&P errors.
3. The "extends" feature had problems:
  3.1 Only a few class members were inherited from the parent form.
  3.2 Child forms modified the state of the parent form.
4. Bad null/empty checking.
5. Inefficient code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636339 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 12:42:03 +00:00
Jacques Le Roux 2aa558c25e Now that some incompatible changes have been committed in the specialpurpose components in trunk HEAD we can't no longer run the specialpurpose components in R13.07
Good to have that in svn history though.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636298 13f79535-47bb-0310-9956-ffa450edef68
2014-11-03 09:47:04 +00:00
Adrian Crum 833f3b4dad Bug fix and code cleanup in form widget:
1. Cache keys must include delegator name. Multiple forms based on the same entity name might be completely different due to the delegator being used.

2. Do not hold references to ModelReader and DispatchContext after construction.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636158 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 17:48:20 +00:00
Adrian Crum 25a4a9997f Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636139 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 14:22:29 +00:00
Adrian Crum 9275221812 Delegate most tree widget actions to ModelWidgetAction. Tree nodes will support an <actions> element like other widgets, but that is still a WIP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636137 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 14:03:02 +00:00
Adrian Crum 2ac5f3cb46 Delegate most menu widget actions to ModelWidgetAction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636102 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 12:03:09 +00:00
Adrian Crum 21e094915a Delegate most form widget actions to ModelWidgetAction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636096 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 09:08:21 +00:00
Adrian Crum 4a62dd6107 Move form widget artifact info code to a separate class. This eliminates a lot of duplicate code and it should speed up artifact info gathering. Also converted form widget to reuse some of the screen widget action models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636077 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 01:21:39 +00:00
Adrian Crum d389cdc2a9 Revert rev 1636071. I broke something.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636073 13f79535-47bb-0310-9956-ffa450edef68
2014-11-02 00:06:34 +00:00
Adrian Crum 89ad95e8d7 Move form widget artifact info code to a separate class. This eliminates a lot of duplicate code and it should speed up artifact info gathering. Also converted form widget to reuse screen widget action models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636071 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 23:47:47 +00:00
Adrian Crum 46f16abccd Add a form field visitor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636070 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 23:43:06 +00:00
Adrian Crum f69d5fbe73 Move screen widget artifact info code to a separate class. This eliminates a lot of duplicate code and it should speed up artifact info gathering.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636031 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 20:15:27 +00:00
Adrian Crum d96c82438c Add a screen widget action visitor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636030 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 20:13:41 +00:00
Adrian Crum de2bae353a Add a screen widget model visitor. This will enable us to externalize a lot of unrelated code that has been included in the models, as well as provide a cleaner API for the renderers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635990 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 16:57:07 +00:00
Adrian Crum 0b0aedacc6 Continue working on making widget models thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635984 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 16:11:46 +00:00
Adrian Crum 9b9ef5eea4 Remove unused rawString method from screen widgets. I will be committing a widget visitor soon, so if anyone really wants to generate screen widget XML they can create a visitor implementation for it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635964 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 15:13:12 +00:00
Adrian Crum 21c0969f4f Continue working on making widget models thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635961 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 14:56:07 +00:00
Adrian Crum a35f9e3b4e Continue working on making widget models thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635957 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 14:28:41 +00:00
Jacques Le Roux 1fe3e6de9c Comments out some Chinese duplicated labels, fixes a NL labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635946 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 13:22:05 +00:00
Jacques Le Roux 03c0951bf4 A partial patch from Pierre Smits for "Improvement of Dutch localization in Product" at https://issues.apache.org/jira/browse/OFBIZ-5434
jleroux: complete last patch


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635945 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 12:55:28 +00:00
Jacques Le Roux cb805c8525 OFBIZ-5434, reverts r1635916, to have a complete patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635921 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 11:08:08 +00:00
Adrian Crum 6976bd1fa6 Begin working on making widget models thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635917 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 10:49:29 +00:00
Jacques Le Roux 857439837a A partial patch from Pierre Smits for "Improvement of Dutch localization in Product" at https://issues.apache.org/jira/browse/OFBIZ-5434
jleroux: 3 parts were rejected (tool old patch)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635916 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 10:25:22 +00:00
Adrian Crum e7794e5824 Finish removing Javolution from the base component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635910 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:55:57 +00:00
Adrian Crum 8827dfa87a Remove Javolution from the webapp component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635909 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:32:53 +00:00