Commit Graph
64 Commits
Author SHA1 Message Date
Hans Bakker 1c9e035ee1 add new roles for communicationevents and properly assign them for incoming emails aded mca file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678341 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 04:15:42 +00:00
Alfred Maxwell Byers e02a57ed32 Added dataResouceTypeId to input of attachUploadToDataResource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@640496 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 18:25:21 +00:00
Andrew Zeneski ba601e864b content type should be optional; there is code to determine the type based on file extension if it is not known
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633272 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 20:51:15 +00:00
Vikas Mayur 1915592f76 Applied patch from Jira Issue OFBiz-1665 (https://issues.apache.org/jira/browse/OFBIZ-1665)
This patch reported a bug that was related to invoking wrong method in a service in services_data.xml
While applying the patch I come across similar bug in other services as well.
Fixed them as well.

Thanks to Pranay Pandey for the patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@629523 13f79535-47bb-0310-9956-ffa450edef68
2008-02-20 16:25:25 +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
Scott Gray b80282a2ca Removed an invalid (doesn't exist on the entity) override field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607353 13f79535-47bb-0310-9956-ffa450edef68
2007-12-28 23:03:08 +00:00
Andrew Zeneski 08874971a0 added method to create text content with a optional sub-section of uploaded content (i.e. text with an image/audio/video)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@596510 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 01:35:58 +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
Alfred Maxwell Byers 9e111ea1c1 Made outWriter optional in renderContentAsText service.
Should probably be removed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583557 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 17:51:08 +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
Alfred Maxwell Byers 8d5d3eb5d8 I was troubled by the fact that createTextContent did not return the fromDate - making it difficult to get a primary
key for the newly created content.
I made changes so that createContentAssoc would return "fromDate", but that did not help "createContent" because it was an eca
and I did not want to specify a "result-map-name" attribute.
So I modified createContent so that it would accept a fromDate as input, so at least I can know what the fromDate value is by
setting it to nowTimestamp before calling createContent.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571052 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 06:46:10 +00:00
Alfred Maxwell Byers c7967749fd Made OUT lists optional in getSubContentWithPerm services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@548378 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 15:15:40 +00:00
Alfred Maxwell Byers e06ae5eab8 Added two services, getSubContentWithPerm and getSubSubContentWithPerm.
The first gets a list of sub content and does a genericContentPermission check on each one.
The second one uses the list from the first and gets a subcontent record for each one that exists.
It is meant to get the "summary" record for an article.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@546949 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 16:23:24 +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
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +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
Andrew Zeneski aba4c121bb updated CMS to do simple (single) content purpose and updates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530530 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 19:54:45 +00:00
Andrew Zeneski c1fb8aced7 updated content permissions to use the purpose associated with the content; not sure why we expected this to be passed in... changed the name of the XML file containing operation data; added default purpose for CMS entry
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530518 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 19:00:44 +00:00
Jacopo Cappellato c0841c7bf3 Fixed double service definition for the createWebSite service that was causing an error in the Edit Web Site screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@524755 13f79535-47bb-0310-9956-ffa450edef68
2007-04-02 09:34:10 +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 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
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
Andrew Zeneski d8516e39b1 added quick way to create publish points for websites
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516320 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 07:42:36 +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 4994f49696 fixed updating data resource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516234 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 00:02:59 +00:00
Alfred Maxwell Byers 50e13a2497 Fixed my last commit with Andrew's fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516207 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 22:42:37 +00:00
Alfred Maxwell Byers f71060fa8d Added "dataResourceTypeId" as unnneeded parameter to "updateElectronicText" so that "updateDataText" seca will work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516200 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 22:36:39 +00:00
Andrew Zeneski c4b0c1be30 fixed optional fields on permission service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515903 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 02:53:03 +00:00
David E. Jones 86a15f278a Changed runAsUser to run-as-user for the updated attribute
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514603 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 08:42:44 +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 4a54cf0b76 now upload services returns the decided mimeTypeId so it is properly reflected on the content record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@513020 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 22:45:39 +00:00
Andrew Zeneski 686eecca87 now have update uploaded content working; updates all necessary entities; added a few text based ecas for text content; handles many different text based data resource types now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512510 13f79535-47bb-0310-9956-ffa450edef68
2007-02-28 00:06:26 +00:00
Andrew Zeneski 6ee64698ff implemented new data resource types for AUDIO/VIDEO content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@512471 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 22:53:42 +00:00
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
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
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 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
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 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
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