Commit Graph
130 Commits
Author SHA1 Message Date
Adrian Crum 078fc06cc0 Oops, I forgot to uncomment a line before my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614735 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 23:40:58 +00:00
Adrian Crum b6977272aa Fixed bug in Party Manager Edit Comm Content screen - https://issues.apache.org/jira/browse/OFBIZ-1575.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614733 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 23:37:19 +00:00
Bilgin Ismet Ibryam 75db3ce00a Disabled 'Tell-A-Friend' and 'Customer Reviews' links from Order manager.
Small cleanups.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611802 13f79535-47bb-0310-9956-ffa450edef68
2008-01-14 14:12:01 +00:00
Si Chen 8cf5749982 Fix overflow bug when email system attempts to create a CommunicationEvent.note that's larger than the field size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@610639 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 01:48:08 +00:00
Bilgin Ismet Ibryam b4a9b7f296 Added the missing import for r606789.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606794 13f79535-47bb-0310-9956-ffa450edef68
2007-12-25 15:30:14 +00:00
Jacques Le Roux bce4f0cb55 Refactored from a Fabien Carrion's patch "Send mail through gmail with the javamail api in ofbiz" (https://issues.apache.org/jira/browse/OFBIZ-1256) - OFBIZ-1256
With the help of Chris Howe

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@606789 13f79535-47bb-0310-9956-ffa450edef68
2007-12-25 13:19:29 +00:00
Jacques Le Roux 21fc2f91ba A patch from Fabien Carrion "To permit to have a view with jasperreports to export to excel using the poi api, or the jxls api." (https://issues.apache.org/jira/browse/OFBIZ-1250) - OFBIZ-1250
JasperReports is any longer used in OFBIz but this might be helpful in some occasions. As it changes anything (I reviewed but no tested) I prefer to commit than ignore.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604728 13f79535-47bb-0310-9956-ffa450edef68
2007-12-16 22:38:02 +00:00
Adrian Crum b584b3549b FOP code improvements, based on https://issues.apache.org/jira/browse/OFBIZ-1414.
The Jira issue mentions rendering to temp files, but I kept that out of the commit. If we get out of memory errors in the future, it will be easy to add it back in.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603483 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 06:38:23 +00:00
Andrew Zeneski baaa3a828f added code to allow adding objects to the FTL for survey rendering
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@596003 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 20:57:23 +00:00
David E. Jones 75c26763e5 Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00
Adam Heath c77ec31ac6 Fix stupid problems with javac and type inference.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586925 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 18:19:34 +00:00
Adam Heath 2ff7a8a575 Make use of the single-arg variants of makePK/makeValue, removeAll,
and clearCacheLine


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:46:57 +00:00
Adam Heath 56ae98f437 Make use of UtilCache.findCache.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585801 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:41:30 +00:00
Adam Heath abd5c3b0d6 Used LinkedHashMap/LinkedHashSet, from collections 1.2, instead of
using local variants.  Deprecated OrderedMap/OrderedSet.  The filed
patch removed them, but that might break downstream code, so I'll
leave them in for now.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1324


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585679 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 20:37:37 +00:00
Alfred Maxwell Byers c8af171051 Needed to add code to deal with conditional presence of "outWriter" param.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583562 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 18:00:06 +00:00
Andrew Zeneski a81553f655 implemented feature to allow setting default values for survey questions; response can be generated by setting v
alues (via a map) in the wrapper before rendering

implemented GEO and ENUMERATION types for Survey Questions; now ANY Geo Group or Enumeration Type can be listed
as survey option lists



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582539 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 22:25:35 +00:00
David E. Jones ca526c3957 Some improvements to how sequencing is done, including a new method in the GenericDelegator that does a sequence and create all in one, including a single retry with bank refresh on failure because of duplicate ID just in case two sequencers somehow get the same ID bank; in theory that is impossible but it has been observed in production and this is part of the 2 part solution to handle the problem more elegantly than having to restart the servers, and to try to find out just how two sequencers got the same bank of values; this includes changing a number of key code blocks to use the combined sequence and create for retry, and a little bit of code cleanup too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582142 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 09:02:49 +00:00
Alfred Maxwell Byers 7f318b8913 Adding some fixes to this work-in-progress
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580264 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 09:22:37 +00:00
Alfred Maxwell Byers 7f00277680 Fixed another bug I added. Was building a fromDate if none was passed and that was the wrong behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@580095 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 16:55:17 +00:00
Alfred Maxwell Byers 3919faa06f This is a new take on the old rendering tranforms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579473 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 05:04:09 +00:00
Alfred Maxwell Byers bd5a3da571 This is what it is supposed to be.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579472 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 05:02:38 +00:00
Alfred Maxwell Byers db2d36dac5 Fixing a really lame bug that I introduced.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579373 13f79535-47bb-0310-9956-ffa450edef68
2007-09-25 20:39:33 +00:00
David E. Jones 85613bb07a A couple of fixes/cleanup, and added support for state/province and country fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578754 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 10:54:59 +00:00
Alfred Maxwell Byers e0d985e8cc The content widget was not using the dataResourceId attribute. To make it work I had to
copy someone's brilliant WidgetContentWorker pattern.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577932 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 21:30:44 +00:00
Alfred Maxwell Byers bdde31286e Added ability to display subcontent data.
Need to add permission checking.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577116 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 23:58:20 +00:00
Alfred Maxwell Byers 42b85a02ec writeDataResourceText was not getting rootDir correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576751 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 07:43:19 +00:00
David E. Jones 8757c32d3f Small improvement to log more info and normally just log one persist or ignore message per email rather that two
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575491 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 22:49:17 +00:00
Andrew Zeneski f7fa12953b updated code to not try to create multiple role records
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574737 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 00:48:14 +00:00
David E. Jones fb4a0080b3 Fixed bugs in recently refactored FreeMarkerWorker: a Reader was always being created even if the template was cached, also the reader was never closed which means files stayed open until the garbage collector cleaned up these objects which on busy production systems could lead to many thousands of open files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573442 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 04:01:25 +00:00
Timothy Ruppert 7827c6d77e Fixed issue with parameters on sendMailFromScreen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571656 13f79535-47bb-0310-9956-ffa450edef68
2007-09-01 00:22:14 +00:00
Andrew Zeneski eb9e049b62 updated mailing services to track messageId in mail messages (in and out), updated mail polling to never create duplicate messages, and better store communication events
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571299 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:38:39 +00:00
Adrian Crum d6c7cdcd41 More fixes in the forum feature in the content component. I also added a few comments to indicate what different fields are used for.
The eCommerce component organized forum data one way, and the content component organized it another way. After discussion on the dev ml, I determined that the content component was storing data incorrectly.

This commit is not backwards compatible with existing forum messages. Existing forum messages will have to have the contents of ContentAssoc.contentId and ContentAssoc.contentIdTo swapped before updating to this revision.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569568 13f79535-47bb-0310-9956-ffa450edef68
2007-08-24 23:16:18 +00:00
Adrian Crum c49fd8b584 Some bug fixes for content manager. Add forum/thread/message now works. Update message still doesn't work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@568733 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 19:20:41 +00:00
Jacques Le Roux 838fbd115d A patch from Thomas Herzog "use UTF-8 encoding for emails" (https://issues.apache.org/jira/browse/OFBIZ-1083)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@566428 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 00:15:55 +00:00
Jacques Le Roux 49ca64b03d A patch from Adrian Crum "FreeMarkerWorker class has a bug in its caching logic" (https://issues.apache.org/jira/browse/OFBIZ-1170)
I applied the NewFreeMarkerWorker.patch. It's commited as CTR, I tested it one week without any problems.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564530 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 09:45:09 +00:00
Alfred Maxwell Byers 85bd8959db Changed renderSubContentAsText to do a query without "mapKey" if it does not exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@563987 13f79535-47bb-0310-9956-ffa450edef68
2007-08-08 19:02:15 +00:00
Si Chen c18385a25e Fix a problem where processSubscription and extend subscription by order services were returning error for orders which did not have the End User Customer role created. The more logical thing to do is just to return failure, so that orders which have nothing to do with subscriptions and no end users could still go on
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561883 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 17:38:27 +00:00
Jacopo Cappellato 6ac5a6142d Upgrade to Apache Lucene 2.2.0
Thanks to Michael Brohl for the patch (OFBIZ-1123).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556839 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 07:54:23 +00:00
Jacopo Cappellato f9ccd14670 Applied patch from Stefan Huehner OFBIZ-730 to fix some very bad conditions that could cause NPE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550233 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 14:17:31 +00:00
Alfred Maxwell Byers 23f6953bfd Some content mods done in the course of trying to get forums to work in ecommerce.
Added two services.

createArticleContent is meant to be a more general version of postBlogEntry.

getSubContentWithPermCheck adds a content permission check inside the loop - returning only records 
  that have the right permission.

Modified CmsEvents.cms to return "success" instead of null.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@544732 13f79535-47bb-0310-9956-ffa450edef68
2007-06-06 05:30:17 +00:00
Jacopo Cappellato f4c5f55894 Fixed warnings after upgrade of common* jars related to a deprecated class used to manage file upload.
Added a new folder (runtime/tmp) to store temporary files during upload and added new properties to configure the file upload to the general.properties file.
Issue OFBIZ-942.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@543404 13f79535-47bb-0310-9956-ffa450edef68
2007-06-01 06:45:10 +00:00
David E. Jones 18ef0d30c3 A few changes to better handle errors and to log less information that isn't so critical by default, ie use more verbose instead of info; this is based on some production log reviews
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@541022 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 18:47:11 +00:00
Hans Bakker 4475daa2e7 sorry, comitted the wrong version, changes in rev 537329 reverted
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537330 13f79535-47bb-0310-9956-ffa450edef68
2007-05-12 03:59:35 +00:00
Hans Bakker 690dcd3ecc run only update balances if party found in partyAcctgPreference
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537329 13f79535-47bb-0310-9956-ffa450edef68
2007-05-12 03:49:45 +00:00
Alfred Maxwell Byers 2ff361de78 Added a utility service, buildSurveyQuestionsAndAnswers, that, given a surveyResponseId, returns a list of maps that contain
"question"->SurveyQuestion and "response"->SurveyResponseAnswer pairs.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537042 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 23:40:46 +00:00
Jacopo Cappellato af2d09f622 Formatting cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536872 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 14:40:49 +00:00
Hans Bakker cd9b621543 jira issue OFBIZ-975 patch providedby nicolas malin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536846 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 12:30:26 +00:00
Jacopo Cappellato 7723092596 Applied patch from Guido Amarilla (OFBIZ-912) with checks to prevent NPE for null arrays of CC and BCC addresses.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530980 13f79535-47bb-0310-9956-ffa450edef68
2007-04-21 04:42:51 +00:00
Jacopo Cappellato f76498479e Small change to the print screen service to allow for a different content name for the content of the printer output stream.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@522272 13f79535-47bb-0310-9956-ffa450edef68
2007-03-25 14:43:04 +00:00
Jacopo Cappellato c814ec8713 Misc improvements to the service to send print streams to printers from screen definitions.
Added new service to generate file version of the screens; the files are created in the applications/content/output folder but this is configurable thru the config file in the content component.
An example of its usage is in the 'find orders' screen.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@522021 13f79535-47bb-0310-9956-ffa450edef68
2007-03-24 13:17:36 +00:00