Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux ae3ba044a1 Closes "Deprecate ScreenWidgetViewHandler and move it to Attic" https://issues.apache.org/jira/browse/OFBIZ-4928
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1348429 13f79535-47bb-0310-9956-ffa450edef68
2012-06-09 15:43:42 +00:00
Christian Geisert a3f1e53528 German translation for Accounting (WIP)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1348025 13f79535-47bb-0310-9956-ffa450edef68
2012-06-08 11:06:11 +00:00
Hans Bakker 0eb0f553d1 split security for catalog and facility over 2 files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347908 13f79535-47bb-0310-9956-ffa450edef68
2012-06-08 07:29:39 +00:00
Jacques Le Roux 5cf7578d86 Small improvement:
* Adds "cross-redirect"
* Improve doc for 
  ** request-redirect
  ** request-redirect-noparam
  ** url
  


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347762 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 19:25:30 +00:00
Jacopo Cappellato 7ba7089c02 Fixed xml validation for misplaced "error-page" element added by Hans in rev. 1208335.
Unfortunately the bug has been backported by Jacques to the 11.04 branch but I don't have time to backport the fix to the branches at the moment.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347559 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 10:26:40 +00:00
Jacopo Cappellato a610e70049 As discussed in the dev list, removed the experimental jcr component; its development will continue in the proper branch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347478 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 08:14:28 +00:00
Jacopo Cappellato 1555db10e1 Set cache flag for findByAnd method calls in PreferenceServices; improved logic to avoid to run the same query twice when user is not passed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347442 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 07:36:47 +00:00
Hans Bakker a8040d7806 security should be loaded first
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1347213 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 00:04:08 +00:00
Hans Bakker f6a992b6ee tenant data in the entity component is meant for demo, so demo data. comment from Adam
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346713 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 02:20:54 +00:00
Hans Bakker d2ae6af774 enable tenant demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346269 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 07:35:26 +00:00
Hans Bakker 53af6f4660 reverted unwanted commit, reported by Jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346264 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 07:16:03 +00:00
Hans Bakker fff7f99081 introduced a new data-reader : 'security'
Security is now by default not loaded because not part of seed anymore this will make all component hidden and not accessible .
It is still loaded as part of the reader 'demo'

to load the security files:
./ant load-readers -Ddata-readers=security

Now it is possible to load only a selection of the security files in your hot-deploy component as follows:

<entity-resource type=data reader-name=seed loader=main location=../../framework/security/data/SecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../framework/webtools/data/WebtoolsSecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../applications/party/data/PartySecurityData.xml/>

