Adrian Crum
7fa08f9079
Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +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
Scott Gray
2afbb75457
Get rid of a whole pile of unnecessary string instantiations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818665 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 23:49:02 +00:00
Scott Gray
69500fc964
Add a new method to allow a content url to be generated without a request object
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817601 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 11:05:40 +00:00
Adrian Crum
74ea95889c
Reverted rev 802567.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Hans Bakker
5a78b96a0b
remove log mesage
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812027 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 07:56:13 +00:00
Scott Gray
e86aca235a
Applied a slightly modified fix from Eric de Maulde (OFBIZ-2757), the currency transform for FreeMarker was not permitting rounding to 0 decimal places
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811813 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 11:24:57 +00:00
Hans Bakker
d6a65c264a
helpscreens placeholders now converted to the docbook V5 format inclusive of namespace support, updated the apache ofbiz document to explain how to create helpscreens, created an ftl template to display the docbook help screens, docbook pdf generation now almost working: it can create a local pdf file, but streaming to the browser does not work..if anybody interested to help me check modelscreenwidget.java line 1206
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811787 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 09:39:20 +00:00
Scott Gray
c7c375cecc
Don't redirect https requests to http if the request map specifies https since it forces the client to repost data over an unsecure connection
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@806552 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 13:49:07 +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
Jacques Le Roux
4c442ee379
Some fusiness
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804895 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:20:38 +00:00
Hans Bakker
fbaad86261
unwanted change
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804075 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 04:24:25 +00:00
Hans Bakker
2d51096b6d
Excellent contribution from Brett G. Palmer in issue: OFBIZ-2116
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804074 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 04:22:27 +00:00
Adrian Crum
6786aa4dbc
Refactored GenericDelegator:
...
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.
2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.
3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.
This commit paves the way for the forthcoming ExecutionContext.
User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.
Aside from those changes, this commit is backwards compatible.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Adrian Crum
b96f551de7
Converted Security.java to an interface. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802563 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 17:20:06 +00:00
Adrian Crum
7bc514f98d
WebDavServlet.java now uses the cached ClassLoader.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802043 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 15:20:24 +00:00
Adrian Crum
c13c47f919
Chinese translation for the framework folder, provided by Shi Yusen - https://issues.apache.org/jira/browse/OFBIZ-2767 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798941 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 15:14:01 +00:00
Anil Patel
a29ff05ca5
Adding Json event handler for multi service. Patch from OFBIZ-2762. Thanks Rishi and Chirag for implementation.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798114 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 12:22:21 +00:00
Scott Gray
e72e9a8029
Added a new ServletContext parameter "forceHttpSession" that when set to true forces the JSESSIONID cookie to be sent via http
...
This resolves an issue in the ecommerce app where if the initial request to the app is an https request then the session cookie is available via https only.
Subsequently if at any point the user switches to http then the session is lost along with any data such as the shopping cart.
The solution involves checking if the request is an https request and if the session is new then the user is redirected to an http version of the request.
The session cookie is then sent along with the http response which will either be the page requested if the request doesn't require https or otherwise another
redirect back to the https version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798025 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 05:02:19 +00:00
Alfred Maxwell Byers
c0ac870199
The content length was being calculated on the wrong string.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@797681 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 22:41:34 +00:00
Scott Gray
99ec7450cf
For view-last responses if no previous view can be found then allow the value attribute to be used as the default view.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796918 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 01:00:58 +00:00
Adrian Crum
e4ee374a66
Conversion from java.util.Calendar to com.ibm.icu.util.Calendar. I didn't convert the Cloud component - I wasn't sure if the Calendar class was being passed through SOAP.
...
OFBiz users who have modifications or add-ons can make the same substitution to get them to compile.
I'll let the dust settle from this, then I'll add the user-selected calendar capability.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792987 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10 15:39:21 +00:00
Scott Gray
dec24b29f2
Sorry for the big commit, got a bit carried away.
...
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adrian Crum
f83c020c1b
Code cleanup and bug fixes in WebDAV and iCalendar.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789871 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 18:46:10 +00:00
Adrian Crum
5c4ddcf56f
More iCalendar improvements. Added HTTP challenge/response authentication, enforce SSL.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789490 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 23:28:37 +00:00
Adam Heath
dd51c0108b
Add a simple initCause helper method.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
Scott Gray
1d43a59500
Do not save the view if the last view is the same as the current view and saveCurrentView is false
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789303 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 12:05:57 +00:00
Adam Heath
0e54c940c9
Add a variant of appendContentPrefix that takes an Appendable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789201 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 03:22:03 +00:00
Adam Heath
2752e89c06
Switch to ContentUrlTag.appendContentPrefix to StringBuilder, and
...
deprecate to the StringBuffer variant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789177 13f79535-47bb-0310-9956-ffa450edef68
2009-06-28 23:50:53 +00:00
Adrian Crum
09061f7f31
Oops, C&P was my enemy again.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787919 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 06:07:35 +00:00
Adrian Crum
9ae2dd39b9
A rudimentary WebDAV servlet. This is in preparation for the forthcoming iCalendar improvements. It is only a beginning - it needs to be built out.
...
I put this in the framework because it is reusable and extensible. For example, a WebDAV interface to the Content component could be useful.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787915 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 05:58:56 +00:00
Scott Gray
ed77ea73ee
Fix an attribute name
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787442 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:24:01 +00:00
Scott Gray
66c49c1305
Clean up the mess that I just made :-/
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787436 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:04:51 +00:00
Scott Gray
65ebff46d6
Prevent view-last from overwriting the event/error messages of the current event
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787435 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:01:35 +00:00
Scott Gray
8e19d2e4e4
Removing the transform I added in r784712, thanks Adrian for pointing out its redundancy
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@785037 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 00:39:33 +00:00
Scott Gray
a1c341d5ef
Add a new template transform for including templates in freemarker templates using component notation:
...
<@includeTemplate location="component://common/webcommon/includes/cctypes.ftl"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784712 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 10:18:55 +00:00
Adrian Crum
c24450819b
Oops, I should have looked closer at that patch.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783830 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 16:14:38 +00:00
Adrian Crum
96fa7e81ae
Eliminated confusing property setting - https://issues.apache.org/jira/browse/OFBIZ-2577 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783824 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 16:04:12 +00:00
Hans Bakker
aca1f239c9
remove on mycommlist did not work and returned to a old unused saved view. save-home now clears save-current/last view
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783266 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 09:21:18 +00:00
Adrian Crum
70956fc56f
Fixed a problem with BsfEventHandler.java not recognizing the "component://" location syntax. Reported by Marco Risaliti - https://issues.apache.org/jira/browse/OFBIZ-2539 .
...
I also fixed a couple other problems with the class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779639 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 16:11:50 +00:00
Christian Geisert
4dafa44a64
fixed eol-style
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778786 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 16:11:43 +00:00
Jacques Le Roux
62d6877937
A patch from Ray Barlow " ProtectedViews aren't limiting by user login, just view name" ( https://issues.apache.org/jira/browse/OFBIZ-2466 ) - OFBIZ-2466
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774014 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 18:42:06 +00:00
Jacques Le Roux
94b3482509
Simplify rendering within a sole string (\n were rendered as <br> in plain text)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773076 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 20:18:23 +00:00
Jacques Le Roux
058d6aed57
A patch from Ashish Vijaywargiya "Change Copyright Year" ( https://issues.apache.org/jira/browse/OFBIZ-2346 ) - OFBIZ-2346
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Scott Gray
e5cb2d7634
Remove unused properties file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771153 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 01:03:53 +00:00
Adam Heath
1a31984695
Several minor generics fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771124 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 20:35:52 +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
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
8b50910fc8
integration with Authz Integration with new Authz API - JIRA OFBIZ-2381
...
use request.getAttribute("authz") instead of request.getAttribute("security")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769937 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:14:21 +00:00