Commit Graph
27737 Commits
Author SHA1 Message Date
Hans Bakker d5ee364b77 add support for the scrum framework donated by Antwebsystems Co.Ltd. more info at: http://www.antwebsystems.com/control/ViewBlogArticle?articleContentId=21140&blogContentId=AWS_BLOG
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142915 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 08:15:32 +00:00
Hans Bakker cb7b9a6471 currently it is pretty difficult to disable a userlogin by setting the deleted date to a date in the future and enable=N, further when disable a party tries to disable related userlogins but does not set that future date. This change will allow to nullify the deleted date so it is now clear the userlogin will never be enabled. The deleted date is still available in the last modified date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142908 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 07:18:54 +00:00
Hans Bakker 6724a6698f use and demonstrate the seo friendly urls in the content/ecommerce blog function, add seca to update new created content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142577 13f79535-47bb-0310-9956-ffa450edef68
2011-07-04 07:33:18 +00:00
Adrian Crum 850cec4603 Minor Ajax code improvement: The defaultViewSize widget.properties setting can be overridden in a screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142458 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 16:48:56 +00:00
Adrian Crum 1e7c1b5218 Minor Ajax code improvements:
1. LookupDecorator checks the value of the ajaxLookup parameter instead of checking if it exists.

2. The displayReturnField widget.properties setting can be overridden in a request.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142358 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 01:49:35 +00:00
Hans Bakker 1749a6989f Add seo friendly url's for showing content. reorganize the same program snippets with seo friendly url for products. These content url's are demonstrated at the ecommerce frontend in the left bottom corner: Content Information
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141878 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:03:32 +00:00
Erwan de Ferrieres c84348312f forgot entry-name at rev 1140520
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141528 13f79535-47bb-0310-9956-ffa450edef68
2011-06-30 13:19:37 +00:00
Adam Heath 86d3573828 FEATURE: Load each configured catalina web context in parallel.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141318 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 23:10:01 +00:00
Adam Heath baf66a724f FEATURE: Parsing of secas.xml files are now done in parallel using the
global thread pool.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141317 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 23:09:56 +00:00
Adam Heath 835a9ae7c1 FEATURE: Parsing of eecas.xml files are now done in parallel, using the
global thread pool.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141316 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 23:09:50 +00:00
Adam Heath 35d2e86784 FEATURE: Parsing of service.xml files is now done in parallel, using the
global thread pool.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141315 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 23:09:45 +00:00
Adam Heath 7109b6c2f0 FEATURE: Do GenericHelper initialization in parallel.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141314 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 23:09:39 +00:00
Adam Heath b98a7f111c FEATURE: Add a global executor, to be used during config type parsing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141288 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:12:31 +00:00
Adam Heath 7c2a16d792 OPTIMIZE: Move the loading of the webapp components into the start()
lifecycle method, instead of init().

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141287 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:12:26 +00:00
Adam Heath af4b27e6bf OPTIMIZE: Move all the StandardContext api calls to a separate method,
configureContext.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141286 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:12:20 +00:00
Adam Heath 933ca1332f OPTIMIZE: Reorder createContext(), so that virtual host stuff happens
first, before the context is created/configured.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141285 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:12:15 +00:00
Adam Heath aa692e34ef OPTIMIZE: Rework part of createContext(), so that the host<->context
connection happens in one place.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141284 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:12:08 +00:00
Adam Heath bce471c3a1 FEATURE: Add some doFooTransaction variants, that allow for the
transaction timeout to be specified, and deprecate the old ones.
Additionally, the Callable now comes first, as that is groovy
compatible.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141283 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:12:02 +00:00
Adam Heath 4bfcf340d2 FEATURE: Reworked Callable helper methods to support wrapping/proxying, so
that calling code can pass the reconstructed objects directly to
Executor instances.

