Hans Bakker
d4afd2a5bb
add the optional parameters 'distinct' and 'fieldList' to the performFind service
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742328 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 08:36:08 +00:00
Jacopo Cappellato
153ec0eba1
Misc enhancements to the update password screen and events: improved layout, error handling.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742015 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 08:14:58 +00:00
Jacopo Cappellato
ceacb9a1bd
Fixed bug reported by deepak dixit in OFBIZ-2173: setting a blank password could messed up things.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741886 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 12:28:48 +00:00
David E. Jones
afb434f132
More log message refinements for more info, but less message and noise
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741742 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 21:37:42 +00:00
Jacopo Cappellato
af9e2ab62d
Enhanced checkNewPassword to work like the "userLogin" method when dealing with hashed passwords.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739738 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 11:02:46 +00:00
Jacques Le Roux
ce297d5a9b
Add geolocation screens to Facility ContactMechs, FacilityLocation and FixedAsset + miscellaneous enhancements, also in data.
...
I have began to refactor toward putting as much as possible geolocation artifacts in framework/common with the idea of creating an applications/common component where all shared (transversal) features/artifacts would be. More explanations on dev ML soon...
There is also an unused taxAuthorityVATReport request/view-map in accounting controller (part of another task I slowly work on)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@738452 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 11:03:20 +00:00
Jacques Le Roux
572b7683e0
All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Hans Bakker
9b31d5dcb7
move temporary captcha to /runtime/tempfiles, this directory can now now read via the /tempfiles mountpoint in the browser, make it work on windows (not tested), reduced the size of the registration screen
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@736896 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 03:14:27 +00:00
Hans Bakker
2dd8e81c84
first version of captcha, not perfect yet: multiple users registering at the same time, image should be stored in 'runtime' not working on windows. Another problem is what files to put where.....the captcha itself looks like a framework feature...however the registration process needs the party component....so let us know, we will correct it....
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735965 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 08:30:41 +00:00
Adrian Crum
08a0e03138
Fixed a design flaw in the user preference services. The services accepted an optional parameter - userLoginId - so that admins could perform CRUD operations on other user's preferences. This parameter caused a name clash with screens and services that also had a userLoginId parameter. The preference services userLoginId parameter has been renamed to userPrefLoginId.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@732744 13f79535-47bb-0310-9956-ffa450edef68
2009-01-08 16:18:54 +00:00
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