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
Adrian Crum
28bc332e04
Small change to Scott's UEL improvement - convert NodeList to a java.util.List so that it can be treated like a regular List.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770990 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 22:37:08 +00:00
Adrian Crum
f4b0b4aac9
UEL improvements:
...
1. Implemented operator substitution suggested by Jacopo and Scott. It is a subset of the beanshell operator substitution - http://www.beanshell.org/manual/syntax.html#Document_Friendly_Entities .
2. Added an extension to UEL that permits using variables that might not exist in expressions. Example: The expression ${foo + bar} will throw an exception if either foo or bar don't exist. Assuming foo and bar are both intended to be integers, the expression ${foo$integer + bar$integer} will not throw an exception. Instead, Integer instances (initialized to zero) will be created for the missing variables.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770973 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 18:04:21 +00:00
Scott Gray
2b55fa55da
OFBIZ-2397
...
Implement a custom JUEL ELResolver that handles string properties for objects implementing org.w3c.dom.Node
and org.apache.xerces.dom.NodeImpl. It takes the String and compiles it into an XPathExpression which is
then evaluated against the base Node. The JUEL evaluation returns either null, a single Node or a NodeList
depending on the result of the XPath evaluation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770915 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 08:45:22 +00:00
Scott Gray
4049b07769
A little documentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770905 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 06:57:30 +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
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