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
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