svn commit: r1857546 - in /ofbiz/ofbiz-framework/trunk/applications/marketing: minilang/marketing/campaign/ servicedef/services.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1857546 - in /ofbiz/ofbiz-framework/trunk/applications/marketing: minilang/marketing/campaign/ servicedef/services.xml

Deepak Dixit-5
Author: deepak
Date: Mon Apr 15 06:00:27 2019
New Revision: 1857546

URL: http://svn.apache.org/viewvc?rev=1857546&view=rev
Log:
Improved: Convert createMarketingCampaignRole service to entity-auto service
(OFBIZ-9551)
Thanks Suraj Khurana and Nicolas Malin for your contribution.

Removed:
    ofbiz/ofbiz-framework/trunk/applications/marketing/minilang/marketing/campaign/
Modified:
    ofbiz/ofbiz-framework/trunk/applications/marketing/servicedef/services.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/marketing/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/marketing/servicedef/services.xml?rev=1857546&r1=1857545&r2=1857546&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/marketing/servicedef/services.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/marketing/servicedef/services.xml Mon Apr 15 06:00:27 2019
@@ -137,10 +137,10 @@ under the License.
     </service>
 
     <!-- MarketingCampaignRole Services -->
-    <service name="createMarketingCampaignRole" default-entity-name="MarketingCampaignRole" engine="simple"
-            location="component://marketing/minilang/marketing/campaign/CampaignServices.xml" invoke="createMarketingCampaignRole" auth="true">
+    <service name="createMarketingCampaignRole" default-entity-name="MarketingCampaignRole" engine="entity-auto" invoke="create" auth="true">
         <description>Add Role to Campaign</description>
-        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <permission-service service-name="marketingPermissionService" main-action="CREATE"/>
+        <auto-attributes include="pk" mode="IN"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
     <service name="updateMarketingCampaignRole" default-entity-name="MarketingCampaignRole" engine="entity-auto" invoke="update" auth="true">