This will enable only standard groups, the party and the webtools application.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346255 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 06:37:06 +00:00
Hans Bakker 3910a6ff69 field declared as input but not used inside the service: fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345910 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 10:21:57 +00:00
Hans Bakker 8f0c926dbb allow the fop configuration to be different between tenants
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345849 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 07:33:24 +00:00
Jacques Le Roux e4432d69e2 We agreed on that on dev ML: easier to use
GroovyUtil.runScriptAtLocation()
than 
executeScript()
In case of error or debugging

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345840 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 06:07:19 +00:00
Jacques Le Roux 8d01c258b5 Fixes "QuickAdd screen rendering exception in ecommerce" https://issues.apache.org/jira/browse/OFBIZ-4882
Revert r1345660, I was caught by the cache I thought it was only that when another change I put before was also needed: the findByHand signature has recently changed. I wonder why this would not affect other groovy scripts as well, there are 245 instances at all. A not neglectable part don't fill the orderBy list (often null is used otherwise) But I run out of time to continue on this...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345661 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 12:20:48 +00:00
Jacques Le Roux 77ae8588ba Fixes "QuickAdd screen rendering exception in ecommerce" https://issues.apache.org/jira/browse/OFBIZ-4882
It was only 
import javolution.util.FastList;
missing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345660 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 12:08:00 +00:00
Adrian Crum 0d892adf1f Overhauled Mini-language <find-by-primary-key>, <get-related>, <get-related-one>, <make-next-seq-id>, <make-value>, <order-value-list>, <refresh-value>, <remove-by-and>, <remove-list>, <remove-related>, <remove-value>, <sequence-id> elements. Also, consolidated NowDateToEnv.java and NowTimestampToEnv.java into Now.java.
The overhaul includes: removing unnecessary object creation, make the class thread-safe, add syntax validation, and misc code cleanups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345652 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 11:13:32 +00:00
Jacques Le Roux bb9abcab50 Better format after r1345547
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345559 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 19:13:25 +00:00
Jacques Le Roux 6e1bc6ba1c Forgot to commit this file with r1345532
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345553 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 18:52:30 +00:00
Jacques Le Roux 46248a1be8 A patch from Nandani Aggarwal "Upload file throws java.lang.ClassCastException: java.nio.HeapByteBuffer" https://issues.apache.org/jira/browse/OFBIZ-4919
While creating Promo under catalog in Admin , we create Promo Code so that party or Email can be attached to Promo and also there we can set expiry date for that Promo.While uploading list of Email Ids for which Promo will be applicable,,i encountered with error : java.lang.ClassCasrrException:java.nio.HeapByteBuffer.
Error can be reproduced by following link :
https://localhost:8443/catalog/control/createBulkProductPromoCodeEmail?productPromoCodeId="Name of : Product Promo Code Id"
Or with help of attached screenshot.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345547 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 18:47:41 +00:00
Jacques Le Roux 8ac851b7bc Forgot to commit some files at r1345379 (A patch from Tri Duc Vo for "Next Vietnamese Ofbiz translation https://issues.apache.org/jira/browse/OFBIZ-4759)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345533 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 17:15:37 +00:00
Jacques Le Roux 2dcc132c41 A patch from Ankit Jain "Replaces != nullpattern in ftl file by ?? (which replaces deprecated ?if_exist)" https://issues.apache.org/jira/browse/OFBIZ-4916
jleroux: I simply removed some useless ?? when ?has_content was enough. I also found 3 other cases in returnPolicy.ftl that I fixed the same way than Ankit (using ??)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345532 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 17:10:52 +00:00
Jacopo Cappellato 057b9b11d2 Fixed issue introduced with the recent changes to getRelated signatures. The error was blowing up the view cart screen in the backend.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345528 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 16:07:46 +00:00
Jacques Le Roux 525eecb1e0 Revert r1345473, I will rather review and commit https://issues.apache.org/jira/browse/OFBIZ-4916
Thanks to Jacopo spotting this (was harmful but stupid, really the kind of errors I make when too tired, not enough focus:D )

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345484 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 11:09:02 +00:00
Jacques Le Roux 8ace8a7cda Fix a small bug, related to recent Freemarker changes, reported on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345473 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 09:46:28 +00:00
Jacques Le Roux 1aaa8943ac A completing patch from Tri Duc Vo for "Next Vietnamese Ofbiz translation https://issues.apache.org/jira/browse/OFBIZ-4759
Closes the issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345435 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 04:20:07 +00:00
Jacques Le Roux e8ded2674d A patch from Tri Duc Vo for "Next Vietnamese Ofbiz translation https://issues.apache.org/jira/browse/OFBIZ-4759
fixed few issues, 3 remains, Tri will have to choice

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345379 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 22:32:57 +00:00
Jacopo Cappellato d7a92cea27 Improved error messages that notify when a service's time to run was over some given threasholds.
Refactored code (simplified and removed duplicated block) that logs, in these cases, the output of the service; now the service output is only printed in verbose mode (of course if the other conditions hold true).



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345005 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 08:12:46 +00:00
Jacopo Cappellato df927cd6dd Fixed lock that was set to the wrong class (this was probably caused by a copy and paste error).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345001 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 07:13:59 +00:00
Jacopo Cappellato f6fc46c679 Removed default value for the attribute for inline-jdbc used to specify an XA wrapper class: it was set to a specific implementation (Enhydra).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1344999 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 07:10:39 +00:00
Jacopo Cappellato f5fabda4b1 No functional changes: small improvements to code that logs messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1344996 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 07:03:45 +00:00
Adam Heath 27e88264a0 FIX: Prefix all log file names with ${ofbiz.home}, so when code is run directly from a subdir(when doing api testing), the logs are still placed at the top level. Previously, you'd end up with $PWD/runtime/logs scattered all around.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1344771 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 15:23:21 +00:00
Hans Bakker 2fb657a3e2 reverted unwanted change in previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1344607 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 09:04:42 +00:00
Hans Bakker 743df48648 removed 2 not used data items
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1344598 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 08:45:03 +00:00
Vikas Mayur 52cd73ff2e Cost Center screen under Global GL Settings menu should only show accounts associated to cost centers and not every account related to the organization party.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1344568 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 05:29:45 +00:00
Jacopo Cappellato fcdf07a0e6 Improved code that manages the cache:
* protected some UtilCache objects (static fields) by making them private and final

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343815 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 16:18:02 +00:00
Jacopo Cappellato a203b75d3d Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343792 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 15:52:14 +00:00
Jacopo Cappellato 9d80b40c8d Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343785 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 15:40:17 +00:00
Jacopo Cappellato 06267026e8 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
* refactored code to be more inline with best practices for thread safefy: removed the method readNotificationGroups() (that was only used by the same class in one place) that was called with a lock held and inlined its logic into the colling method; this simplifies thecode and its readability



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343783 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 15:37:03 +00:00
Jacopo Cappellato 36737ad059 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343729 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 14:01:45 +00:00
Jacopo Cappellato 4eb06e3e00 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343728 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 13:57:19 +00:00
Jacopo Cappellato 126a9d40d5 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343727 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 13:52:32 +00:00
Jacopo Cappellato 2130bc14e8 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343724 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 13:46:49 +00:00
Jacopo Cappellato e316284fc9 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* replaced some put with putIfAbsentAndGet to slightly simplify the code



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343717 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 13:33:29 +00:00
Jacopo Cappellato 9943d35c19 Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* removed unnecessary synchronization
* removed unnecessary null checks
* moved code that initializes static cache fields out of constructors
* replaced get+null check+get with get+null check
* replaced containsKey + null check + get with get + null check
* replaced some put with putIfAbsentAndGet



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343696 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 12:24:19 +00:00
Jacopo Cappellato 9fe920a3f7 Improved code that manages the cache:
* removed unnecessary synchronization
* protected the UtilCache object (static field) by making it private and final
* replaced non atomic containsKey+put+get with get + putIfAbsentAndGet
* replaced containsKey + null check + get with get + null check



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343692 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 12:10:54 +00:00
Jacopo Cappellato c4c79f58e8 Improved code that manages the cache:
* removed unnecessary synchronization
* protected the UtilCache object (static field) by making it private and final



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343662 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 10:54:16 +00:00
Jacopo Cappellato f8fa9777cb Improved code that manages the cache:
* removed unnecessary synchronization
 * protected the UtilCache object (static field) by making it private and final


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343646 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 10:19:21 +00:00
Jacopo Cappellato 4a8f8045c5 Improved code that manages the cache:
* removed unnecessary synchronization
 * replaced non atomic containsKey+put+get with get + putIfAbsentAndGet
 * protected the UtilCache object (static field) by making it private and final


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343643 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 10:17:42 +00:00