svn commit: r660999 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/agreement/AgreementServices.xml servicedef/services_agreement.xml

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

svn commit: r660999 - in /ofbiz/trunk/applications/accounting: script/org/ofbiz/accounting/agreement/AgreementServices.xml servicedef/services_agreement.xml

mor-2
Author: mor
Date: Wed May 28 09:10:39 2008
New Revision: 660999

URL: http://svn.apache.org/viewvc?rev=660999&view=rev
Log:
Crud services for AgreementRole - part of issue OFBIZ-1794

Modified:
    ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml
    ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml

Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml?rev=660999&r1=660998&r2=660999&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml Wed May 28 09:10:39 2008
@@ -288,5 +288,24 @@
         <remove-value value-name="agreementGeographicalApplic"/>
         <check-errors/>
     </simple-method>
+    
+    <!-- Agreement Role -->
+    <simple-method method-name="createAgreementRole" short-description="Create an Agreement Role">
+        <make-value entity-name="AgreementRole" value-name="newEntity"/>
+        <set-pk-fields value-name="newEntity" map-name="parameters"/>
+        <set-nonpk-fields value-name="newEntity" map-name="parameters"/>
+        <create-value value-name="newEntity"/>
+    </simple-method>
+    
+    <simple-method method-name="updateAgreementRole" short-description="Update an Agreement Role">
+        <entity-one entity-name="AgreementRole" value-name="lookedUpValue"/>
+        <set-pk-fields value-name="lookedUpValue" map-name="parameters"/>
+        <store-value value-name="lookedUpValue"/>
+    </simple-method>
+    
+    <simple-method method-name="deleteAgreementRole" short-description="Delete an Agreement Role">
+        <entity-one entity-name="AgreementRole" value-name="agreementRole"/>
+        <remove-value value-name="agreementRole"/>
+    </simple-method>
 
-</simple-methods>
+</simple-methods>
\ No newline at end of file

Modified: ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml?rev=660999&r1=660998&r2=660999&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_agreement.xml Wed May 28 09:10:39 2008
@@ -193,6 +193,25 @@
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
 
+    <!-- AgreementRole -->
+   <service name="createAgreementRole" default-entity-name="AgreementRole" engine="simple"
+            location="org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementRole" auth="true">
+        <description>Create an Agreement Role</description>
+        <auto-attributes mode="IN" include="pk" optional="false"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="updateAgreementRole" default-entity-name="AgreementRole" engine="simple"
+            location="org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementRole" auth="true">            
+        <description>Update an Agreement Role</description>        
+        <auto-attributes mode="IN" include="pk" optional="false"/>        
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="deleteAgreementRole" default-entity-name="AgreementRole" engine="simple"
+            location="org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="deleteAgreementRole" auth="true">
+        <description>Delete an Agreement Role</description>
+        <auto-attributes mode="IN" include="pk" optional="false"/>
+    </service>
+    
     <service name="getCommissionForProduct" engine="java"
                 location="org.ofbiz.accounting.agreement.AgreementServices" invoke="getCommissionForProduct" auth="true">
         <description>Get commission receiving parties and amounts for a product. &lt;br/&gt;