Jacopo Cappellato
dbd34520d7
Cleaned up a bunch of warning messages for deprecated methods; in preparation for the framework release.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671223 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 15:47:28 +00:00
David E. Jones
91a5ff11ff
Removed old funny hex encode and decode routines from StringUtil, as they produced the same results as the commons library; found and fixed the real problem with the old entity engine encryption so that encrypted fields, including credit card numbers, couldn't be decrypted with the new code and it was the hashed key names no longer matched so the wrong DES key was used, ie a different one from the original key used to encrypt even if the original key was still in there; now it tries both, which is necessary because for systems updated before this went in there will be entries using the old DES key and some using the new DES key, so we can't just try one or the other; this should fix problems with credit cards and other encrypted value decryption after updating to fix the password hashing problem from a few weeks ago
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670731 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23 20:15:27 +00:00
David E. Jones
e48ed9ee3c
Added decryption try using old hex decoding in the exception catch block, which should catch where this usually needs to happen
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670225 13f79535-47bb-0310-9956-ffa450edef68
2008-06-21 16:48:35 +00:00
David E. Jones
8beba39849
Fixed problem with old credit card and other old encrypted fields from before fixing the hex encoding, ie using what the rest of the world uses instead of the buggy old hex encoding that was previously used in OFBiz; now credit card numbers and other entity fields that are encrypted should unencrypt properly, ie it tries the new way and if decryption fails then is tries the old way
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670148 13f79535-47bb-0310-9956-ffa450edef68
2008-06-21 06:07:16 +00:00
Si Chen
9f56b36a18
ofbiz 1826: allow EntityListIterator to be created from jdbc ResultSet
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@666746 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 17:46:47 +00:00
David E. Jones
310c23792e
Removed the highly redundant field type long which was 19 digits, and changed the existing field type numeric to be 20 digits, which is bigger than 19 so should be fine; updated the shark entity defs to use numeric instead of long
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664547 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 20:12:34 +00:00
Jacques Le Roux
9dae3bffa6
Last patch (forgotten for more than one year) from Sergey Shutov "Integration Shark 1.1_2 into OfBiz" ( https://issues.apache.org/jira/browse/OFBIZ-552 ) - OFBIZ-552
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664048 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 17:32:55 +00:00
Andrew Zeneski
bc578cce65
changed old usage of tryGenericConnectionSources() to getManagedConnection()
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663349 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04 19:14:41 +00:00
Andrew Zeneski
fdc09904a6
updated DBCP with latest snapshot from Maven repository 2007-11-25. This should correct the memory leak reported in JIRA OFBIZ-1818.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662852 13f79535-47bb-0310-9956-ffa450edef68
2008-06-03 18:09:56 +00:00
David E. Jones
670dabded0
Fixed bug reported by Ritesh Trivedi where an encrypted field accessed through a view entity was not decrypted
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662090 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 21:34:01 +00:00
David E. Jones
a97dcc600a
Added further support for javolution ObjectFactory which will bring the efficiency improvements that along with syntax cleanup are part of this whole factory method effort
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660850 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:58:13 +00:00
David E. Jones
82df3529e2
More cleanups of now deprecated constructors and what what
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:16:36 +00:00
David E. Jones
b9d6f8b524
Changed EntityExpr and EntityFunction subclasses to use the factory instead of constructor pattern, plus moved EntityExpr to EntityCondition factory methods; a number of EntityExpr cleanups, but many more to go
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660812 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:20:09 +00:00
David E. Jones
3543d6abe3
Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
Jacques Le Roux
66f3699ad7
Upgrade to Derby 10.4.1.3 from 10.3.1.4 from a recommendation of the Derby project
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659237 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 20:19:14 +00:00
Adrian Crum
a3536990f1
Locale and Time Zone refactor and bug fixes.
...
1. Modified the Start class to initialize the JVM default locale and time zone - configurable through start.properties. Removed calls to UtilDateTime.getDefaultTimeZone() - no longer needed.
2. Changed all calls to ObjectType.simpleTypeConvert(...) that didn't supply the necessary Locale and TimeZone objects. This fixes a lot of localization issues, https://issues.apache.org/jira/browse/OFBIZ-1696 being one of them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658045 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:50:14 +00:00
David E. Jones
349f9518ca
Removed deprecate from DynamicViewEntity call; was a little too aggressive on that; thanks to Scott for the heads up
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655242 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 04:55:54 +00:00
Scott Gray
153653615b
Removed the rest of the calls to deprecated GenericDelegator methods, except for the findListIteratorByCondition which takes a DynamicViewEntity as a parameter not sure what to do about that one.
...
There's still all the bsh files to check though.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655235 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 03:29:04 +00:00
Scott Gray
0792342f2a
Removed more calls to deprecated GenericDelegator methods
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655016 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 06:24:19 +00:00
Scott Gray
c182253d73
Removed more calls to deprecated GenericDelegator methods
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655013 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 05:35:16 +00:00
Scott Gray
daeadc7442
Removed more calls to deprecated GenericDelegator methods
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654934 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 20:57:23 +00:00
Scott Gray
8c606bcdce
Removed all calls to the deprecated GenericDelegator.findAll(String, List)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654771 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 11:52:37 +00:00
Scott Gray
848c024f3f
Fix to prevent an IndexOutOfBoundsException
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654718 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 08:33:03 +00:00
David E. Jones
329631a4b5
A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
David E. Jones
dfed0d7378
First pass at deprecating find methods, comments include counts of references and some stuff about code cleanups to be committed next
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653028 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:39:18 +00:00
David E. Jones
3897a70ee3
Removed redundant synchronized on setFields because it is synced on set
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653009 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 06:43:39 +00:00
David E. Jones
3b7660fc3b
Added feature to entity engine to support generic audit log that can be used for any field; values are converted to a string and l using the enable-audit-log attribute on the entity->field element; the Testing entity uses it now for the testName; this also has functionality to associate user info like the userLoginId with the thread so that the EE knows about it automatically, and uses a stack for flexibility
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652226 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 02:02:29 +00:00
David E. Jones
b3ade46e61
Realized method name was bad for properties resource not found method, improved
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645562 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 15:22:44 +00:00
David E. Jones
e6e13652af
Small refactor to preserve protected Map in UtilProperties
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645561 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 15:21:26 +00:00
Adrian Crum
d0dff7df5e
Fixed problem with entity engine trying to translate fields using properties files that don't exist. Reported by Jacopo in https://issues.apache.org/jira/browse/OFBIZ-1736 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645278 13f79535-47bb-0310-9956-ffa450edef68
2008-04-06 18:06:06 +00:00
David E. Jones
0b4bcd4807
Added stuff to get definition location URL for all artifact types
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644206 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 07:59:52 +00:00
Jacopo Cappellato
0e75a4abb1
Added support for get-related* operations in entity related information for artifact infos.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639780 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 19:58:09 +00:00
Jacques Le Roux
e791983beb
Comment outside the test definition to avoid conflicts (when the datasource has been changed for intance)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637382 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 10:14:34 +00:00
Jacques Le Roux
5de5f59bc4
More complete comment and on another line to avoid conflicts (when the datasource has been changed for intance)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637381 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 10:11:07 +00:00
Jacques Le Roux
f28dfd5b32
A short comment to prevent issues with run-tests when the datasource is not the same than for run-install
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637312 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 00:44:45 +00:00
Jacques Le Roux
8633b5080a
From a Chris Juettner's remark in dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@635236 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 13:54:20 +00:00
David E. Jones
e6e09fcc68
Moved plist stuff to its own file; added simple class to look for stuff in Java code, amazingly seems to be working to find entities/seseems to be working to find entities/services in java services
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634119 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 02:08:10 +00:00
David E. Jones
a4305dc6ab
Changed to be able to identify pks in related entities in the export
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633963 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 18:25:13 +00:00
David E. Jones
1af406bebf
Changed plist export to use XML form, much more friendly to funny characters; a few fixes/improvements too
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633783 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 07:40:02 +00:00
David E. Jones
2bf0afbe4a
No real functional changes to operational code, just new stuff for getting meta data about entities, services, etc from the system
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633325 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 23:37:14 +00:00
David E. Jones
8f34e95db9
Small change to set isMandatory
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631867 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 06:30:25 +00:00
David E. Jones
22a58861f5
Some refactoring of the entity eomodeld export, wrote initial service and eca calling/called graph, still needs data gathering though
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630737 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 05:47:34 +00:00
David E. Jones
45b65f076b
Some refinements to use relationship attributes for incoming rels and fields for outgoing
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630553 13f79535-47bb-0310-9956-ffa450edef68
2008-02-24 00:24:19 +00:00
David E. Jones
8e80106836
Changed to support comma separated package name list
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630544 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 23:11:04 +00:00
David E. Jones
f6ff4a760d
Changed EOModelBundle entity stuff to use the generic plist out format routines
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630541 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 22:45:10 +00:00
David E. Jones
490ee125e3
A number of fixes and improvements to get the EOModelBundle stuff to be loadable in OmniGraffle, now pretty much functional
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630428 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 13:10:50 +00:00
David E. Jones
e8d61ef0b7
Added initial implementation of entity EOModelBundle export, including various utility methods and refactoring and such
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630279 13f79535-47bb-0310-9956-ffa450edef68
2008-02-22 18:17:21 +00:00
David E. Jones
80acfcb716
Fixed tabs to spaces; it is evil that eclipse comes with this sort of default...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628703 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:34:08 +00:00
David E. Jones
eb542c49ad
A few misc cleanups/improvements; some generics stuff, use FastMap/List, convenience methods for meta data
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628700 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:21:13 +00:00
David E. Jones
edafa04bd7
Added seed-initial data set and changed all JobSandbox seed data entries to be in this instead; allows for reloading of seed data withows for reloading of seed data without redundant jobs scheduled
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627824 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 18:26:44 +00:00