svn commit: r1765308 - in /ofbiz/trunk/applications/content: minilang/data/DataServices.xml servicedef/services_contenttypes.xml

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

svn commit: r1765308 - in /ofbiz/trunk/applications/content: minilang/data/DataServices.xml servicedef/services_contenttypes.xml

Deepak Dixit-5
Author: deepak
Date: Mon Oct 17 15:17:37 2016
New Revision: 1765308

URL: http://svn.apache.org/viewvc?rev=1765308&view=rev
Log:
Improved: Convert MimeTypeHtmlTemplate entity related CRUD services from simple to entity-auto.
(OFBIZ-8368)(OFBIZ-8369)(OFBIZ-8370)

Thanks Pawan Verma for your contribution.

Modified:
    ofbiz/trunk/applications/content/minilang/data/DataServices.xml
    ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml

Modified: ofbiz/trunk/applications/content/minilang/data/DataServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/minilang/data/DataServices.xml?rev=1765308&r1=1765307&r2=1765308&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/minilang/data/DataServices.xml (original)
+++ ofbiz/trunk/applications/content/minilang/data/DataServices.xml Mon Oct 17 15:17:37 2016
@@ -242,27 +242,6 @@ under the License.
         <remove-value value-field="lookedUpValue"/>
     </simple-method>
 
-    <!-- Methods for MimeTypeHtmlTemplate -->
-    <simple-method method-name="createMimeTypeHtmlTemplate" short-description="Create MimeTypeHtmlTemplate">
-        <make-value entity-name="MimeTypeHtmlTemplate" value-field="newEntity"/>
-        <set-nonpk-fields map="parameters" value-field="newEntity"/>
-        <set-pk-fields map="parameters" value-field="newEntity"/>
-        <create-value value-field="newEntity"/>
-    </simple-method>
-    <simple-method method-name="updateMimeTypeHtmlTemplate" short-description="Update MimeTypeHtmlTemplate">
-        <make-value entity-name="MimeTypeHtmlTemplate" value-field="lookupKeyValue"/>
-        <set-pk-fields map="parameters" value-field="lookupKeyValue"/>
-        <find-by-primary-key entity-name="MimeTypeHtmlTemplate" map="lookupKeyValue" value-field="lookedUpValue"/>
-        <set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
-        <store-value value-field="lookedUpValue"/>
-    </simple-method>
-    <simple-method method-name="removeMimeTypeHtmlTemplate" short-description="Remove MimeTypeHtmlTemplate">
-        <make-value entity-name="MimeTypeHtmlTemplate" value-field="lookupKeyValue"/>
-        <set-pk-fields map="parameters" value-field="lookupKeyValue"/>
-        <find-by-primary-key entity-name="MimeTypeHtmlTemplate" map="lookupKeyValue" value-field="lookedUpValue"/>
-        <remove-value value-field="lookedUpValue"/>
-    </simple-method>
-
     <!-- Methods for ElectronicText -->
     <simple-method method-name="createElectronicText" short-description="Create Electronic Text">
         <make-value entity-name="ElectronicText" value-field="newEntity"/>

Modified: ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml?rev=1765308&r1=1765307&r2=1765308&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml (original)
+++ ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml Mon Oct 17 15:17:37 2016
@@ -239,20 +239,17 @@ under the License.
     </service>
 
     <!-- MimeTypeHtmlTemplate services -->
-    <service name="createMimeTypeHtmlTemplate" engine="simple" default-entity-name="MimeTypeHtmlTemplate" auth="true"
-            location="component://content/minilang/data/DataServices.xml" invoke="createMimeTypeHtmlTemplate">
+    <service name="createMimeTypeHtmlTemplate" engine="entity-auto" default-entity-name="MimeTypeHtmlTemplate" auth="true" invoke="create">
         <description>Create a MimeTypeHtmlTemplate</description>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateMimeTypeHtmlTemplate" engine="simple" default-entity-name="MimeTypeHtmlTemplate" auth="true"
-            location="component://content/minilang/data/DataServices.xml" invoke="updateMimeTypeHtmlTemplate">
+    <service name="updateMimeTypeHtmlTemplate" engine="entity-auto" default-entity-name="MimeTypeHtmlTemplate" auth="true" invoke="update">
         <description>Update a MimeTypeHtmlTemplate</description>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeMimeTypeHtmlTemplate" engine="simple" default-entity-name="MimeTypeHtmlTemplate" auth="true"
-            location="component://content/minilang/data/DataServices.xml" invoke="removeMimeTypeHtmlTemplate">
+    <service name="removeMimeTypeHtmlTemplate" engine="entity-auto" default-entity-name="MimeTypeHtmlTemplate" auth="true" invoke="delete">
         <description>Remove MimeTypeHtmlTemplate</description>
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>