Commit Graph
10472 Commits
Author SHA1 Message Date
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
Adrian Crum f44142ffd0 Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770749 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 16:47:17 +00:00
Adrian Crum cc769deb07 UEL functions improvements. Added str:toLowerCase(String) and str:toUpperCase(String) functions. Added a method to the UelFunctions class to make it easier to add built-in functions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770746 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 16:31:55 +00:00
Scott Gray d3bb5b5eb1 Fixed issue reported by Sascha Rodekamp on the user mailing list
enableEditValue was being treated like a boolean but was actually a String

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770501 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 00:36:32 +00:00
Andrew Zeneski f0b38d7463 turned off the debugging
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770408 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:35:37 +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
Adrian Crum abda4e364c Removed a bunch of nested expressions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770308 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 16:12:21 +00:00
Hans Bakker 8a12eea06c OFBIZ-2393: portlet list not displayed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770272 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 15:06:04 +00:00
Jacopo Cappellato f0054a76c8 Removed wrong field name that was causing an error with the new renderers. OFBIZ-2393
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770264 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 14:57:35 +00:00
Jacopo Cappellato 2d2e4870bf Migrated code, and adjusted to work with the new macro renderers, that implements the in-place editor for display fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770243 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 14:32:45 +00:00
Jacopo Cappellato 94b153c12a Fixed wrong name of the key used to retrieve the values for checkboxes; OFBIZ-2391 (thanks to Hans Bakker for the bug report).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770125 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 09:23:35 +00:00
Andrew Zeneski 4163690788 Refactored Example Application to use new security mechanics - JIRA OFBIZ-2392
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770084 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 06:23:18 +00:00
Andrew Zeneski 6ada9f4f66 integration with new Authz API - JIRA OFBIZ-2381
(only added to ContextMapper)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770077 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:53:08 +00:00
Andrew Zeneski 4efd08c46c changed name of context in groovy DA handler; conflicted with the internal name 'context'; added logging and minor fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770076 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:49:25 +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
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 37a3734593 Some tightening of generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770034 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:59:21 +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 3510f7c574 Fix bad html in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770029 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:21:50 +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
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 b3661fdd45 Integration with new Authz API - JIRA OFBIZ-2381
Note: implemented the same as widgets use of action="" uses old api, without action="" uses new api


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769965 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 22:10:42 +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 4027891ed9 integration with new Authz API - JIRA OFBIZ-2381
NOTE: when using the action="" the old API is always used; when no action is specified the new API is used



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769943 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:27:59 +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
Andrew Zeneski d8f436a148 Integration with new Authz API - JIRA OFBIZ-2381
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769936 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:11:35 +00:00
Andrew Zeneski e3b9abb297 implementation of new authorization (authz) functionality -- JIRA OFBIZ-2381
NOTE: Even though there are a lot of commonalities with this and the older security framework, this was implemented to not conflict with the existing implementation; the purpose of this is so they both can run side by side during the migration process. Code not migrated will still function as expected and once this is complete, the old implementation will be removed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769928 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:01:25 +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
Adrian Crum 26c4787ec3 Updated the xsd URIs in XML files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769576 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 22:34:47 +00:00
Andrew Zeneski 8293ca3b9a added method to run script from classpath; added annotations to suppress warnings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769508 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:41:21 +00:00
Jacopo Cappellato 3b7e656368 As suggested by Joe Eckard in the ml, this will fix the barcode rendering that was broken after recent upgrade of FOP.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769500 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:04:37 +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 d37f55dba6 added abstract class resolver; this does the dirty work of searching for classes on the classpath
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769474 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 17:31:38 +00:00
Jacques Le Roux 5177814312 Reformatting, easier to read (also can't resist to use Ctrl+Shift+F in Eclipse+Oxygen).
We can do better by hand, so I kept those already well formatted.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769425 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 14:55:36 +00:00
Hans Bakker cdf0d78cf0 corrected non-thread safe code after a comment from David
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769377 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 12:46:43 +00:00
Hans Bakker 4c0c034121 some more faultfixing on customer request notifications: mainly the partyIdTo was not provided
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769274 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 07:49:12 +00:00
Hans Bakker 9c6612b740 intermittent error seems to be solved with this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769236 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 04:16:19 +00:00
Scott Gray 4acd7cc4f9 Corrected simple method documentation regarding the transaction timeout UOM, added the same to the services xsd and fixed a couple of service defs that appeared
to be specifying milliseconds rather than seconds.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769205 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 23:53:40 +00:00
Christian Geisert f66cfd956a added missing Jar for FOP (needed for SVG/Barcode generating)
Barcode still not working


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769030 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 15:42:11 +00:00
Scott Gray 0444b960a2 Wrap EntityListIterator usage in a transaction
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768999 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 14:19:33 +00:00
Scott Gray 50380d2301 Allow GenericEntity.NULL values through without warnings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768984 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 13:52:31 +00:00
Jacques Le Roux bf299998db A patch from dukian "Tree widget doesn't apply parameter tag as Menu" (https://issues.apache.org/jira/browse/OFBIZ-2325) - OFBIZ-2325
Thanks to Jacopo's comment which helped a lot to test!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768811 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 22:14:29 +00:00
Hans Bakker 04a2002fff disabled new screen renders by accident....enabled them again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768691 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 09:17:56 +00:00
Hans Bakker 00a5b35040 put back requests backHome and backLast, now with security
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768690 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 09:05:07 +00:00
Jacques Le Roux 5de088f285 I have not seen this error for some times, but anyway this is more secure, suggested by Stephen Rufle on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768675 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 07:43:24 +00:00
Adam Heath 589c319f15 Don't do string addition, especially in a timing function.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768652 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 05:19:45 +00:00
Hans Bakker a1bdfbb817 remove unused requests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768643 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 04:58:50 +00:00
Adrian Crum 58e205ef4a Small fixup for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768640 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:57:55 +00:00
Adrian Crum 619ed2cfc0 Small fixup for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768635 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:28:53 +00:00
Adrian Crum 2d44a4cec2 Cleaned up SaveLabelsToXmlFile.java code, converted to use new UtilXml methods.
This is an example of how to eliminate the use of the deprecated OutputFormat class.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768634 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:21:40 +00:00