Commit Graph
227 Commits
Author SHA1 Message Date
Adrian Crum a777172d63 More temporal expression fixups.
I think this is ready now. The expression language won't change and the Java API won't change, so we can start building on it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@696344 13f79535-47bb-0310-9956-ffa450edef68
2008-09-17 15:38:16 +00:00
Adrian Crum f91d030bfc Safety/sanity checks for the temporal expression Java code.
Yes, there is millisecond arithmetic in this code. No, I haven't changed my view on it - millisecond arithmetic is still Evil. In this case I'm just using it to get a java.util.Calendar instance in the neighborhood of where I need it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@696134 13f79535-47bb-0310-9956-ffa450edef68
2008-09-17 02:39:19 +00:00
Adrian Crum 50724da6b9 More temporal expression work - additional JavaDocs, code fixups, converted all job sandbox jobs to temporal expressions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@695995 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 18:19:55 +00:00
Adrian Crum 7692f1851b Updated the job scheduler to use temporal expressions. Recurrence rules still work - so there is no rush to change existing installations.
I moved the recurrence count to the job sandbox. Keeping counters in the recurrence info was a bad idea. Any other code that relied upon counters in recurrence info will have to be redesigned to use temporal expressions.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@695695 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 00:10:17 +00:00
Adrian Crum 07002b3ebb Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@695691 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16 00:00:40 +00:00
Adrian Crum 9f0dc4b5f1 Temporal expression recurring event framework. Based upon a design by Martin Fowler, and discussed in https://issues.apache.org/jira/browse/OFBIZ-1956.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@695688 13f79535-47bb-0310-9956-ffa450edef68
2008-09-15 23:40:31 +00:00
Adrian Crum 04b1c1f098 PersistedServiceJob.java improved messages - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689179 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 19:34:06 +00:00
Hans Bakker dacfc87aa2 email poller seems to stop polling without notice...change log severity level
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687693 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 10:25:02 +00:00
Adrian Crum ead3169d5c FlexibleStringExpander refactor.
1. Improved parsing logic - the entire expression is pre-parsed now.
2. Factory method stores parsed expressions in the cache.
3. Single null/empty expression instance - saves on memory.
4. Class names and variable names shortened to reduce object size.
5. Small performance improvements.

