I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.
If anyone has a better solution, please feel free to revert this commit and change it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.
using <service name=(.*)engine="simple"(.*)location="org/ofbiz => <service name=$1engine="simple"$2location="component://{componentName}/script/org/ofbiz
with {componentName} done by hand
Also for bsh and groovy (services_test in copmmon). There is no longer any location="org/ofbiz in OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755977 13f79535-47bb-0310-9956-ffa450edef68
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755928 13f79535-47bb-0310-9956-ffa450edef68
I don't know what to think for
sendMailMultiPart bodyParts (actually I did not look further, I think it should be done earlier - if ever - at this stage it's too late)
sendMailFromScreen bodyParameters
I don't think it's needed for
createEmailContent plainBody
updateEmailContent plainBody
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@743100 13f79535-47bb-0310-9956-ffa450edef68
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
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
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
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
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
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