Commit Graph
112 Commits
Author SHA1 Message Date
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Jacques Le Roux b5cfc499f9 Organize import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935267 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:17:42 +00:00
Scott Gray 1c39f04adb Service definition was pointing to the wrong implementation location, strange that they're in different components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931787 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:37 +00:00
Adam Heath 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Jacques Le Roux aa95728f0b In eCommerce password Hint Message should be an event message, not error message.
Thanks to Koon Sang at https://issues.apache.org/jira/browse/OFBIZ-3525 - OFBIZ-3525

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917435 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 09:41:47 +00:00
Ashish Vijaywargiya 9905e69fa6 Adding productStoreId in bodyParameters so that it can be used if needed.
Patch from Divesh.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915730 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 09:49:31 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 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@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 05b3ea3230 Make use of the init target, to set excludes based on available
libraries, so that the common classes target can be used.  This also
sets src.exc.set correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894028 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:20:32 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Jacopo Cappellato 1a6d504e5a Anonymous UserLogin is referenced by services in various components, so I have moved it into a file that is loaded with seed data; also removed unnecessary password and set is as not enabled since it will not be used to log into the applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829464 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 23:14:59 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adam Heath 28e751cc4e Remove custom UtilCache caching of security items; this is actually
a bug fix, the minilang services were referencing fields that no
longer existed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817316 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 16:48:34 +00:00
Jacques Le Roux 874e1d38dc ASL2 headers, I guess it's OK now, to check see http://ci.apache.org/projects/ofbiz/rat-output.txt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812033 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 08:20:26 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Ashish Vijaywargiya 170aa8100a Adding more data to test role based permissions on catalog manager.
For testing this you can login by user ltdadmin & ltdadmin1.
And then can update records in consecutive tabs present in the EditProduct screen.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@795728 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 09:40:55 +00:00
Scott Gray 5bd4d1a388 Fix a problem with the demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779889 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 08:18:53 +00:00
Andrew Zeneski a3586b9371 added partyId field so email gets logged as communication event
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774199 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 05:01:36 +00:00
Jacques Le Roux f29b4787b4 As suggested by David, these lines are not needed anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771090 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 17:19:37 +00:00
Andrew Zeneski 485805fe3f Renamed AbtractAuthorization to AbstractAuthorization (bad typo)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770836 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 21:53:29 +00:00
Andrew Zeneski 87535e2f67 Often thread pools do not clear ThreadLocal, implemented a workaround to handle this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770771 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 17:47:52 +00:00
Scott Gray 1e0f7725cd Fix the auth tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770655 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 12:47:33 +00:00
Scott Gray 6fddaf6815 Removed unnecessary delegator since a test delegator is provided by the parent class. I need to make it final so this
doesn't happen but JUnit instantiates the object so I can't do it without extending their class. It's on my todo list.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770596 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 09:19:43 +00:00
Andrew Zeneski f36c5a9335 No longer requiring the boolean field 'expanded' as part of the API; after dicussing w/ Adrian; the FSE can handle pre-expanded strings
Added new API method findMatchingPermission() which takes a regular expression for the base permission returning the value of all matching permissions (see unit tests)
Fixed missing base permission in SecurityData.xml

JIRA OFBIZ-2381


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770401 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:14:48 +00:00
Andrew Zeneski 15e577f68e added license header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770036 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 02:02:39 +00:00
Adam Heath 65fce55790 Oops, this class got modified to use the removed AbstractHandler
before I removed AbstractResolver.  Rewrote it to use ServiceRegistry
instead, which, as before, simplifies the code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770028 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:21:11 +00:00
Adrian Crum e34785168f Fixed a problem with the new auth code that was preventing compilation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769991 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 23:18:24 +00:00
Andrew Zeneski c0d6530bb6 Added check to prevent recursive permission lookup (when implementing dynamic access logic using services) - JIRA OFBIZ-2381
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769963 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 22:08:07 +00:00
Andrew Zeneski 3492a12c3c Implementation of new Authz dynamic access handler using the service engine; placed in securityext to prevent cross dependencies. Implemented test cases for authz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769929 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:02:58 +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 14ea43adaf Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759255 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 17:01:44 +00:00
Adam Heath a3adf0acfe Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757094 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:45:04 +00:00
Jacques Le Roux cbca93e6b4 securityext component
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755939 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 11:47:51 +00:00
Ashish Vijaywargiya 94faebe2b8 Followed best practice.
Changed location="org/ofbiz/......... to location="component://

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755828 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 04:25:50 +00:00
Ashish Vijaywargiya e0b9c086a7 Followed best practice.
Changed location="org/ofbiz/......... to location="component:// in the call-map-processor tag.

