Commit Graph
27737 Commits
Author SHA1 Message Date
Jacopo Cappellato 4f78f82b1d Removed the old and no more used custom JSP taglib.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621979 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 13:31:31 +00:00
Jacopo Cappellato 9d4de1ee06 Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621977 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 13:15:26 +00:00
Jacopo Cappellato b939882980 Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621976 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 13:13:45 +00:00
Jacopo Cappellato a129f3631f Moved support for JSP Regions to the Attic.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621971 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 12:48:49 +00:00
Jacopo Cappellato 5dc38e6d35 Misc cleanups to some groovy scripts (no functional changes).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621956 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 10:20:21 +00:00
Jacopo Cappellato 30c092f2d2 Minor cleanups; no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621953 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:38:50 +00:00
Jacopo Cappellato b299e33825 Replaced * notation with specific class inclusion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621952 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:36:58 +00:00
Jacopo Cappellato 2a6a8e7347 Misc cleanups to the SimpleContentViewHandler class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621950 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:30:23 +00:00
Jacopo Cappellato 0083faf85b Greatly cleaned-up and simplified the EventFactory and ViewFactory classes used by the RequestHandler: they are now (mostly) immutable and thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621942 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 07:26:03 +00:00
Jacques Le Roux 5e87e1ea1a A patch from Nicolas Malin for "Convert ProductStore entites CRUD service from simple to entity-auto" https://issues.apache.org/jira/browse/OFBIZ-5741
I converted CRUD service to entity-auto for :

    ProductStoreCatalog
    ProductStorePaymentSetting
    ProductStoreEmail
    ProductStoreVendorPayment
    ProductStoreShipMeth
    ProductStoreRole
    ProductStoreKeywordOvrd
    ProductStoreSurveyAppl
    ProductStoreFinActSetting
    ProductStoreVendorShipment

I keep to service in mini lang ProductStore.
I add a new permission service on product store with the same template of produt and productCategory for more homogeneity.

I run manual test create/update/delete from product store screen with success and I run ./ant clean-all load-demo run-tests without error

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621937 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 07:10:35 +00:00
Jacques Le Roux f362ff2929 Git ignores /runtime/logs/birt but not runtime/tempfiles/README
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621856 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 17:26:30 +00:00
Jacques Le Roux 46fc8e3a44 I made a mistake earlier when I added framework/entity/lib/jdbc to .gitignore, this is better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621848 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 17:11:42 +00:00
Jacopo Cappellato 2aab9001fc Removed some trivial padding for info messages at startup that required the usage of an external (freemarker) util class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621820 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 15:03:25 +00:00
Jacopo Cappellato e4e0710c18 Removed old and unused experimental class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621810 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 14:44:19 +00:00
Jacopo Cappellato 8e5c0eb4c1 A series of clean-ups and modifications to RequestHandler, EventFactory and View Factory to make then (mostly) immutable and eliminate some potential concurrency issues that could happen at initialization. This is just a first pass.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621804 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 14:26:54 +00:00
Jacopo Cappellato 6545122723 Removed unused/obsolete request/screen context fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621801 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 14:11:32 +00:00
Jacopo Cappellato 2b384efa04 Increased the length of the logger column from 20 to 30 characters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621701 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 08:29:28 +00:00
Jacques Le Roux 16d8d2a132 A patch from Nicolas Malin for "Convert CostComponent and Subscription entites CRUD service from simple to entity-auto" https://issues.apache.org/jira/browse/OFBIZ-5742
I converted CRUD service to entity-auto for :
  CostComponent
  Subscription (only update)
  SubscriptionResource
  SubscriptionCommEvent

I ran manual test create/update/delete from product and subscription screen with success and ./ant clean-all load-demo run-tests without error


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621699 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 08:16:43 +00:00
Jacques Le Roux a8df43a739 Yikes, forgot to save this before r1621688 commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621695 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 07:23:18 +00:00
Jacques Le Roux 425ce1c003 A patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations in framework" https://issues.apache.org/jira/browse/OFBIZ-5737
more added/updated translations patch files for zh-TW locale

