You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/09/21 14:12:22 UTC

svn commit: r817218 - /ofbiz/trunk/applications/party/servicedef/services.xml

Author: ashish
Date: Mon Sep 21 12:12:21 2009
New Revision: 817218

URL: http://svn.apache.org/viewvc?rev=817218&view=rev
Log:
Instead of specifying each field in service definition - its better to use auto-attribute tag if we wanted to pass all the fields to service implementation. 

Thanks Awdesh & Sumit for the patch.

Modified:
    ofbiz/trunk/applications/party/servicedef/services.xml

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=817218&r1=817217&r2=817218&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Mon Sep 21 12:12:21 2009
@@ -204,12 +204,8 @@
             location="component://party/script/org/ofbiz/party/party/PartyServices.xml" invoke="setPartyProfileDefaults" auth="true">
         <description>Sets the party (customer) profile defaults</description>
         <permission-service service-name="partyIdPermissionCheck" main-action="UPDATE"/>
-        <attribute name="productStoreId" type="String" mode="IN" optional="false"/>
-        <attribute name="partyId" type="String" mode="IN" optional="true"/>
-        <attribute name="defaultShipAddr" type="String" mode="IN" optional="true"/>
-        <attribute name="defaultBillAddr" type="String" mode="IN" optional="true"/>
-        <attribute name="defaultPayMeth" type="String" mode="IN" optional="true"/>
-        <attribute name="defaultShipMeth" type="String" mode="IN" optional="true"/>
+        <auto-attributes mode="IN" entity-name="PartyProfileDefault" include="all" optional="true"/>
+        <override name="productStoreId" optional="false"/>
     </service>
 
     <service name="createPartyAttribute" engine="simple" default-entity-name="PartyAttribute"