Will remove the entries in other files ASAP.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755826 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 04:17:41 +00:00
Marco Risaliti 490bf784a4 Artifact cleaning after recent changes on xsd files (OFBIZ-2137)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754738 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 20:07:30 +00:00
Jacques Le Roux 0597116aba <call-object-method obj-field="(.*)" obj-map="(.*)" method-name="(.*)" ret-field="(.*)" ret-map="(.*)"/> => <call-object-method obj-field="$2.$1" method-name="$3" ret-field="$5.$4"/>
<call-object-method obj-field="(.*)" obj-map-name="(.*)" method-name="(.*)" ret-field="(.*)" ret-map-name="(.*)"/> => <call-object-method obj-field="$2.$1" method-name="$3" ret-field="$5.$4"/>
<session-to-field field-name => <session-to-field field

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740035 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 16:55:53 +00:00
Jacopo Cappellato 98e71f1922 Misc cleanups for data files:
1) added {SHA} prefix to all hashed passwords
2) moved "admin" user to demo data; the only user maintained with seed data is now the "system" user
3) removed password for the "system" user; now there are no passwords in seed data



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739743 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 11:40:55 +00:00
Jacques Le Roux 94225b1a34 Fix issues with now-timestamp-to-env and sequence-id-to-env : their factories names where missing in org.ofbiz.minilang.method.MethodOperation$Factory file
also
<sequenced-id-to-env(.*)env-name => <sequenced-id$1field
<now-timestamp-to-env(.*)env-name => <now-timestamp$1field
both on *SimpleMethods*.xml, *events*.xml, *formula*.xml, *services*.xml, *tests*.xml (previously I only used *events*.xml, *services*.xml, but I guess it's not a big deal for now)




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730433 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 17:47:37 +00:00
Jacques Le Roux 0272162a99 revert both
sequenced-id(.*)field to <sequenced-id-to-env$1env-name
<now-timestamp(.*)field => <now-timestamp-to-env$1env-name
Something is wrong with these 2 tags (inconsistency between xsd and java, I'll look at it)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730397 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 13:59:08 +00:00
Jacques Le Roux dbc4228779 <now-timestamp-to-env env-name => <now-timestamp field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730194 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:25:18 +00:00
Jacques Le Roux c1dd5bc296 <remove-value value-name => <remove-value value-field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730191 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:21:47 +00:00
Jacques Le Roux 1d979ede39 <store-value value-name = > <store-value value-field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730190 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:20:41 +00:00
Jacques Le Roux bbedb431c2 <get-related(.*)value-name => <get-related$1value-field
<get-related(.*)list-name => <get-related$1list
<get-related(.*)\R(.*)list-name => <get-related$1\R$2list-name
<get-related(.*)\R(.*)value-name => <get-related$1\R$2value-field
<calculate field-name => <calculate field
<calcop(.*)field-name => <calcop$1field
<result-to-field(.*)field-name => <result-to-field(.*)field
<result-to-field(.*)field="(.*)"(.*) map-name="(.*)" => <result-to-field$1field="$4.$2"$3
<field-to-request field-name => <field-to-request field

(I had a connection break that's while I put all of them in one sole commit)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730183 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:12:15 +00:00
Jacques Le Roux e25c1d9c67 <create-value(.*)value-name => <create-value$1value-field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730108 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 12:01:09 +00:00
Jacques Le Roux 4ed4fcf8b9 same but with non
<set-pk-fields(.*)map-name => <set-pk-fields$1map
<set-pk-fields(.*)value-name => <set-pk-fields$1value-field
I was not very clever on this one ;)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730107 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 11:59:10 +00:00
Jacques Le Roux ec8447c72a <set-pk-fields(.*)map-name => <set-pk-fields$1map
<set-pk-fields(.*)value-name => <set-pk-fields$1value-field

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730104 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 11:55:26 +00:00
Jacques Le Roux 288c384783 <find-by-primary-key(.*)map-name => <find-by-primary-key$1map
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730101 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 11:51:58 +00:00