Commit Graph
193 Commits
Author SHA1 Message Date
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
Jacques Le Roux ce1e431c5e A patch from Peter Goron "new french labels" (https://issues.apache.org/jira/browse/OFBIZ-639)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@498121 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 15:11:41 +00:00
Jacques Le Roux ae389c2f23 A patch from Peter Goron "Some french labels update" (https://issues.apache.org/jira/browse/OFBIZ-638)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@498086 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 08:19:56 +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
David E. Jones 11eb2917ab Some fixes for the RenderContentAsText tag, also some cleanups; the related/similar ones need similar changes, in general this code is still pretty messy though
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@497934 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 20:07:36 +00:00
Si Chen 4bf407360f Added handy relations for ContentAndRole.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@497886 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 17:44:52 +00:00
Jacques Le Roux 64cea174fc This is the change of ASL2 headers in properties files only. Please see comments in another post in dev ML.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@497074 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 16:49:01 +00:00
Jacques Le Roux a5632fa086 This is hte change of ASL2 headers in java files only.
Seems correct (35827 lines to review ;o).
I just wonder if we should keep the copyright comment in Classpath.java (about MortBay)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496982 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 10:22:33 +00:00
Jacques Le Roux 0847dd67f4 Some changes from Shi Yusen "Some misses in properties files" (https://issues.apache.org/jira/browse/OFBIZ-594)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@495739 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 21:02:48 +00:00
Andrew Zeneski d86b12f055 added create/update electronic text service calls to the create/updateTextContent group(s)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493925 13f79535-47bb-0310-9956-ffa450edef68
2007-01-08 03:18:16 +00:00
Andrew Zeneski c79c834f84 fixed route services (for update) and createTextContent; implemented both party and workeffort services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493129 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 18:38:23 +00:00
Andrew Zeneski 7e4d377fe8 final refactor of content upload services; now the upload (save file) service is broken down so it can be reused to upload any content and attach to an existing dataresource. The dataresource shell should be created before calling the upload service
A new createContentFromUploadedFile (group) service will do the following:
1) create data resource
2) accept uploaded stream, update datasource and save the local file
3) create content record associated with data resource



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493122 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 18:30:26 +00:00
Andrew Zeneski 15e9ec90c2 moved upload content code to the content component (from party); made more generic and added speedy services for creating uploaded content; also added service for text content (not yet tested)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@492850 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 02:18:29 +00:00