As a nice side effect, these classes show up in exceptions, so you can
know a bit more about the transaction nature of the call stack.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141282 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:54 +00:00
Adam Heath 27203418aa OPTIMIZE: Don't do ecaCache merging in addEcaDefinitions, instead do it
once after everything it loaded.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141281 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:48 +00:00
Adam Heath d5d86ead4d OPTIMIZE: Don't do ecaCache merging in addEcaDefinitions, instead do it
once after everything it loaded.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141280 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:43 +00:00
Adam Heath 30569f1651 FEATURE: Expose several of the internal variables thru bean accessors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141279 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:38 +00:00
Adam Heath ee2f15f195 OPTIMIZE: Make these classes final.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141278 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:32 +00:00
Adam Heath 8c90616645 OPTIMIZE: Move the group helper initialization code out of the loop and
into a separate method.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141277 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:25 +00:00
Adam Heath 6676048162 WHITESPACE: Do a bunch of whitespace transformative operations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141276 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:20 +00:00
Adam Heath b0cfef6886 FIX: The generics markup of user and session identifiers was not
correct; someone didn't understand how generics work(if you are casting,
you are most likely doing something wrong; if you are storing Object,
you are most likely doing something wrong).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141275 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:11 +00:00
Adam Heath f23be289b5 FIX: In resume(Transaction), there was a block of code commented out
that is supposed to be used on older WebLogic containers.  That code was
actually completely broken.  I've fixed it based on the embedded url,
but can't test it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141274 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:11:04 +00:00
Adam Heath 16f038e010 OPTIMIZE: In class TestOperation, instance variables should be first, then
constructors, before any other methods.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141273 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:10:58 +00:00
Adam Heath a9bb5dce34 FIX: Found a bad generics type; it actually was silently working, as the
list was being passed to a map, and when that happens, the generics
markup is effectively lost.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141272 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:10:52 +00:00
Adam Heath f7a186ad56 FIX: Fix some generics warnings I recently introduced.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141271 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:10:47 +00:00
Adam Heath 73a6b75ab9 FIX: Fix a syntax error in map creation(= was used instead of :).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141270 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:10:40 +00:00
Adam Heath a0777a70af TESTS: Remove previously added call to the "tests" target from
"run-tests".  In actuality, the container-based tests were already
running the base api tests, but not the TTLObject tests.  This was
originally done on purpose, as I was aware of a bit of racyness in the
async test, that I needed to track down before enabling it during
automated testing.  Unfortunately, this also means that the prior
runtime bug due to the removed line would not have been caught, unless
it was documented to run "tests" in each component from the cmdline
separately.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141269 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:10:35 +00:00
Adam Heath fc70cf098f BUILD: Added an -X:lint:unchecked line, uncommented. This line should be left
in the file, so that it is easier to enable/disable it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141268 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 22:10:31 +00:00
Hans Bakker 5e7e7120f3 change @ofbizcontenturl to @ofbizurl. It is content but not static content and is in reality a request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140954 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 03:39:53 +00:00
Hans Bakker cb826b3fc8 add the stream request to ecommerce to make the picture show in the blog. Related to rev: 1140919
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140945 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 02:05:56 +00:00
Hans Bakker 46a16bc572 move the stream request from content to commonext so streaming of image/video can be used in all components related to rev 1140919
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140933 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 01:20:24 +00:00
Hans Bakker a8ade40815 replace hardcoded /content/control with @ofbizcontenturl to allow usage with virtual hosts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140919 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 00:25:45 +00:00
Jacques Le Roux 8eab120a2b A modified patch from Nicolas Malin <<Add missing french entity label on RoleType , TermType>> https://issues.apache.org/jira/browse/OFBIZ-4325
JLR: For French translation of Incoterms see http://fr.wikipedia.org/wiki/Incoterm, some in OFBiz are deprecated (2000 now 2010)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140864 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 22:02:20 +00:00
Sascha Rodekamp c72264c557 Update - added some countries to the GeoWithState Entity for the dependend state drop down list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140710 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 16:26:05 +00:00
Erwan de Ferrieres d53c9e2352 Wrong parameter was used when displaying the project's info: the workEffortId was used instead of parentProjectId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140522 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 11:09:28 +00:00
Erwan de Ferrieres 7068845fac Correction on getProject when retrieving the parentProjectId and when editing a the parentProjectId from a project. Wrong parameter was used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140520 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 11:05:26 +00:00
Jacques Le Roux e8fa497d56 Fixes the protect view feature introduced at r727508 and broken since r741374. Fortunately the fix was pretty simple
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140469 13f79535-47bb-0310-9956-ffa450edef68
2011-06-28 07:47:40 +00:00
Scott Gray aeee568b6b Fix null check against a variable that was guranteed to be null, looks like a bug introduced during refactoring a while ago. The code now correctly tries to get the LocalDispatcher from the ServiceDispatcher before creating a new instance.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140375 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 23:39:00 +00:00
Scott Gray d63c719d1e Realized my previous commit (r1140358) was incomplete. Adding additional code to support serialization of ProductConfigItemContentWrapper objects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140362 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 23:13:20 +00:00
Scott Gray e36ecb4c39 Make references to Delegator and LocalDispatcher transient and provide methods to retrieve the objects when missing in ProductCofigWrapper and ProductConfigItemContentWrapper. Prevents non-serializable exceptions from being thrown when attempting to serialize a ShoppingCart object. Thanks to Arun Patidar for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140358 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 22:58:16 +00:00
Sascha Rodekamp bb87a9eb87 State dropdown only finds states and does not include county information (https://issues.apache.org/jira/browse/OFBIZ-4270) - I added a separte Entity which defines all countries which should show their states in the drop down list. It also checks states recursivly, to list all states (i.e.) for GB.
Orig Msg: If you are on this page https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/newcustomer select USA from the country drop down and it will display all the USA states, similarly it works just fine for Spain but if you try once again with either United Kingdom or France it will show "No States/Provinces exist".

Both UK and France have Counties saved in the datamodel but the form does not lookup in the correct location as they are not defined as State.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1140103 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 11:01:06 +00:00
Adam Heath 7e99311694 FEATURE: Add field-set feature to entity engine. You can now
put different fields into different field sets, and when you select any
field in a particular set, all fields in that set will be fetched.  This
also cascades upwards thru views, including alias-all and alias.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139922 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:19:06 +00:00
Adam Heath ce76187cb0 FEATURE: <view-conditon> on <view-link> is now supported.
This allows for LEFT JOINs that have additional filtering applied to
them.  FIXME: not implemented on theta- database types.

This feature depends on the following svn commits: 1139856, 1139869,
1139870, 1139879, 1139919.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139921 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:19:00 +00:00
Adam Heath 9213dd110e FIX/OPTIMIZE: Do column-name munging once, and save the
output, instead of doing it each time the sql string is generated.  This
solidifies the definition of getColValue() and getColName().  colName is
the identifier used to refer to the column, it's generally what comes
after the AS keyword.  colValue is used to the left of AS, and in
CONDITION/ORDER BY/GROUP BY clauses.

This change should allow EntityFieldValue to be rewritten, so it doesn't
have the hack of having to deal with the entityAliasStack.  In theory,
it can just call getColName/getColValue(I'm not certain which is the
correct one for this case).

Also, EntityFieldValue should not have that hack at all, it should have
been put into a completely separate class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139919 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:15:40 +00:00
Adam Heath c391207fac OPTIMIZE: Switch the database feature detection code to use a loop and a registry
of detectable features.  As a side effect, the output strings are now
aligned.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139918 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:15:34 +00:00