The expression cache is set up with no limit. We'll have to see if that needs to be changed. Larger installations might need to limit the expression cache size.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687422 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 18:50:04 +00:00
Jacques Le Roux e7905f2c8c Fix the anti-pattern
if (* != null && *.size() > 0) { 
where * is a variable name (String or Collection). Rewritten to
    if (UtilValidate.isNotEmpty(*)) {

Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {

And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Adam Heath e410552cc9 No longer *copy* the extra support files into the classes dir;
instead, just add them straight to the final jar.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath 2617681b51 Remove svn:executable on a bunch of stuff.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684389 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 00:53:43 +00:00
Adam Heath c9d5ac3ea9 Fix typo in Debug.verbose message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683441 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 23:11:34 +00:00
Adam Heath e2e6f2bf4b More generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682059 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 21:39:11 +00:00
Adam Heath b6a1ae5e5e Another minor optimization; no longer need to specify classpathref in
all the build.xml files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
David E. Jones 32c9cdf316 One more enhancement to entity-auto to automatically handle the oldStatusId OUT population and checking StatusValidChange for status changes; note that this does nothing to keep a status history, that should be done in a custom service called by SECA rule
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679301 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 08:24:43 +00:00
David E. Jones 987d4fc1a0 Expanded entity-auto engine to support auto fromDate; a bunch more changes to example component services to eliminate implementations possible so far; now there are just a few left
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679288 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 07:08:10 +00:00
David E. Jones 2ccff0b5d8 An option I've resisted for a while due to limited flexibility when used, but we have a lot of these common cases so this may be worth it; can now define CrUD services and not have to implement them for common cases; the create, update, and delete ExampleItem services now use this entity-auto implementation instead of explicit simple-methods; those are tested and are working, and other variations on create should too but I haven't tested them yet; this also includes various refactorings to expose nderlying tools in simple method code and make it reusable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679058 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 10:24:58 +00:00
Scott Gray 37eee64c89 Applied patch from Roland OFBIZ-1848, WSDL generation was creating duplicates when a parameter was being overridden.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678119 13f79535-47bb-0310-9956-ffa450edef68
2008-07-19 08:38:51 +00:00
Jacques Le Roux 641ff10050 Update Copyright to 2008
A real replace in files feature was one of the reasons I use Eclipse 3.4 for near a year now (I even helped to test, a real must have :o)
Not sure previous commit was sent partially or not at all (I needed to update)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677685 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:56:25 +00:00
Jacques Le Roux 89cbe8b368 A patch from Markus Studer ""german translations for framework - base, minilang, service, webapp" (https://issues.apache.org/jira/browse/OFBIZ-1878) - OFBIZ-1878
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676947 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15 16:02:31 +00:00
David E. Jones 204d775174 More entitygroups gone, all of framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672910 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 20:49:10 +00:00
Adam Heath 18391f98a9 The build.xml files are now much smaller and simpler; they reuse a
few global definitions.  1585 lines removed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00
Jacopo Cappellato dbd34520d7 Cleaned up a bunch of warning messages for deprecated methods; in preparation for the framework release.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671223 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 15:47:28 +00:00
Andrew Zeneski d9ab64888d fixed encoding issues with SOAP responses; now ignoring all internal parameters for SOAP client calls (when TimeZone was added it broke the encoding)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@669642 13f79535-47bb-0310-9956-ffa450edef68
2008-06-19 18:47:13 +00:00
David E. Jones 64399e2f2e Small change to fix NPE by checking for null instead of checking to see if there is an entry as it could be null
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661338 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 14:31:56 +00:00
David E. Jones 82df3529e2 More cleanups of now deprecated constructors and what what
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:16:36 +00:00
David E. Jones b9d6f8b524 Changed EntityExpr and EntityFunction subclasses to use the factory instead of constructor pattern, plus moved EntityExpr to EntityCondition factory methods; a number of EntityExpr cleanups, but many more to go
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660812 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:20:09 +00:00
David E. Jones 3543d6abe3 Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
David E. Jones e4804fe553 Applied patch from Bilgin Ibryam in Jira #OFBIZ-1756 to extend the support for by hours and by days in recurrence info and use them as part of conditions for promotions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658108 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 05:48:51 +00:00
Adrian Crum a3536990f1 Locale and Time Zone refactor and bug fixes.
1. Modified the Start class to initialize the JVM default locale and time zone - configurable through start.properties. Removed calls to UtilDateTime.getDefaultTimeZone() - no longer needed.

2. Changed all calls to ObjectType.simpleTypeConvert(...) that didn't supply the necessary Locale and TimeZone objects. This fixes a lot of localization issues, https://issues.apache.org/jira/browse/OFBIZ-1696 being one of them.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658045 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:50:14 +00:00
David E. Jones a713ad4bd7 Added support for groovy services, and an example of the same; cleaned up the way that bsh services work and updated the example and such to match, now returns a context as one would expect
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@657701 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 00:22:46 +00:00
Scott Gray 153653615b Removed the rest of the calls to deprecated GenericDelegator methods, except for the findListIteratorByCondition which takes a DynamicViewEntity as a parameter not sure what to do about that one.
There's still all the bsh files to check though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655235 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 03:29:04 +00:00
Scott Gray c182253d73 Removed more calls to deprecated GenericDelegator methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655013 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 05:35:16 +00:00
David E. Jones 329631a4b5 A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
David E. Jones 3b7660fc3b Added feature to entity engine to support generic audit log that can be used for any field; values are converted to a string and l using the enable-audit-log attribute on the entity->field element; the Testing entity uses it now for the testName; this also has functionality to associate user info like the userLoginId with the thread so that the EE knows about it automatically, and uses a stack for flexibility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652226 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 02:02:29 +00:00
Scott Gray 1eaf3ccd19 Moved a couple of misplaced semaphore attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@649478 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 12:09:09 +00:00
David E. Jones 0b4bcd4807 Added stuff to get definition location URL for all artifact types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644206 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 07:59:52 +00:00
David E. Jones d8c3eef9b1 Added more info about entities and services in the artifact info page
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639097 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 00:12:44 +00:00
David E. Jones 7a9d0173b7 Fixed issue with format of output, colons aren't good in filenames; fixed issue where triggering ecas weren't getting registered
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634192 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 08:34:45 +00:00
David E. Jones 2fa39223f3 Fixed issue with java parsing; fixed caching for ArtifactInfoFactory; small cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634183 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 07:40:48 +00:00
David E. Jones e6e09fcc68 Moved plist stuff to its own file; added simple class to look for stuff in Java code, amazingly seems to be working to find entities/seseems to be working to find entities/services in java services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634119 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 02:08:10 +00:00
David E. Jones 1af406bebf Changed plist export to use XML form, much more friendly to funny characters; a few fixes/improvements too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633783 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 07:40:02 +00:00
David E. Jones be576cbf0c A bunch of fixes and refinements, completed first pass of successful full load for all entities/services, and an export of eomodeld forand service and an export for one service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633402 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 09:28:48 +00:00
David E. Jones 062fff4cf0 Fixed a couple of things, fleshed out a little more data gathering for artifact info
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633364 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 05:04:54 +00:00
David E. Jones 2bf0afbe4a No real functional changes to operational code, just new stuff for getting meta data about entities, services, etc from the system
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633325 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 23:37:14 +00:00
David E. Jones 22a58861f5 Some refactoring of the entity eomodeld export, wrote initial service and eca calling/called graph, still needs data gathering though
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630737 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 05:47:34 +00:00
Hans Bakker 1ac8c10955 converted several framework language labels files to the xml format and added the Thai language
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630117 13f79535-47bb-0310-9956-ffa450edef68
2008-02-22 08:39:43 +00:00
David E. Jones a361298dbb Small change to use List instead of Collection for ECA rule lists in the generic cached Map
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628698 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:16:11 +00:00
David E. Jones edafa04bd7 Added seed-initial data set and changed all JobSandbox seed data entries to be in this instead; allows for reloading of seed data withows for reloading of seed data without redundant jobs scheduled
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627824 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 18:26:44 +00:00