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 2008/05/20 16:59:32 UTC

svn commit: r658268 - in /ofbiz/trunk/applications/humanres: script/org/ofbiz/humanres/HumanResServices.xml servicedef/services.xml src/org/ofbiz/humanres/HumanResServices.java

Author: ashish
Date: Tue May 20 07:59:32 2008
New Revision: 658268

URL: http://svn.apache.org/viewvc?rev=658268&view=rev
Log:
Applied patch from Parimal Gain for Improvement on HR module for JIRA Issue OFBIZ-1659.

Removed the Java service for creating PartyQualification record.
Now its written in Mini Lang.

Thanks Parimal for your patch.

Removed:
    ofbiz/trunk/applications/humanres/src/org/ofbiz/humanres/HumanResServices.java
Modified:
    ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml
    ofbiz/trunk/applications/humanres/servicedef/services.xml

Modified: ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml?rev=658268&r1=658267&r2=658268&view=diff
==============================================================================
--- ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml (original)
+++ ofbiz/trunk/applications/humanres/script/org/ofbiz/humanres/HumanResServices.xml Tue May 20 07:59:32 2008
@@ -20,6 +20,18 @@
 
 <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
+    
+    <!-- Party Qualification -->
+    <simple-method method-name="createPartyQual" short-description="Create a Party Qualification">
+        <make-value entity-name="PartyQual" value-name="newEntity"/>
+        <set-pk-fields map-name="parameters" value-name="newEntity"/>
+        <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
+        <field-to-result field-name="newEntity.partyId" result-name="partyId"/>
+        <field-to-result field-name="newEntity.partyQualTypeId" result-name="partyQualTypeId"/>
+        <field-to-result field-name="newEntity.fromDate" result-name="fromDate"/>
+        <create-value value-name="newEntity"/>
+    </simple-method>
+    
     <!-- Ability Group -->    
      <simple-method method-name="updatePartyQual" short-description="Update Qualification of a Party">        
         <entity-one entity-name="PartyQual" value-name="lookedUpValue"/>

Modified: ofbiz/trunk/applications/humanres/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/humanres/servicedef/services.xml?rev=658268&r1=658267&r2=658268&view=diff
==============================================================================
--- ofbiz/trunk/applications/humanres/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/humanres/servicedef/services.xml Tue May 20 07:59:32 2008
@@ -24,9 +24,10 @@
     <vendor>OFBiz</vendor>
     <version>1.0</version>
     <!-- Ability Group -->
-    <service name="createPartyQual" engine="java" default-entity-name="PartyQual"
-            location="org.ofbiz.humanres.HumanResServices" invoke="createPartyQual" auth="true">
+    <service name="createPartyQual" engine="simple" default-entity-name="PartyQual"
+            location="org/ofbiz/humanres/HumanResServices.xml" invoke="createPartyQual" auth="true">
         <description>Create a Party Qualification entry</description>        
+        <permission-service service-name="humanResManagerPermission" main-action="CREATE"/>
         <auto-attributes mode="INOUT" include="pk" optional="true"/>
         <auto-attributes mode="IN" include="nonpk" optional="true"/>
         <override name="partyId" optional="false"/>