svn commit: r1765317 - 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: r1765317 - in /ofbiz/trunk/applications/content: minilang/data/DataServices.xml servicedef/services_contenttypes.xml

Deepak Dixit-5
Author: deepak
Date: Mon Oct 17 15:41:26 2016
New Revision: 1765317

URL: http://svn.apache.org/viewvc?rev=1765317&view=rev
Log:
Improved: Convert DataResourceTypeAttr entity related CRUD services from simple to entity-auto.
(OFBIZ-8352)(OFBIZ-8353)(OFBIZ-8354)

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=1765317&r1=1765316&r2=1765317&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/minilang/data/DataServices.xml (original)
+++ ofbiz/trunk/applications/content/minilang/data/DataServices.xml Mon Oct 17 15:41:26 2016
@@ -155,27 +155,6 @@ under the License.
         <remove-value value-field="lookedUpValue"/>
     </simple-method>
 
-    <!-- Methods for DataResourceTypeAttr -->
-    <simple-method method-name="createDataResourceTypeAttr" short-description="Create Data Resource Type Attribute">
-        <make-value entity-name="DataResourceTypeAttr" 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="updateDataResourceTypeAttr" short-description="Update Data Resource Type Attribute">
-        <make-value entity-name="DataResourceTypeAttr" value-field="lookupKeyValue"/>
-        <set-pk-fields map="parameters" value-field="lookupKeyValue"/>
-        <find-by-primary-key entity-name="DataResourceTypeAttr" map="lookupKeyValue" value-field="lookedUpValue"/>
-        <set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
-        <store-value value-field="lookedUpValue"/>
-    </simple-method>
-    <simple-method method-name="removeDataResourceTypeAttr" short-description="Remove Data Resource Type Attribute">
-        <make-value entity-name="DataResourceTypeAttr" value-field="lookupKeyValue"/>
-        <set-pk-fields map="parameters" value-field="lookupKeyValue"/>
-        <find-by-primary-key entity-name="DataResourceTypeAttr" 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=1765317&r1=1765316&r2=1765317&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml (original)
+++ ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml Mon Oct 17 15:41:26 2016
@@ -154,22 +154,19 @@ under the License.
     </service>
 
     <!--DataResourceTypeAttr services.-->
-    <service name="createDataResourceTypeAttr" engine="simple" default-entity-name="DataResourceTypeAttr" auth="true"
-            location="component://content/minilang/data/DataServices.xml" invoke="createDataResourceTypeAttr">
+    <service name="createDataResourceTypeAttr" engine="entity-auto" default-entity-name="DataResourceTypeAttr" auth="true" invoke="create">
         <description>Create a DataResourceTypeAttr</description>
         <permission-service service-name="contentManagerPermission" main-action="CREATE"/>
-        <auto-attributes include="pk" mode="IN" optional="true"/>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateDataResourceTypeAttr" engine="simple" default-entity-name="DataResourceTypeAttr" auth="true"
-            location="component://content/minilang/data/DataServices.xml" invoke="updateDataResourceTypeAttr">
+    <service name="updateDataResourceTypeAttr" engine="entity-auto" default-entity-name="DataResourceTypeAttr" auth="true" invoke="update">
         <description>Update a DataResourceTypeAttr</description>
         <permission-service service-name="contentManagerPermission" main-action="UPDATE"/>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeDataResourceTypeAttr" engine="simple" default-entity-name="DataResourceTypeAttr" auth="true"
-            location="component://content/minilang/data/DataServices.xml" invoke="removeDataResourceTypeAttr">
+    <service name="removeDataResourceTypeAttr" engine="entity-auto" default-entity-name="DataResourceTypeAttr" auth="true" invoke="delete">
         <description>Remove DataResourceTypeAttr</description>
         <permission-service service-name="contentManagerPermission" main-action="DELETE"/>
         <auto-attributes include="pk" mode="IN" optional="false"/>