Jacques Le Roux
5d75cb4e28
A patch from Erwan de Ferrières "Change date format in BI component when calling loadDateDimension" '( https://issues.apache.org/jira/browse/OFBIZ-2113 ) - OFBIZ-2113
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@732653 13f79535-47bb-0310-9956-ffa450edef68
2009-01-08 09:09:32 +00:00
Jacques Le Roux
ffd4ed534f
A slightly modified patch from jack Guo "Using IN operator with FindServices.java" '( https://issues.apache.org/jira/browse/OFBIZ-2108 ) - OFBIZ-2108
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730001 13f79535-47bb-0310-9956-ffa450edef68
2008-12-29 21:30:17 +00:00
Jacques Le Roux
31d56e8064
A patch from Ravindra Mandre "The userPrefGroupId field on UserPrefGroupType should be userPrefGroupTypeId, as per conventions" ( https://issues.apache.org/jira/browse/OFBIZ-1996 ) - OFBIZ-1996
...
With some help by Vikas Mayur for the "Upgrading OFBiz from earlier revisions" Wiki page update
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712366 13f79535-47bb-0310-9956-ffa450edef68
2008-11-08 08:59:31 +00:00
Adrian Crum
3b7f5b76e3
Fixed bug in the performFind service, reported by Jacopo - https://issues.apache.org/jira/browse/OFBIZ-221 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703847 13f79535-47bb-0310-9956-ffa450edef68
2008-10-12 17:02:12 +00:00
David E. Jones
ab738ad435
Fixed missing eli.close reported by Hans Bakker on the mailing list; also cleaned up some poorly formatted and superfluous code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@690171 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 10:22:56 +00:00
Jacques Le Roux
e7905f2c8c
Fix the anti-pattern
...
if (* != null && *.size() > 0) {
where * is a variable name (String or Collection). Rewritten to
if (UtilValidate.isNotEmpty(*)) {
Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {
And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Adrian Crum
67eecf7569
Small change to user preferences. The getUserPreferenceGroup service will simply retrieve default values instead of copying them to the user's preferences. This should help reduce the amount of data generated.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685588 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 15:44:16 +00:00
Adrian Crum
5cfe8078e7
Slight change to the user preference services. Using the permission service on the getPreferences services threw an exception: user must be logged in. We might want to get default preferences before the user is logged in, so I moved the permission checking inside the getPreferences services.
...
Internationalization note: this commit contains a new UI label.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680054 13f79535-47bb-0310-9956-ffa450edef68
2008-07-26 23:21:03 +00:00
Jacopo Cappellato
d9d03bf714
Removed unused import statements.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677600 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 14:58:19 +00:00
Jacopo Cappellato
795a920fe4
Moved the bi component from specialpurpose to the framework folder; moved artifacts from the bi component to the proper components.
...
Everything should be in place now, except for a convenience service (in the bi component) that quickly initializes the datawarehouse for demo purposes: this service calls two services from the applications (wrong dependency); I will fix this soon by moving it in some other places... however it is not a big deal for now because the service is really only useful to quickly test the prototype.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677587 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 14:12:38 +00:00
Hans Bakker
13206047b8
user preference copy permission service did not take into account that the userLogin is an optional input value
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674149 13f79535-47bb-0310-9956-ffa450edef68
2008-07-05 03:52:24 +00:00
Hans Bakker
a4a822cffe
copy usersettings from a template if not found for a certain user
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@673671 13f79535-47bb-0310-9956-ffa450edef68
2008-07-03 13:12:31 +00:00
Adam Heath
357fb50bc6
More generics work.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672672 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 20:33:19 +00:00
Adrian Crum
13be6d006d
Better implementation of last commit, based on a suggestion by David Jones.
...
No additional screen widget code is needed to implement the Find screen search results default behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670704 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23 18:38:04 +00:00
Adrian Crum
b06a17e6fd
Added LDAP user authentication, based on work contributed by Mohamed Amine Azzi and Torsten Schlabach - https://issues.apache.org/jira/browse/OFBIZ-811 .
...
Internationalization note: this commit contains new UI labels.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@669994 13f79535-47bb-0310-9956-ffa450edef68
2008-06-20 17:09:19 +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
David E. Jones
a713ad4bd7
Added support for groovy services, and an example of the same; cleaned up the way that bsh services work and updated the example and such to match, now returns a context as one would expect
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@657701 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 00:22:46 +00:00
David E. Jones
050bbde29a
Reverted fix from Hans that effectively disabled the method to remove the hash type prefix, and fixed the userLogin service code to and fixed the userLogin service code to remove the prefix from the db currentPassword value, which was missing and was causing the problem
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@656515 13f79535-47bb-0310-9956-ffa450edef68
2008-05-15 06:10:50 +00:00
Hans Bakker
0955b594c2
a better fix than rev 656100
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@656175 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 09:22:54 +00:00
Hans Bakker
2e43e295da
corrected password entry problem
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@656100 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 04:43:13 +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
Adrian Crum
d7fa8b25cc
Small improvement to PreferenceServices.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654587 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 17:43:53 +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
0bc3a402fd
Some improvements for password encryption based on ml discussions: now supports reading weird old password hex conversion, plus a more standard/correct hex conversion using Apache Commons Codex Hex class, plus an attempt to encode using a hash type in a prefix in the database; will always save the encoded password using the default type specified in the config file and will put a hash type prefix on it for portability
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652224 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 01:58:00 +00:00
Jacques Le Roux
6ab6a5f76e
A patch from Anne Jessel "Two Australian "states" missing from drop-down list" ( https://issues.apache.org/jira/browse/OFBIZ-1737 ) - OFBIZ-1737
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644629 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 07:12:38 +00:00
Christian Geisert
47d8c8b588
Setting svn properties (svn:eol-style,svn:mime-type,svn:keywords)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634598 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 10:12:14 +00:00
Adrian Crum
2b5150dad0
Oops, I forgot to remove debugging code before the last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606283 13f79535-47bb-0310-9956-ffa450edef68
2007-12-21 19:32:29 +00:00
Adrian Crum
65d64af698
User preferences feature - https://issues.apache.org/jira/browse/OFBIZ-495 . This is the Java version - I'll commit the simple method version as soon as one is available.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606269 13f79535-47bb-0310-9956-ffa450edef68
2007-12-21 19:02:28 +00:00
Andrew Zeneski
c68348b42b
applied patch which changes the check for existing userLoginId to be case insensitive
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@590757 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 17:21:17 +00:00
David E. Jones
75c26763e5
Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00
Adam Heath
c69096e93a
Switch as much as possible from StringBuffer to StringBuilder.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585805 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:56:02 +00:00
Adam Heath
2ff7a8a575
Make use of the single-arg variants of makePK/makeValue, removeAll,
...
and clearCacheLine
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:46:57 +00:00
Andrew Zeneski
2efbbe6cca
fixes possible NPE (from Anil Patel)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579088 13f79535-47bb-0310-9956-ffa450edef68
2007-09-25 06:29:34 +00:00
Andrew Zeneski
6548a71c1e
implementation (from Anil Patel) to support restricting changed passwords to not allow the use of a previous password (the length of tracking is configurable in security.properties)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573458 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 04:58:35 +00:00
Jacques Le Roux
e0504ef18d
A patch from Adrian Crum for an issue from Bilgin Ibryam"Changing the language in party manager is broken" ( https://issues.apache.org/jira/browse/OFBIZ-1223 )
...
This patch définitively corrects the problem David raised + some cosmetic UI changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572375 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 15:56:51 +00:00
Jacques Le Roux
02e0beac3c
Revert 572172 on David's advice
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572322 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 13:24:16 +00:00
Jacques Le Roux
504c87ddca
A patch from Adrian Crum for an issue from Bilgin Ibryam"Changing the language in party manager is broken" ( https://issues.apache.org/jira/browse/OFBIZ-1223 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572172 13f79535-47bb-0310-9956-ffa450edef68
2007-09-02 21:46:01 +00:00
David E. Jones
2f62104e62
Changed get states/provinces by country to get ONLY states/provinces and to be more efficient
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@558245 13f79535-47bb-0310-9956-ffa450edef68
2007-07-21 05:17:56 +00:00
Jacques Le Roux
2cb6db7b5b
A patch from Adriam Crum "Small Fixups for OFBIZ-642" ( https://issues.apache.org/jira/browse/OFBIZ-1147 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556141 13f79535-47bb-0310-9956-ffa450edef68
2007-07-13 20:41:11 +00:00
Jacques Le Roux
834a564d00
A patch from Adriam Crum "Quirky Behavior In New Time Zone Selection Box" ( https://issues.apache.org/jira/browse/OFBIZ-1126 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556002 13f79535-47bb-0310-9956-ffa450edef68
2007-07-13 13:58:49 +00:00
Andrew Zeneski
a833b49f60
added Uom -> Calendar worker methods
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@551295 13f79535-47bb-0310-9956-ffa450edef68
2007-06-27 19:47:49 +00:00
Jacopo Cappellato
f9ccd14670
Applied patch from Stefan Huehner OFBIZ-730 to fix some very bad conditions that could cause NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550233 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 14:17:31 +00:00
Jacopo Cappellato
d2169fd325
When a password is updated, added check to verify that the new password is different from the old one.
...
Also moved a a few of labels that were in the wrong component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549443 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 10:20:43 +00:00
Jacopo Cappellato
4e8e2dac8e
Implemented 'Require Password Change' in ecommerce and manager apps: if the new field in the UserLogin entity is set to Y then, before the login, the user will be prompted for a new password.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549406 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 06:20:53 +00:00
Jacopo Cappellato
399fab0d33
Applied patch by Adrian Crum to implement User Time Zone Selection Capability.
...
OFBIZ-1079
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@548646 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 08:08:53 +00:00
Andrew Zeneski
85e2aa4a42
changed to an explicit space
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@540009 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 03:49:57 +00:00
Andrew Zeneski
5b1b4778b6
added code to strip off weird characters
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@540008 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 03:47:33 +00:00
David E. Jones
5e1d6ab6d9
Finished fixing a problem that I almost fixed yesterday, but I didn't quite do it right; now the login won't be called twice, avoiding the UserLoginHistory problem, which was reported for MySQL with the timestamp resolution problem
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@533305 13f79535-47bb-0310-9956-ffa450edef68
2007-04-28 06:07:39 +00:00