svn commit: r1765322 - in /ofbiz/trunk/applications/party: minilang/contact/ContactMechServices.xml 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: r1765322 - in /ofbiz/trunk/applications/party: minilang/contact/ContactMechServices.xml servicedef/services.xml

Deepak Dixit-5
Author: deepak
Date: Mon Oct 17 16:04:54 2016
New Revision: 1765322

URL: http://svn.apache.org/viewvc?rev=1765322&view=rev
Log:
Improved: Convert ContactMechAttribute entity related CRUD services from simple to entity-auto.
(OFBIZ-8373)(OFBIZ-8374)(OFBIZ-8375)

Thanks Pawan Verma for your contribution.

Modified:
    ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml
    ofbiz/trunk/applications/party/servicedef/services.xml

Modified: ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml?rev=1765322&r1=1765321&r2=1765322&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml (original)
+++ ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml Mon Oct 17 16:04:54 2016
@@ -241,23 +241,6 @@ under the License.
        <remove-value value-field="contactMechLinkInstance"/>
    </simple-method>
 
-    <!-- contactmech attribute services -->
-    <simple-method method-name="createContactMechAttribute" short-description="createContactMechAttribute">
-        <make-value value-field="newEntity" entity-name="ContactMechAttribute"/>
-        <set-pk-fields map="parameters" value-field="newEntity"/>
-        <set-nonpk-fields map="parameters" value-field="newEntity"/>
-        <create-value value-field="newEntity"/>
-    </simple-method>
-    <simple-method method-name="updateContactMechAttribute" short-description="updateContactMechAttribute">
-        <entity-one entity-name="ContactMechAttribute" value-field="lookedUpValue"/>
-        <set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
-        <store-value value-field="lookedUpValue"/>
-    </simple-method>
-    <simple-method method-name="removeContactMechAttribute" short-description="removeContactMechAttribute">
-        <entity-one entity-name="ContactMechAttribute" value-field="lookedUpValue"/>
-        <remove-value value-field="lookedUpValue"/>
-    </simple-method>
-
     <simple-method method-name="sendVerifyEmailAddressNotification" short-description="Send an email to the person for Verification of his Email Address" login-required="false">
         <entity-condition entity-name="ProductStoreEmailSetting" list="productStoreEmailSettings">
             <condition-list>

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=1765322&r1=1765321&r2=1765322&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Mon Oct 17 16:04:54 2016
@@ -563,22 +563,19 @@ under the License.
     </service>
 
     <!-- contact mech attribute services -->
-    <service name="createContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
-            location="component://party/minilang/contact/ContactMechServices.xml" invoke="createContactMechAttribute" auth="true">
+    <service name="createContactMechAttribute" engine="entity-auto" default-entity-name="ContactMechAttribute" invoke="create" auth="true">
         <description>create a contact mech attribute record</description>
         <permission-service service-name="partyBasePermissionCheck" main-action="CREATE"/>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="updateContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
-            location="component://party/minilang/contact/ContactMechServices.xml" invoke="updateContactMechAttribute" auth="true">
+    <service name="updateContactMechAttribute" engine="entity-auto" default-entity-name="ContactMechAttribute" invoke="update" auth="true">
         <description>updates a contact mech attribute record</description>
         <permission-service service-name="partyBasePermissionCheck" main-action="UPDATE"/>
         <auto-attributes include="pk" mode="IN" optional="false"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
-    <service name="removeContactMechAttribute" engine="simple" default-entity-name="ContactMechAttribute"
-            location="component://party/minilang/contact/ContactMechServices.xml" invoke="removeContactMechAttribute" auth="true">
+    <service name="removeContactMechAttribute" engine="entity-auto" default-entity-name="ContactMechAttribute" invoke="delete" auth="true">
         <description>removes a contact mech attribute record</description>
         <permission-service service-name="partyBasePermissionCheck" main-action="DELETE"/>
         <auto-attributes include="pk" mode="IN" optional="false"/>