Author: arunpatidar
Date: Sat Nov 5 18:24:21 2016 New Revision: 1768266 URL: http://svn.apache.org/viewvc?rev=1768266&view=rev Log: Implemented: Added CRUD services for ApplicationSandbox, CartAbandonedLine, PaymentGatewayConfig, PaymentGatewaySagePay, PaymentGatewayAuthorizeNet and PaymentGatewayClearCommerce entities. (OFBIZ-8970) (OFBIZ-8993)(OFBIZ-9081)(OFBIZ-9082)(OFBIZ-9087)(OFBIZ-9091) Thanks: Amit Gadaley, Rohit Koushal and Rishi Solanki for the contribution. Modified: ofbiz/trunk/applications/accounting/minilang/payment/PaymentGatewayConfigServices.xml ofbiz/trunk/applications/accounting/servicedef/services_paymentgateway.xml ofbiz/trunk/applications/order/servicedef/services_cart.xml ofbiz/trunk/applications/workeffort/servicedef/services_workeffort.xml Modified: ofbiz/trunk/applications/accounting/minilang/payment/PaymentGatewayConfigServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/minilang/payment/PaymentGatewayConfigServices.xml?rev=1768266&r1=1768265&r2=1768266&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/minilang/payment/PaymentGatewayConfigServices.xml (original) +++ ofbiz/trunk/applications/accounting/minilang/payment/PaymentGatewayConfigServices.xml Sat Nov 5 18:24:21 2016 @@ -20,30 +20,7 @@ under the License. <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd"> - <simple-method method-name="updatePaymentGatewayConfig" short-description="Update Payment Gateway Config"> - <entity-one entity-name="PaymentGatewayConfig" value-field="lookedUpValue"/> - <set-nonpk-fields map="parameters" value-field="lookedUpValue"/> - <store-value value-field="lookedUpValue"/> - </simple-method> - - <simple-method method-name="updatePaymentGatewayConfigSagePay" short-description="Update Payment Gateway Config SagePay"> - <entity-one entity-name="PaymentGatewaySagePay" value-field="lookedUpValue"/> - <set-nonpk-fields map="parameters" value-field="lookedUpValue"/> - <store-value value-field="lookedUpValue"/> - </simple-method> - <simple-method method-name="updatePaymentGatewayConfigAuthorizeNet" short-description="Update Payment Gateway Config Authorize Dot Net"> - <entity-one entity-name="PaymentGatewayAuthorizeNet" value-field="lookedUpValue"/> - <set-nonpk-fields map="parameters" value-field="lookedUpValue"/> - <store-value value-field="lookedUpValue"/> - </simple-method> - - <simple-method method-name="updatePaymentGatewayConfigClearCommerce" short-description="Update Payment Gateway Config Clear Commerce"> - <entity-one entity-name="PaymentGatewayClearCommerce" value-field="lookedUpValue"/> - <set-nonpk-fields map="parameters" value-field="lookedUpValue"/> - <store-value value-field="lookedUpValue"/> - </simple-method> - <simple-method method-name="updatePaymentGatewayConfigCyberSource" short-description="Update Payment Gateway Config CyberSource"> <entity-one entity-name="PaymentGatewayCyberSource" value-field="lookedUpValue"/> <set-nonpk-fields map="parameters" value-field="lookedUpValue"/> Modified: ofbiz/trunk/applications/accounting/servicedef/services_paymentgateway.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_paymentgateway.xml?rev=1768266&r1=1768265&r2=1768266&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/servicedef/services_paymentgateway.xml (original) +++ ofbiz/trunk/applications/accounting/servicedef/services_paymentgateway.xml Sat Nov 5 18:24:21 2016 @@ -25,28 +25,64 @@ under the License. <version>1.0</version> <!-- Payment Gateway Config Method services --> - <service name="updatePaymentGatewayConfig" engine="simple" location="component://accounting/minilang/payment/PaymentGatewayConfigServices.xml" invoke="updatePaymentGatewayConfig"> + <service name="createPaymentGatewayConfig" engine="entity-auto" invoke="create" default-entity-name="PaymentGatewayConfig"> + <description>Create Payment Gateway Config</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updatePaymentGatewayConfig" engine="entity-auto" invoke="update" default-entity-name="PaymentGatewayConfig"> <description>Update Payment Gateway Config</description> - <auto-attributes entity-name="PaymentGatewayConfig" include="pk" mode="IN" optional="false"/> - <auto-attributes entity-name="PaymentGatewayConfig" include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deletePaymentGatewayConfig" engine="entity-auto" invoke="delete" default-entity-name="PaymentGatewayConfig"> + <description>Delete Payment Gateway Config</description> + <auto-attributes include="pk" mode="IN" optional="false"/> </service> - <service name="updatePaymentGatewayConfigSagePay" engine="simple" location="component://accounting/minilang/payment/PaymentGatewayConfigServices.xml" invoke="updatePaymentGatewayConfigSagePay"> + <service name="createPaymentGatewayConfigSagePay" engine="entity-auto" invoke="create" default-entity-name="PaymentGatewaySagePay"> + <description>Create Payment Gateway Config SagePay</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updatePaymentGatewayConfigSagePay" engine="entity-auto" invoke="update" default-entity-name="PaymentGatewaySagePay"> <description>Update Payment Gateway Config SagePay</description> - <auto-attributes entity-name="PaymentGatewaySagePay" include="pk" mode="IN" optional="false"/> - <auto-attributes entity-name="PaymentGatewaySagePay" include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deletePaymentGatewayConfigSagePay" engine="entity-auto" invoke="delete" default-entity-name="PaymentGatewaySagePay"> + <description>Delete Payment Gateway Config SagePay</description> + <auto-attributes include="pk" mode="IN" optional="false"/> </service> - <service name="updatePaymentGatewayConfigAuthorizeNet" engine="simple" location="component://accounting/minilang/payment/PaymentGatewayConfigServices.xml" invoke="updatePaymentGatewayConfigAuthorizeNet"> + <service name="createPaymentGatewayConfigAuthorizeNet" engine="entity-auto" invoke="create" default-entity-name="PaymentGatewayAuthorizeNet"> + <description>Create Payment Gateway Config Authorize Dot Net</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updatePaymentGatewayConfigAuthorizeNet" engine="entity-auto" invoke="update" default-entity-name="PaymentGatewayAuthorizeNet"> <description>Update Payment Gateway Config Authorize Dot Net</description> - <auto-attributes entity-name="PaymentGatewayAuthorizeNet" include="pk" mode="IN" optional="false"/> - <auto-attributes entity-name="PaymentGatewayAuthorizeNet" include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> - - <service name="updatePaymentGatewayConfigClearCommerce" engine="simple" location="component://accounting/minilang/payment/PaymentGatewayConfigServices.xml" invoke="updatePaymentGatewayConfigClearCommerce"> + <service name="deletePaymentGatewayConfigAuthorizeNet" engine="entity-auto" invoke="delete" default-entity-name="PaymentGatewayAuthorizeNet"> + <description>Delete Payment Gateway Config Authorize Dot Net</description> + <auto-attributes include="pk" mode="IN" optional="false"/> + </service> + + <service name="createPaymentGatewayConfigClearCommerce" engine="entity-auto" invoke="create" default-entity-name="PaymentGatewayClearCommerce"> + <description>Create Payment Gateway Config Clear Commerce</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updatePaymentGatewayConfigClearCommerce" engine="entity-auto" invoke="update" default-entity-name="PaymentGatewayClearCommerce"> <description>Update Payment Gateway Config Clear Commerce</description> - <auto-attributes entity-name="PaymentGatewayClearCommerce" include="pk" mode="IN" optional="false"/> - <auto-attributes entity-name="PaymentGatewayClearCommerce" include="nonpk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deletePaymentGatewayConfigClearCommerce" engine="entity-auto" invoke="delete" default-entity-name="PaymentGatewayClearCommerce"> + <description>Delete Payment Gateway Config Clear Commerce</description> + <auto-attributes include="pk" mode="IN" optional="false"/> </service> <service name="updatePaymentGatewayConfigCyberSource" engine="simple" location="component://accounting/minilang/payment/PaymentGatewayConfigServices.xml" invoke="updatePaymentGatewayConfigCyberSource"> Modified: ofbiz/trunk/applications/order/servicedef/services_cart.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_cart.xml?rev=1768266&r1=1768265&r2=1768266&view=diff ============================================================================== --- ofbiz/trunk/applications/order/servicedef/services_cart.xml (original) +++ ofbiz/trunk/applications/order/servicedef/services_cart.xml Sat Nov 5 18:24:21 2016 @@ -172,4 +172,19 @@ under the License. <description>Split the default shipgroup to individual shipgroups that are unique to a vendor</description> <attribute name="shoppingCart" type="org.apache.ofbiz.order.shoppingcart.ShoppingCart" mode="IN" optional="false"/> </service> + + <service name="createCartAbandonedLine" default-entity-name="CartAbandonedLine" engine="entity-auto" invoke="create" auth="true"> + <description>Create CartAbandonedLine record</description> + <auto-attributes include="pk" mode="IN"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updateCartAbandonedLine" default-entity-name="CartAbandonedLine" engine="entity-auto" invoke="update" auth="true"> + <description>Update CartAbandonedLine record</description> + <auto-attributes include="pk" mode="IN"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteCartAbandonedLine" default-entity-name="CartAbandonedLine" engine="entity-auto" invoke="delete" auth="true"> + <description>Delete CartAbandonedLine record</description> + <auto-attributes include="pk" mode="IN"/> + </service> </services> Modified: ofbiz/trunk/applications/workeffort/servicedef/services_workeffort.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services_workeffort.xml?rev=1768266&r1=1768265&r2=1768266&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/servicedef/services_workeffort.xml (original) +++ ofbiz/trunk/applications/workeffort/servicedef/services_workeffort.xml Sat Nov 5 18:24:21 2016 @@ -195,4 +195,20 @@ under the License. <description>Delete a WorkEffortTypeAttr record</description> <auto-attributes include="pk" mode="IN"/> </service> + + <!-- ApplicationSandbox Services --> + <service name="createApplicationSandbox" engine="entity-auto" invoke="create" default-entity-name="ApplicationSandbox" auth="true"> + <description>Create ApplicationSandbox record</description> + <auto-attributes include="pk" mode="INOUT" optional="true"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="updateApplicationSandbox" engine="entity-auto" invoke="update" default-entity-name="ApplicationSandbox" auth="true"> + <description>Update ApplicationSandbox record</description> + <auto-attributes include="pk" mode="IN"/> + <auto-attributes include="nonpk" mode="IN" optional="true"/> + </service> + <service name="deleteApplicationSandbox" engine="entity-auto" invoke="delete" default-entity-name="ApplicationSandbox" auth="true"> + <description>Delete ApplicationSandbox record</description> + <auto-attributes include="pk" mode="IN"/> + </service> </services> |
Free forum by Nabble | Edit this page |