Author: deepak
Date: Mon Oct 17 15:31:02 2016 New Revision: 1765314 URL: http://svn.apache.org/viewvc?rev=1765314&view=rev Log: Improved: Convert FileExtension entity related CRUD services from simple to entity-auto. (OFBIZ-8359)(OFBIZ-8360)(OFBIZ-8361) 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=1765314&r1=1765313&r2=1765314&view=diff ============================================================================== --- ofbiz/trunk/applications/content/minilang/data/DataServices.xml (original) +++ ofbiz/trunk/applications/content/minilang/data/DataServices.xml Mon Oct 17 15:31:02 2016 @@ -198,28 +198,6 @@ under the License. <remove-value value-field="lookedUpValue"/> </simple-method> - <!-- Methods for FileExtension --> - <simple-method method-name="createFileExtension" short-description="Create Data Resource Role"> - <make-value entity-name="FileExtension" value-field="newEntity"/> - <set-nonpk-fields map="parameters" value-field="newEntity"/> - <set-pk-fields map="parameters" value-field="newEntity"/> - <create-value value-field="newEntity"/> - <field-to-result result-name="fileExtensionId" field="newEntity.fileExtensionId"/> - </simple-method> - <simple-method method-name="updateFileExtension" short-description="Update Data Resource Role"> - <make-value entity-name="FileExtension" value-field="lookupKeyValue"/> - <set-pk-fields map="parameters" value-field="lookupKeyValue"/> - <find-by-primary-key entity-name="FileExtension" map="lookupKeyValue" value-field="lookedUpValue"/> - <set-nonpk-fields map="parameters" value-field="lookedUpValue"/> - <store-value value-field="lookedUpValue"/> - </simple-method> - <simple-method method-name="removeFileExtension" short-description="Remove Data Resource Role"> - <make-value entity-name="FileExtension" value-field="lookupKeyValue"/> - <set-pk-fields map="parameters" value-field="lookupKeyValue"/> - <find-by-primary-key entity-name="FileExtension" 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=1765314&r1=1765313&r2=1765314&view=diff ============================================================================== --- ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml (original) +++ ofbiz/trunk/applications/content/servicedef/services_contenttypes.xml Mon Oct 17 15:31:02 2016 @@ -179,22 +179,19 @@ under the License. </service> <!-- FileExtension services --> - <service name="createFileExtension" engine="simple" default-entity-name="FileExtension" auth="true" - location="component://content/minilang/data/DataServices.xml" invoke="createFileExtension"> + <service name="createFileExtension" engine="entity-auto" default-entity-name="FileExtension" auth="true" invoke="create"> <description>Create a FileExtension</description> <permission-service service-name="contentManagerPermission" main-action="CREATE"/> - <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> - <service name="updateFileExtension" engine="simple" default-entity-name="FileExtension" auth="true" - location="component://content/minilang/data/DataServices.xml" invoke="updateFileExtension"> + <service name="updateFileExtension" engine="entity-auto" default-entity-name="FileExtension" auth="true" invoke="update"> <description>Update a FileExtension</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="removeFileExtension" engine="simple" default-entity-name="FileExtension" auth="true" - location="component://content/minilang/data/DataServices.xml" invoke="removeFileExtension"> + <service name="removeFileExtension" engine="entity-auto" default-entity-name="FileExtension" auth="true" invoke="delete"> <description>Remove FileExtension</description> <permission-service service-name="contentManagerPermission" main-action="DELETE"/> <auto-attributes include="pk" mode="IN" optional="false"/> |
Free forum by Nabble | Edit this page |