jleroux: 
I added the label
<value xml:lang="zh_TW">服務執行程式拋出一個異常</value>
by hand
Only 1 label was not added:
<value xml:lang="zh_TW">代號</value>
Because of the fuzziness and presence of several possibilities


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621688 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 06:51:33 +00:00
Jacopo Cappellato b20d598a67 Updated freemarker jar to the release candidate 01; waiting for the official release that should happen in mid October 2014.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621683 13f79535-47bb-0310-9956-ffa450edef68
2014-09-01 06:28:49 +00:00
Jacopo Cappellato bde211be6d Small optimization: two strings for sql statements are now stored as final strings in the SequenceBank object.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621599 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 15:41:52 +00:00
Adrian Crum 6c927d1112 Removed unnecessary public keywords from the LocalDispatcher interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621595 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 14:53:31 +00:00
Jacques Le Roux eb44087cd8 Upgrades Derby from derby-10.10.2.0.jar to derby-10.11.1.1.jar, tests OK (4 not relevant failures on Windows, we will get confirmation with Buildbot, or revert)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621581 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 10:18:38 +00:00
Adrian Crum fc272da011 Remove reference to DispatchContext from ModelServiceReader. The DispatchContext reference was only being used to get a Delegator reference, so we will use that instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621574 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 09:58:09 +00:00
Adrian Crum 1ac6edcab2 JavaDocs - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621571 13f79535-47bb-0310-9956-ffa450edef68
2014-08-31 09:08:36 +00:00
Adrian Crum 8f080966d3 Remove Javolution from DispatchContext.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621475 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 15:56:59 +00:00
Adrian Crum 8bcc227a48 Some work on ServiceDispatcher.java:
1. Remove Javolution.
2. Replace DCL design pattern with ConcurrentHashMap.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621466 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 14:47:53 +00:00
Adrian Crum fe096a298c Fixing some GenericDelegator method signatures to match the Delegator interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621460 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 13:38:24 +00:00
Adrian Crum 1f41988f38 GenericDispatcherFactory.java FIXME comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621454 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 13:01:39 +00:00
Adrian Crum f3e657b4d8 Move some GenericDelegator static methods to the Delegator interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621448 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 12:01:45 +00:00
Adrian Crum 0a76309879 Removed unnecessary public keywords from the Delegator interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621445 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 11:22:46 +00:00
Adrian Crum f14616dbdb Small code cleanup - use auto-boxing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621442 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:53:25 +00:00
Adrian Crum 4e38c83fbc Removed references to GenericDelegator from Delegator interface.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621439 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:19:38 +00:00
Jacopo Cappellato 892ed70e57 Completely refactored the SequenceUtil class:
* the class is now thread safe
* the class is now cleaner (no references to delegator etc...)
* replaced the collision detection algorithm with a simpler/reliable/efficient one based on: update with no changes (to get a lock) + select + update (to increase the last sequence id)
* removed ugly special code for "clusters" that is no more needed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621438 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:17:07 +00:00
Adrian Crum f4f119d057 Removed a deprecated constructor from GenericDelegator.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621437 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:12:00 +00:00
Adrian Crum 00d61094d0 Removed some references to GenericDelegator concrete class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621436 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 09:00:39 +00:00
Jacopo Cappellato e5018c0031 Misc minor enhancements to the testSequenceValueItemWithConcurrentThreads unit test.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621425 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 08:32:14 +00:00
Adrian Crum 724ec8bb49 Fixed bugs in GenericDelegator.java - storeByCondition and removeByCondition did not update the cache, resulting in stale cache entries.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621413 13f79535-47bb-0310-9956-ffa450edef68
2014-08-30 02:49:22 +00:00
Adrian Crum a71a1303fd Change how Mini-language simple methods are cached: Cache individual methods instead of the entire file.
The new approach will load all methods from a file into the cache - the same as before, but now individual methods can expire if unused.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621388 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 21:04:00 +00:00
Adrian Crum 1810b389c7 Fix unintended change in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621386 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 20:58:25 +00:00
Adrian Crum b4db076bb4 Unit test to demonstrate the bug I found in GenericDelegator.java. Test is commented out.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621385 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 20:56:08 +00:00
Adrian Crum d01b589e78 Fix broken contact mechanism screenlet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621363 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 18:59:02 +00:00
Jacopo Cappellato 38f5c17d0d Fixed an issue affecting the thread safeness of the SequenceBank objects.
Added two unit tests to confirm the proper behavior of the SequenceUtil class; the second test fails without the fix committed with this revision.
Part of OFBIZ-2353.
This is just the first pass of my work to refactor the SequenceUtil.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621335 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 16:26:51 +00:00
Adrian Crum 9156158d93 Found a bug in GenericDelegator.java. No time to fix it now, so leaving a FIXME comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621122 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 11:36:39 +00:00
Vikas Mayur 2f3a932588 Small code improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621109 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 09:56:11 +00:00
Jacopo Cappellato 582f00fdaf Completed the work to make the ServerHitBin class thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621088 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 08:05:50 +00:00
Jacopo Cappellato 58f766c3b8 First part of the overhaul of ServerHitBin class: now ServerHitBin objects are thread-safe; however the ServerHitBin class isn't because of its static maps (more work is needed in order to fix this).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620907 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 15:10:12 +00:00
Jacopo Cappellato bc57bb04a0 A series of cleanups and changes in preparation for some work to attempt to fix the thread safety of the ServerHitBin class.
Also fixed a bug affecting multi-tenant systems: ServerHitBin entries had an additional #tenant suffix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620831 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 09:23:55 +00:00
Jacopo Cappellato 41f9eb69d1 Small optimization to the ServerHitBin class: the bin length is now stored in a private final field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620661 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 17:10:38 +00:00