Commit Graph
283 Commits
Author SHA1 Message Date
Jacopo Cappellato 1037df9563 A rather important refactoring of service related code:
* new factory interface for LocalDispatcher objects
* new factory implementation of GenericDispatcher
* new ServiceContainer container that initializes the factory (based on a configuration parameter)
* moved the getLocalDispatcher method out of GenericDispatcher and refactored (in a thread safe way) into ServiceContainer/GenericDispatcherFactory
* ServiceContainer also maintains the cache of LocalDispatchers that was managed by GenericDispatcher
* added code to ServiceContainer to deregister LocalDispatchers at shutdown: this finally fix the current code that was broken because the thread pool maintained by the JobPoller was never closed because of an issue with LocalDispatchers not being deregistered when not started by the ContextFilter
* change all code to call the ServiceContainer rather than GenericContainer to get a LocalDispatcher: now the implementation is no more directly referenced by calling code


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1364952 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 09:16:26 +00:00
Jacques Le Roux 6390ce746c A patch from Mohamed Amine AZZI "Add rtl layouts to the pos application" https://issues.apache.org/jira/browse/OFBIZ-4964
Adds new screens layouts for right to left languages (arabic).
Adds some code to ensure that elements are added from right to left in the Journal table.

jleroux: I was not able to check all, but it's ok with me


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1360930 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 20:49:16 +00:00
Jacques Le Roux 1db4dd2b20 This should not have slipped in at r1328727
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1360907 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 20:15:24 +00:00
Jacopo Cappellato 7bde12a32d Added new getName method to the Container interface and to all the implementations; added info messages to inform when containers are started/stopped.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1355854 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 07:32:07 +00:00
Jacques Le Roux e634081d96 Fixes a bug introduced in r1355652
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1355682 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 10:25:24 +00:00
Jacopo Cappellato 99f3119b8e Added new "name" argument to the "init" method of the Component interface: now the name of the container (set by the xml attribute container.name) is passed to the init method and it is used to retrieve the container's configuration; before of this the container's name was hardcoded preventing the ability to define (and load) two containers (with different settings) of the same type.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1355652 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 06:32:00 +00:00
Jacopo Cappellato 41d2732b17 Moved a few container definitions from the base/config/*-containers.xml files to their own component's ofbiz-component.xml file; this is a demonstration of the usage of the new ability to define component level containers; this is still experimental and there is room for improvements (and I am working on them and going to discuss a few details in the dev list) but this should already give a good idea of how we can remove redundancy from the various *-containers.xml files, remove dependencies between framework components and make the components self deployable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1355466 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 16:43:51 +00:00
Jacques Le Roux 553f853e39 A patch from Mohamed Amine AZZI for "Adds arabic resources to the Pos" https://issues.apache.org/jira/browse/OFBIZ-4945
Adds arabic string resources to the pos application

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1354409 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 10:32:54 +00:00
Hans Bakker e84bdd513e reverted recent security file changes revisions: 1350847,1350843,1350840,1348534,1347908,1347213,1346264, need more investigation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1351206 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 04:36:20 +00:00
Hans Bakker 17c3df5c6e 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/specialpurpose@1346255 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 06:37:06 +00:00
Jacopo Cappellato c6824a6db8 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/specialpurpose@1343646 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 10:19:21 +00:00
Adam Heath fc00ab4926 DEPRECATION: specialpurpose/pos: GenericValue.getRelated/getRelatedCache variants replaced with a getRelated that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1343522 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:19:47 +00:00
Adam Heath 66f7a6d12f DEPRECATION: specialpurpose/pos: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1343499 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:15:43 +00:00
Adam Heath fc175cbec9 DEPRECATION: specialpurpose/pos: findByAnd variants replaced with findByAnd that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1338421 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 21:03:17 +00:00
Adam Heath 10018f6c2b DEPRECATION: specialpurpose/pos: findByPrimaryKey variants replaced with
findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1337681 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:21:31 +00:00
Jacques Le Roux 197a60cc25 Moves guiapp component inside POS component
Closes https://issues.apache.org/jira/browse/OFBIZ-4807



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1328727 13f79535-47bb-0310-9956-ffa450edef68
2012-04-21 19:19:09 +00:00
Ashish Vijaywargiya 54bb3ef632 On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1300463 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 06:07:52 +00:00
Hans Bakker 7845a2c8f4 changes for configurable service product:
1. Display the configuration button on a product on the catalog manager.
2. Check the config  if the product is the configurable product service then 
    create new product from config(Do the same step as the configurable product).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1235698 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 09:01:53 +00:00
Jacques Le Roux 008c4531d9 No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.

Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Marco Risaliti 9dddaebcc5 Revert rev. 1081099
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1081516 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 19:10:12 +00:00
Marco Risaliti 8335300073 Remove some warning in pos component (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1081099 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 12:43:16 +00:00
Jacques Le Roux a98522b7ce Fix an issue reported by Paul Foxworthy in OFBIZ-4114
As it's not a service but a public method we should not use return ServiceUtil.returnError here but return null (return was missing Paul reported)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1060261 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 09:18:19 +00:00
Scott Gray d1d8905fef Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Scott Gray b06aed2cb5 Remove unnecessary semicolons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044917 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:43:03 +00:00
Scott Gray 6a0b8b494c Replace empty if block with a condition for the else block
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044915 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:59 +00:00
Adam Heath 1f5ae9d0c9 Remove some trailing whitespace from lines; only doing files that will
be modified by soon to be committed changesets.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044227 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:25 +00:00
Adam Heath a1c6a4d758 Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Adam Heath 5b3b7e0c99 Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Adam Heath 0f8f2093e3 Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Jacques Le Roux 0d6f2776e4 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux be88f832a2 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux ef2a1c044c We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Scott Gray f98e6b41fb Get rid of a bunch of Integer instantiations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@935163 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:27:15 +00:00
Jacques Le Roux 9057c4c261 A patch from Bob Morley "Resolve java warnings exposed in Eclipse (POS part of OFBIZ-3100)" https://issues.apache.org/jira/browse/OFBIZ-3600 - OFBIZ-3600
Changes across quite a few classes in the Pos area. Also minor changes to the CheckoutHelper - validatePaymentMethods and processPayment methods which were returning non-generic Maps.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@930373 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 20:31:12 +00:00
Ashish Vijaywargiya 067d4fb1df Applied patch from jira issue OFBIZ-3550 - Use shopinglistType from request parameter instead of using default for addBulkFromCart event.
Thanks Parimal for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@922504 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 08:39:57 +00:00
Adam Heath 585863454b Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath 59dabfc7e6 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 79268b7635 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath e98eaeed80 Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath aff93c1ef4 Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Jacques Le Roux 2e261a651d Cleaner: try catch finally block around EntityLisIterator was missing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@890107 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 19:49:58 +00:00
Jacques Le Roux b27129020c Wrong value was checked.
Before creating the user login, I checked the presence of the cardId instead of the phone (certainly a remaining in the code from previous attempts). 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@890057 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 12:21:48 +00:00
Jacques Le Roux a4216e6e2c Fix possible NPEs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@890050 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 11:41:26 +00:00
Jacques Le Roux 8e64a78d5e More details in POS demo data can't hurt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@889903 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 09:26:09 +00:00
Jacques Le Roux 348f993307 Update the link to documentation (also updated)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@888510 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 18:42:35 +00:00
Jacques Le Roux 6158cad236 To allow to void a sale in POS
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@884529 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 11:35:50 +00:00
Jacques Le Roux 0698881e24 Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux a05e836be1 Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.size == 0)
Complete r883492

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@883516 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 22:02:05 +00:00
Adam Heath 68112061cf Deprecate UtilCache constructors, and add a create helper function.
This is the first step to making utilCacheTable concurrent, and
non-blocking.  To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Jacques Le Roux 2091420339 Close "Replace all "0.00" in java code, notably to allow passing different decimals lenghtes" (https://issues.apache.org/jira/browse/OFBIZ-3200) - OFBIZ-3200
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@836153 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 11:01:08 +00:00