Commit Graph
116 Commits
Author SHA1 Message Date
Andrew Zeneski 2967e9faa3 sendMail service now uses the FlexibleStringExpander to expand subject/body; communication event ID is added to the bodyParamters for the other mail services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774217 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 05:51:45 +00:00
Andrew Zeneski d294d588cf minor changes to make sure the sendMail service is called through the service engine instead of as a method call; sendMail now returns a MimeMessageWrapper object with all the mail information to be used by communication event processing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774196 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 04:58:24 +00:00
Adam Heath b23e2f79e0 Generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771016 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 02:16:13 +00:00
Adam Heath e180117c27 Fix comparison of authenticators with classes loaded by different
classloaders.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771015 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 02:14:11 +00:00
Adam Heath cafb175428 Generics fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770049 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 03:27:29 +00:00
Adam Heath 9840b7cc1c Fix some StringBuffer usage that has crept in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770030 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:22:44 +00:00
Adam Heath 2220cb2419 Remove the Resolving classes; instead, make use of ServiceRegistry,
which simplifies the code quite nicely.  However, this means that
the system will *not* walk the classpath, converting everything to
a file/jar, and trying to load *all* org.ofbiz.* classes.  Instead,
it only will load those classes that have been configured to be
looked at, by way of the services text files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770025 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 00:58:04 +00:00
Andrew Zeneski 0914e26d41 Fixed spelling mistakes in comments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769920 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 20:45:57 +00:00
Andrew Zeneski f7e613752e refactored Authorization resolver to use the AbstractResolver superclass
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769475 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 17:32:16 +00:00
Andrew Zeneski 5375cb0ac7 dded touch points to userLogin & changePassword services to call AuthHelper for external authentication module support. Part of the new Authentication API. This commit also includes the service changes for the new 'externalAuthId' field on UserLogin.
Part 1: define the API for external authentication modules (done rev 767281)
Part 2: update LoginServices to call AuthHelper for external modules (done)
Part 3: create example Authenticator (in progress)
Part 4: update LDAP implementation to use new API (not started)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767300 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 21:20:16 +00:00
Andrew Zeneski ae0a6ec821 updated javadocs and added missing license
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767282 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 20:18:10 +00:00
Andrew Zeneski eb103f9f0b initial implementation of new Authenticator API.
Part 1: define the API for external authentication modules (done)
Part 2: update LoginServices to call AuthHelper for external modules (in progress)
Part 3: create example Authenticator (in progress)
Part 4: update LDAP implementation to use new API (not started)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767281 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 20:14:27 +00:00
Andrew Zeneski 706e4d5e21 minor changes to better understand why an email may fail to be sent; specific excpetions are now caught
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765476 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 05:55:51 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Adam Heath 97c4dedcfd Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759231 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 16:56:17 +00:00
David E. Jones 3eee2073cc Moved some party dependent services out of the framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757644 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 03:44:59 +00:00
Adam Heath f08c8a99e0 Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757078 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:25:08 +00:00
Jacques Le Roux 0e0519e802 All tabs to 4 spaces in *.groovy, *.java, *.xml
Done with Eclipse S/R "\t"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755696 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 18:43:49 +00:00
Hans Bakker 749e9412b2 small improvement on prevous captcha commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754845 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 08:46:33 +00:00
Hans Bakker 32450a3936 captcha not always visible...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754827 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 07:02:47 +00:00
Jacques Le Roux f796e230d2 catch( => catch(
}else => } else

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751005 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:55:43 +00:00
Jacques Le Roux ec8e04ad01 try{ => try {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751002 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:49:18 +00:00
Jacques Le Roux fc6db9e886 if( => if (
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750997 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:36:09 +00:00
Jacques Le Roux 13a934f823 In spirit of Adam's r749341 and following http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#489
The idea is also that a lot of code is duplicated and then changed (copy/paste). Hence having a rightly formatted code help to keep it rightly formatted
1st (simple) step : ){ => ) { (I checked all occurrences but of course other pairs of eyeballs are welcome)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750993 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:31:13 +00:00
Jacques Le Roux cb74438cd4 Refactoring of ImageTransform, mostly
* Split into 2 classes one in framework/common : ImageTransform, one remains in product : ScaleImage.java
* Moved some labels used by ImageTransformCreated from ProductErrorUiLabels.xml in new CommonErrorUiLabels.xml  
* Moved Jdom from webapp/lib to base/lib, updated .classpath


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750018 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 14:22:55 +00:00
Hans Bakker c29a617884 missed this file in last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748142 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 13:29:59 +00:00
David E. Jones f27b4eeaaa No functional changes, just reorganizing code: moved email services from content to the framework/common component except the CommunicationEvent related ones which are now in the party component along with other CommunicationEvent resources; changed framework components so that webapp no longer depends on common and common is higher level than the various tool components which was an odd dependency before; one new thing is in here and that is an entity called EmailTemplateSetting which is meant to be a generic version of the ProductStoreEmailSetting entity so we can have configurable email templates without depending on ProductStore, still need to write the service to send email from this (sendMailFromTemplateSetting)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744727 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 19:34:49 +00:00
Hans Bakker 921a74c3f4 as reported in the mailinglist, lookups now working
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742862 13f79535-47bb-0310-9956-ffa450edef68
2009-02-10 06:09:26 +00:00
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