Commit Graph
689 Commits
Author SHA1 Message Date
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
Jacopo Cappellato 70d57647bc Better error handling for printer's invalid URI.
Thanks to Jacques Le Roux for the bug report.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@521812 13f79535-47bb-0310-9956-ffa450edef68
2007-03-23 17:13:32 +00:00
Jacopo Cappellato fda2cdde19 There is now a 'print' option in the select box in the header of the find order list.
By selecting it and submitting the form all the orders with the checkbox set will be submitted as async jobs: the user can monitor the status of the print jobs (one per order) in the WorkEffort->Submitted Jobs screen (the status will move from Pending to Running to Finished).
The system will render one postscript stream for each order (out of the screen definition) and send it to the first printer (that can handle postscript streams) that the server's JVM can locate.
OFBIZ-824

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@521616 13f79535-47bb-0310-9956-ffa450edef68
2007-03-23 07:53:39 +00:00
Jacopo Cappellato 80d34638d7 This new version of the sendPrintFromScreen service is now working.
A lot of improvements can be done (in the way a printer is selected, in the printer options etc) but this is a good start.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@521601 13f79535-47bb-0310-9956-ffa450edef68
2007-03-23 06:49:50 +00:00
Jacopo Cappellato 1c6fbf538e First draft of the service that can be called as async to create a (PDF, Postscript, PCL etc...) output from a screen definition and send it to a lan printer.
OFBIZ-824


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@520359 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 11:19:14 +00:00
Scott Gray cc4e08c7db Applied patch from Stefan Huehner (OFBIZ-776), fixes a couple of misc. assignment bugs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@519584 13f79535-47bb-0310-9956-ffa450edef68
2007-03-18 10:06:49 +00:00
Jacopo Cappellato 8043057452 Applied (slightly different) patch from Leon Torres to allow naming the attachment PDF in sendMailFromScreen. OFBIZ-789
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@519583 13f79535-47bb-0310-9956-ffa450edef68
2007-03-18 09:40:43 +00:00
David E. Jones d87948529c Various cleanups in the cmsssite templates and data; implemented a change to support rendering the Content instead of the DataResource when it is decorated, which is necessary in order for the thisContent object to exist and function, which is necessary for including sub-content and such; also implemented the content map facade link element to get a link out of the context that the cms event puts in it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516669 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 09:38:03 +00:00
David E. Jones 31e99f695f Some cleanups, including more consistent use of cache settings; started add of link entry, though still need to look into how to implement that
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516640 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 02:24:57 +00:00
David E. Jones 15f9ec0523 Added toString method that renders the content, ie default behavior when printed or treated as a String
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516593 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 22:44:25 +00:00
Andrew Zeneski 4b43086ab5 updated a CMS content to include decorator content;
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516548 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 20:52:51 +00:00
Andrew Zeneski 66cff5cd2a implemented default page WS content type; changed URL_RESOURCE to support component:// resources
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516536 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 20:12:44 +00:00
Andrew Zeneski 731c3378f5 updated facade/worker to support decorator content; added datamodel for decorator content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516516 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 19:23:12 +00:00
Andrew Zeneski f07485a4d8 fixed bug in update content (could not update due to non-optional fields) added data resource info to ContentMapFacade
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516252 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 01:21:49 +00:00
Andrew Zeneski 5d17ac7bac now can use id_CONTENTID for numeric content Ids
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516228 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 23:36:46 +00:00
Andrew Zeneski dd702b3339 implemented (first pass) ContentMapFacade; used in the context of all content rendering
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516199 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 22:35:32 +00:00
Alfred Maxwell Byers 54789c1eca Added RenderContentTransform which does both content and subcontent rendering.
Linked to it in FreeMarkerWorker, but did not remove other transform defs.
This has not been tested - will be doing that now - just making available to other hackathoners.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516168 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 20:32:39 +00:00
Andrew Zeneski a95b3a70d9 refactored renderContentAsText to invoke content services when called; now requires a dispatcher to render content; all methods using this have been updated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516158 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 19:46:09 +00:00
Jacopo Cappellato 82a5bf4147 Applied (modified) patch from Stefan Huehner (OFBIZ-770) to use isEmpty(...) method for null/empty validation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514366 13f79535-47bb-0310-9956-ffa450edef68
2007-03-04 06:59:23 +00:00
Jacopo Cappellato a7c598bd9b Removed unused imports: thanks to Stefan Huehner (OFBIZ-513) for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514200 13f79535-47bb-0310-9956-ffa450edef68
2007-03-03 17:33:34 +00:00
Andrew Zeneski 5f079c05b7 Big content rendering refactor; condensed methods used for rendering content into one, flagged to cache or not. This will make maintaining this much easier. Implemented new streaming event which will send all type of files not just images (deprecating the img event); added mime-type templates to remove the hard coded templates in DataResourceWorker; now supports additional types besides image/*; updated all code using the old methods; however left them in place (deprecated) until we are sure no BSH files use these old methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@513985 13f79535-47bb-0310-9956-ffa450edef68
2007-03-02 22:03:48 +00:00
Andrew Zeneski 0d7ea8cee7 added sub-content rendering so CMS can render HTML meta-tags
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512592 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 03:38:41 +00:00
Jacopo Cappellato d521f0c604 Applied patch from Stefan Huehner (OFBIZ-513) to remove unnecessary import statements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@511254 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 11:49:42 +00:00
Andrew Zeneski 0d0718164e some basic CMS events; will render full page content; updated worker methods to call into screen widget to decorate when using a proper template
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510684 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 22:10:55 +00:00
Si Chen 3a58ef6b74 Patch from Stefan Huehner to avoid a null result. OFBIZ-730
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510172 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 19:49:56 +00:00
Andrew Zeneski 47052c89fa added placeholder for content rendering; added code which does path aliasing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@509878 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 03:36:55 +00:00
Andrew Zeneski f850e8b08c Content Permission & Service Refactoring: A number of big changes to content services including new permission services. This is the first pass with detailed testing on blogs in ecommerce. Tested low level screens as well.
This is the first pass, there are still a number of references to old permission checking, some services need to be refactored, some replaced with better practices. This is a work in progress. 

This first pass includes the removal of special BLOG_ roles and status. Replaced with a generic CONTENT_ and CTNT_. Also adds new ECAs to base createContent service which creates OWNER role as well as associations when passed a contentIdTo or contentIdFrom (and TYPE). This will probably replace the persistContentAndAssoc service which is used in many places. Some have been updated in the revision, others will follow.

Most code which calls the older permission services are found in .java files. Almost all simple methods have been converted to have the permission in the service def and the code removed from the implementation. Java methods still need to be addressed.

The older permission service will output a warning in logs with a stack trace to help track down places where this service is still being called. This is not an error, but may show in logs for the time being.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@509321 13f79535-47bb-0310-9956-ffa450edef68
2007-02-19 19:53:06 +00:00
Si Chen 5aad4fbc30 Followup to OFBIZ-704 (Add CommunicationEvent.fromString, toString, ccString, headerString)
- Adding CommunicationEvent.bccString field and logic to populate it from email headers in storeIncomingEmail service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507650 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 18:29:06 +00:00
Andrew Zeneski 86ac867c55 first pass of RSS feeds for blogs (see ecommerce)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507365 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 02:55:48 +00:00
Andrew Zeneski 4bc18c2753 added ownerContentId to missing definition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507300 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 23:24:15 +00:00
Si Chen 233feab178 OFBIZ-704: Add CommunicationEvent.fromString, toString, ccString, headerString
Adding these four fields and logic to populate them from email headers in storeIncomingEmail service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@506544 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 17:33:09 +00:00
Alfred Maxwell Byers 3fb9cd0903 A bunch of fixes to get the Content admin to upload and display the images under the "DataResource" tab.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@505079 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 23:01:41 +00:00
Jacopo Cappellato 5afe2158e5 Fixed bad formatting: tabs to 4-spaces.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@501715 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:47:19 +00:00
Jacopo Cappellato 45faf77676 Fixed bad formatting (mostly tabs in place of 4-spaces).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@501711 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:41:37 +00:00
Hans Bakker d7915c384c fill the contentname with the filename of the attached file to an email if provided. If missing put in the subject and sequential number of the attachement
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@501710 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:35:14 +00:00
Hans Bakker 28b8e200f7 as discussed in several emails this commit reverts 499102 and 499122 and makes sure the contentname always contains information about the attached file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@500985 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 09:54:16 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Alfred Maxwell Byers 621ee04989 Moved some documentation that was out of place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499262 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 05:07:04 +00:00
Alfred Maxwell Byers 410d28c3d5 Changes to ContentManagementServices.persistContentAndAssoc to comply with change of subcontent "direction".
Some changes to that service def. Since there were service defs in there for BlogServices.java/xml, those were included too.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499256 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 04:49:50 +00:00
Si Chen 5384a8c18f Removing some code which must have been committed accidentally as part of some NPE fixes. These always truncated the file name of attachments down to the first 17 characters, when in fact the field can take up to 100. Let me know if this code was actually intentional
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499122 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 20:31:25 +00:00
Si Chen b897e02c86 Fixing the content name of attachments to emails so that they show up just as the filename, which appears to be the standard for all email systems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499102 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 19:25:58 +00:00
David E. Jones 63a4b00df0 Changed to log but not blow up when there is a content rendering error; did similar fixes/improvements in RenderSubContentAsTest as I just did in RenderContentAsText
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@497940 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 20:24:33 +00:00