Commit Graph
905 Commits
Author SHA1 Message Date
Andrew Zeneski 672bcb2eb8 added results-to-context for the new text route
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512458 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 22:32:40 +00:00
Andrew Zeneski 05fa91599e more content refactoring; refactored upload content service; now supports other data resource types; now also can determine which type to use based on mimeType (if none is specified); moved some service defs around, this is a work in progress. Moved data resource services from contentservices.xml to dataservices.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512356 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:35:04 +00:00
Jacopo Cappellato 37ec41dee7 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@511769 13f79535-47bb-0310-9956-ffa450edef68 2007-02-26 10:11:32 +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 01b7fa81b8 got rid of request-direct returns, not needed and cause problems with large amounts of data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510756 13f79535-47bb-0310-9956-ffa450edef68
2007-02-23 01:46:18 +00:00
Andrew Zeneski 088c04d42e now setting the dataResourceName (as we should)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510741 13f79535-47bb-0310-9956-ffa450edef68
2007-02-23 01:03:32 +00:00
Andrew Zeneski 516471ad51 better handling of websites w/ no publish points, better handling of content w/ no data resources
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510737 13f79535-47bb-0310-9956-ffa450edef68
2007-02-23 00:54:55 +00:00
Andrew Zeneski e23f6a6335 added dojo based WebSite CMS admin sreens; very rough pass
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510691 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 22:20:19 +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
Andrew Zeneski 97b6cb74f2 fixed path alias to reference content directly, instead of having to go through a path format
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510683 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 22:08:44 +00:00
Andrew Zeneski a8e837c981 fixed bugs/problems with internal services; missing map-name, added eca to ensure party role, fixed updat/createTextContent services to auto-update association as well
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510337 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 01:19:36 +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 eb9ec0b30c added new services_website.xml to component file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@509872 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 03:05:21 +00:00
Andrew Zeneski 002f9982a9 implemented entities for website -> content publish (and HTML meta data) assoc; WebSite path aliases; CRUD services and seed data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@509860 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 01:31:50 +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
Andrew Zeneski c60516cd4f just a few minor formatting adjustments for readability
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508990 13f79535-47bb-0310-9956-ffa450edef68
2007-02-18 20:46:03 +00:00
Andrew Zeneski a0f74817a1 updated permission services; added DataResource permissions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508967 13f79535-47bb-0310-9956-ffa450edef68
2007-02-18 20:03:36 +00:00
Jacques Le Roux 5c40f8a5dd Some ASL2 headers cleanup (1 found by chance, and 2 others after with same characteristics : ie copyright 2001-...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508913 13f79535-47bb-0310-9956-ffa450edef68
2007-02-18 16:18:59 +00:00
Andrew Zeneski 5b14607fe6 updated display of content assoc; now shows map key field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508572 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 20:43:16 +00:00
Andrew Zeneski 8d1bd247f9 major revision of content permission services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508571 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 20:42:33 +00:00
Andrew Zeneski db731e09ec added new content security data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507981 13f79535-47bb-0310-9956-ffa450edef68
2007-02-15 16:15:21 +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 f1b92906ac implemeted createContent, updateContent (updated) deleteContent CRUD services in simple method format; will be replacing the java methods soon
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507619 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 16:52:49 +00:00
Andrew Zeneski be6ca84098 updated content permission services; add more documentation; fixed variables so they do not conflict
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507591 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 15:58:17 +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 67d87a21e0 Fixing location in removeCommEventContentAssoc service definition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507290 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 23:09:59 +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
Andrew Zeneski 3183f98dcf implemented VIEW permission; added logic to support calling specialized methods alone as services (calls main permission checking now as well)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@506212 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 01:41:50 +00:00
Andrew Zeneski e0f33e2fdb implemented first pass of content permission services; this is for OFBIZ-611; these services have not yet been tested, now ready for community review
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@506196 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 00:49:25 +00:00
Jacopo Cappellato e951cd2a9b Applied patch from Adrian Crum that I forgot to commit as part of OFBIZ-666.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@506081 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 18:01:01 +00:00
Jacopo Cappellato ca160784dc Applied patch from Chris Howe to replace all relative path form resource names with their component:// equivalent when an HtmlFormWrapper object is created.
OFBIZ-711

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@505886 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 11:08:33 +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
Jacques Le Roux a8d958052f The application part from a Shi Yusen's patch "zh properties in progress" (https://issues.apache.org/jira/browse/OFBIZ-617).
I will create a new patch attached to Jira issue OFBIZ-617 for framework part. A commiter with enough rights will just have to commit it (patch reviewed and OK)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@502130 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 05:54:40 +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 2fb06cde7c Last remaining files with old ASL2 header. I believe there are now not anymore files.
So I will close the related Jira issue (https://issues.apache.org/jira/browse/OFBIZ-637)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499939 13f79535-47bb-0310-9956-ffa450edef68
2007-01-25 20:01:05 +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 9b0a33c64d This is all the front-end code and data required to implement the blog example in ecommerce.
It also relies on two service files committed earlier - BlogServices.java/xml

Not much attention has been paid to style or layout. We will count on the folks at HotWax Media to add their secret sauce.

The two areas on which the most attention were:

1. Getting the permission scheme to work correctly.
2. Getting the complex content rendering to work. It uses the widget screens as templates.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499264 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 05:17:03 +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
Alfred Maxwell Byers 7b97aa5d79 Changing the direction and definition of the ContentAssocViewTo/From and ContentAssocDataResourceViewTo/From view defs. Basically flip-flopping the definitions of each pair.
This is to follow the rule regarding ContentAssoc that contentId and mapKey combine to point *to* the contentIdTo child content.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499253 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 04:26:21 +00:00
Alfred Maxwell Byers 5601c79304 ContentServices.xml setContentStatus does not use content role based security. It only test whether or not a user has CONTENTMGR_CREATE/ADMIN privileges.
I have added a call to the checkContentPermission service. 
This fix may not be in line with new security scheme, but it will serve as a good place to evaluate how it would be done in the new scheme.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499124 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 20:48:35 +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 6fe22843df comments for previous foreign key change to MimeType based on our mailing list discussions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499107 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 19:35:28 +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
Si Chen 9629371564 Removing fk constraint on Content and DataResource. This constraint is a bad idea because mime types are open ended. Fixes bug where attempting to upload esoteric files like .patch files would crash because the MimeType isn't there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@498877 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 00:47:34 +00:00