Author: arunpatidar
Date: Fri Nov 4 19:04:55 2016 New Revision: 1768080 URL: http://svn.apache.org/viewvc?rev=1768080&view=rev Log: Implemented: Added CRUD services for ProductAverageCostType, ProductCategoryContentType, ProductCategoryType, ProductCategoryTypeAttr, ProductContentType, ProductFeatureApplType, ProductFeatureIactnType, ProductMaintType, ProductMeterType, ProductOrderItem, ProductPriceActionType, ProductPriceAutoNotice, ProductStoreGroupType, ProductType, ProductTypeAttr and StatusType entities. Also converted services of ContactMechLink to entity-auto. (OFBIZ-8731)(OFBIZ-8732)(OFBIZ-8733)(OFBIZ-8734)(OFBIZ-8735)(OFBIZ-8736)(OFBIZ-8737)(OFBIZ-8762)(OFBIZ-8763)(OFBIZ-8764)(OFBIZ-8765)(OFBIZ-8766)(OFBIZ-8771)(OFBIZ-8772)(OFBIZ-8773)(OFBIZ-8774)(OFBIZ-8807) Thanks: Rahul Singh, Chinmay Patidar, Rohit Koushal and Rishi Solanki for the contribution. Modified: ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml ofbiz/trunk/applications/order/servicedef/services.xml ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml ofbiz/trunk/applications/party/servicedef/services.xml ofbiz/trunk/applications/product/servicedef/services.xml ofbiz/trunk/applications/product/servicedef/services_feature.xml ofbiz/trunk/applications/product/servicedef/services_pricepromo.xml ofbiz/trunk/applications/product/servicedef/services_store.xml ofbiz/trunk/framework/service/servicedef/services.xml Modified: ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml (original) +++ ofbiz/trunk/applications/accounting/servicedef/services_ledger.xml Fri Nov 4 19:04:55 2016 @@ -935,4 +935,20 @@ under the License. <description>Delete a SettlementTerm</description> <auto-attributes include="pk" mode="IN" optional="false"/> </service> + + <!-- ProductAverageCostType services --> + <service name="createProductAverageCostType" default-entity-name="ProductAverageCostType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductAverageCostType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductAverageCostType" default-entity-name="ProductAverageCostType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductAverageCostType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductAverageCostType" default-entity-name="ProductAverageCostType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductAverageCostType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> Modified: ofbiz/trunk/applications/order/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/order/servicedef/services.xml (original) +++ ofbiz/trunk/applications/order/servicedef/services.xml Fri Nov 4 19:04:55 2016 @@ -1234,4 +1234,20 @@ under the License. <description>Delete a SalesOrderItemFact</description> <auto-attributes include="pk" mode="IN" optional="false"/> </service> + + <!-- ProductOrderItem services --> + <service name="createProductOrderItem" default-entity-name="ProductOrderItem" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductOrderItem</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="false"/> + </service> + <service name="updateProductOrderItem" default-entity-name="ProductOrderItem" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductOrderItem</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductOrderItem" default-entity-name="ProductOrderItem" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductOrderItem</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> Modified: ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml (original) +++ ofbiz/trunk/applications/party/minilang/contact/ContactMechServices.xml Fri Nov 4 19:04:55 2016 @@ -225,22 +225,6 @@ under the License. </call-service> </simple-method> - <simple-method method-name="createContactMechLink" short-description="Create a link between two ContactMechs, such as PostalAddress and TelecomNumber or email"> - <!--TODO: need security check of some sort? --> - <check-errors/> - <make-value value-field="newEntity" entity-name="ContactMechLink"/> - <set-pk-fields map="parameters" value-field="newEntity"/> - <create-value value-field="newEntity"/> - </simple-method> - <simple-method method-name="deleteContactMechLink" short-description="Delete a link between two ContactMechs"> - <!--TODO: need security check of some sort? --> - <check-errors/> - <make-value value-field="lookupPKMap" entity-name="ContactMechLink"/> - <set-pk-fields map="parameters" value-field="lookupPKMap"/> - <find-by-primary-key entity-name="ContactMechLink" map="lookupPKMap" value-field="contactMechLinkInstance"/> - <remove-value value-field="contactMechLinkInstance"/> - </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=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/party/servicedef/services.xml (original) +++ ofbiz/trunk/applications/party/servicedef/services.xml Fri Nov 4 19:04:55 2016 @@ -606,12 +606,10 @@ under the License. </service> <!-- ContactMechLink services --> - <service name="createContactMechLink" default-entity-name="ContactMechLink" engine="simple" - location="component://party/minilang/contact/ContactMechServices.xml" invoke="createContactMechLink" auth="true"> + <service name="createContactMechLink" default-entity-name="ContactMechLink" engine="entity-auto" invoke="create" auth="true"> <auto-attributes include="pk" mode="IN" optional="false"/> </service> - <service name="deleteContactMechLink" default-entity-name="ContactMechLink" engine="simple" - location="component://party/minilang/contact/ContactMechServices.xml" invoke="deleteContactMechLink" auth="true"> + <service name="deleteContactMechLink" default-entity-name="ContactMechLink" engine="entity-auto" invoke="delete" auth="true"> <auto-attributes include="pk" mode="IN" optional="false"/> </service> Modified: ofbiz/trunk/applications/product/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/product/servicedef/services.xml (original) +++ ofbiz/trunk/applications/product/servicedef/services.xml Fri Nov 4 19:04:55 2016 @@ -1737,4 +1737,130 @@ under the License. <description>Delete a ProductAssocType</description> <auto-attributes include="pk" mode="IN" optional="false"/> </service> + + <!-- ProductCategoryContentType services --> + <service name="createProductCategoryContentType" default-entity-name="ProductCategoryContentType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductCategoryContentType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductCategoryContentType" default-entity-name="ProductCategoryContentType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductCategoryContentType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductCategoryContentType" default-entity-name="ProductCategoryContentType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductCategoryContentType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductCategoryType services --> + <service name="createProductCategoryType" default-entity-name="ProductCategoryType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductCategoryType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductCategoryType" default-entity-name="ProductCategoryType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a GlFiscalType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductCategoryType" default-entity-name="ProductCategoryType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductCategoryType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductCategoryTypeAttr services --> + <service name="createProductCategoryTypeAttr" default-entity-name="ProductCategoryTypeAttr" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductCategoryTypeAttr</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="false"/> + </service> + <service name="updateProductCategoryTypeAttr" default-entity-name="ProductCategoryTypeAttr" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductCategoryTypeAttr</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductCategoryTypeAttr" default-entity-name="ProductCategoryTypeAttr" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductCategoryTypeAttr</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductContentType services --> + <service name="createProductContentType" default-entity-name="ProductContentType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductContentType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductContentType" default-entity-name="ProductContentType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductContentType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductContentType" default-entity-name="ProductContentType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductContentType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductMaintType services --> + <service name="createProductMaintType" default-entity-name="ProductMaintType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductMaintType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductMaintType" default-entity-name="ProductMaintType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductMaintType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductMaintType" default-entity-name="ProductMaintType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductMaintType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductMeterType services --> + <service name="createProductMeterType" default-entity-name="ProductMeterType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductMeterType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductMeterType" default-entity-name="ProductMeterType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductMeterType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductMeterType" default-entity-name="ProductMeterType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductMeterType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <service name="createProductType" default-entity-name="ProductType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductType</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updateProductType" default-entity-name="ProductType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductType" default-entity-name="ProductType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <service name="createProductTypeAttr" default-entity-name="ProductTypeAttr" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductTypeAttr</description> + <auto-attributes include="pk" mode="INOUT" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updateProductTypeAttr" default-entity-name="ProductTypeAttr" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductTypeAttr</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductTypeAttr" default-entity-name="ProductTypeAttr" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductTypeAttr</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> Modified: ofbiz/trunk/applications/product/servicedef/services_feature.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_feature.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/product/servicedef/services_feature.xml (original) +++ ofbiz/trunk/applications/product/servicedef/services_feature.xml Fri Nov 4 19:04:55 2016 @@ -246,4 +246,36 @@ under the License. <permission-service service-name="productGenericPermission" main-action="DELETE"/> <auto-attributes include="pk" mode="IN" optional="false"/> </service> + + <!-- ProductFeatureApplType services --> + <service name="createProductFeatureApplType" default-entity-name="ProductFeatureApplType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductFeatureApplType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductFeatureApplType" default-entity-name="ProductFeatureApplType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductFeatureApplType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductFeatureApplType" default-entity-name="ProductFeatureApplType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductFeatureApplType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductFeatureIactnType services --> + <service name="createProductFeatureIactnType" default-entity-name="ProductFeatureIactnType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductFeatureIactnType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductFeatureIactnType" default-entity-name="ProductFeatureIactnType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductFeatureIactnType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductFeatureIactnType" default-entity-name="ProductFeatureIactnType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductFeatureIactnType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> Modified: ofbiz/trunk/applications/product/servicedef/services_pricepromo.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_pricepromo.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/product/servicedef/services_pricepromo.xml (original) +++ ofbiz/trunk/applications/product/servicedef/services_pricepromo.xml Fri Nov 4 19:04:55 2016 @@ -335,4 +335,36 @@ under the License. <attribute name="inputParamEnumId" mode="IN" type="String"/> <attribute name="productPriceRulesCondValues" mode="OUT" type="java.util.List" optional="true"/><!-- optional="true" because of quantity or other kind of fiels needing an input --> </service> + + <!-- ProductPriceActionType services --> + <service name="createProductPriceActionType" default-entity-name="ProductPriceActionType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductPriceActionType</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductPriceActionType" default-entity-name="ProductPriceActionType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductPriceActionType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductPriceActionType" default-entity-name="ProductPriceActionType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductPriceActionType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <!-- ProductPriceAutoNotice services --> + <service name="createProductPriceAutoNotice" default-entity-name="ProductPriceAutoNotice" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductPriceAutoNotice</description> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + </service> + <service name="updateProductPriceAutoNotice" default-entity-name="ProductPriceAutoNotice" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductPriceAutoNotice</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductPriceAutoNotice" default-entity-name="ProductPriceAutoNotice" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductPriceAutoNotice</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> Modified: ofbiz/trunk/applications/product/servicedef/services_store.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services_store.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/applications/product/servicedef/services_store.xml (original) +++ ofbiz/trunk/applications/product/servicedef/services_store.xml Fri Nov 4 19:04:55 2016 @@ -371,4 +371,19 @@ under the License. <description>Delete a ProductStoreGroupRollup</description> <auto-attributes include="pk" mode="IN" optional="false"/> </service> + + <service name="createProductStoreGroupType" default-entity-name="ProductStoreGroupType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a ProductStoreGroupType</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updateProductStoreGroupType" default-entity-name="ProductStoreGroupType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a ProductStoreGroupType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteProductStoreGroupType" default-entity-name="ProductStoreGroupType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a ProductStoreGroupType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> Modified: ofbiz/trunk/framework/service/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/servicedef/services.xml?rev=1768080&r1=1768079&r2=1768080&view=diff ============================================================================== --- ofbiz/trunk/framework/service/servicedef/services.xml (original) +++ ofbiz/trunk/framework/service/servicedef/services.xml Fri Nov 4 19:04:55 2016 @@ -192,4 +192,19 @@ under the License. <description>Delete a StatusItem Record</description> <auto-attributes include="pk" mode="IN"/> </service> + + <service name="createStatusType" default-entity-name="StatusType" engine="entity-auto" invoke="create" auth="true"> + <description>Create a StatusType</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updateStatusType" default-entity-name="StatusType" engine="entity-auto" invoke="update" auth="true"> + <description>Update a StatusType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteStatusType" default-entity-name="StatusType" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete a StatusType</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> </services> |
Free forum by Nabble | Edit this page |