You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2016/09/17 11:03:21 UTC

svn commit: r1761193 - in /ofbiz/trunk/applications: content/ofbiz-component.xml content/servicedef/services_document.xml order/servicedef/services_requirement.xml

Author: arunpatidar
Date: Sat Sep 17 11:03:20 2016
New Revision: 1761193

URL: http://svn.apache.org/viewvc?rev=1761193&view=rev
Log:
Implemented: Added CRUD services for DocumentAttribute, Document and DesiredFeature entity.
(OFBIZ-8161) (OFBIZ-8162) (OFBIZ-8163)

Thanks: Amit Gadaley for the contribution.

Added:
    ofbiz/trunk/applications/content/servicedef/services_document.xml
Modified:
    ofbiz/trunk/applications/content/ofbiz-component.xml
    ofbiz/trunk/applications/order/servicedef/services_requirement.xml

Modified: ofbiz/trunk/applications/content/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/ofbiz-component.xml?rev=1761193&r1=1761192&r2=1761193&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/ofbiz-component.xml (original)
+++ ofbiz/trunk/applications/content/ofbiz-component.xml Sat Sep 17 11:03:20 2016
@@ -54,6 +54,7 @@ under the License.
     <service-resource type="model" loader="main" location="servicedef/services_content.xml"/>
     <service-resource type="model" loader="main" location="servicedef/services_contenttypes.xml"/>
     <service-resource type="model" loader="main" location="servicedef/services_data.xml"/>
+    <service-resource type="model" loader="main" location="servicedef/services_document.xml"/>
     <service-resource type="model" loader="main" location="servicedef/services_output.xml"/>
     <service-resource type="model" loader="main" location="servicedef/services_survey.xml"/>
     <service-resource type="model" loader="main" location="servicedef/services_commevent.xml"/>

Added: ofbiz/trunk/applications/content/servicedef/services_document.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/servicedef/services_document.xml?rev=1761193&view=auto
==============================================================================
--- ofbiz/trunk/applications/content/servicedef/services_document.xml (added)
+++ ofbiz/trunk/applications/content/servicedef/services_document.xml Sat Sep 17 11:03:20 2016
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
+    <description>Content Component Document Services</description>
+    <vendor>OFBiz</vendor>
+
+    <!-- create DocumentAttribute services -->
+    <service name="createDocumentAttribute" default-entity-name="DocumentAttribute" engine="entity-auto" invoke="create" auth="true">
+        <description>Create a DocumentAttribute record</description>
+        <auto-attributes mode="IN" include="pk"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="updateDocumentAttribute" default-entity-name="DocumentAttribute" engine="entity-auto" invoke="update" auth="true">
+        <description>Update a DocumentAttribute record</description>
+        <auto-attributes mode="IN" include="pk"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="deleteDocumentAttribute" default-entity-name="DocumentAttribute" engine="entity-auto" invoke="delete" auth="true">
+        <description>Delete a DocumentAttribute record</description>
+        <auto-attributes mode="IN" include="pk"/>
+    </service>
+
+    <!-- create document services -->
+    <service name="createDocument" default-entity-name="Document" engine="entity-auto" invoke="create" auth="true">
+        <description>Create a Document record</description>
+        <auto-attributes mode="INOUT" include="pk" optional="true"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="updateDocument" default-entity-name="Document" engine="entity-auto" invoke="update" auth="true">
+        <description>Update a Document record</description>
+        <auto-attributes mode="IN" include="pk"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="deleteDocument" default-entity-name="Document" engine="entity-auto" invoke="delete" auth="true">
+        <description>Delete a Document record</description>
+        <auto-attributes mode="IN" include="pk"/>
+    </service>
+
+</services>

Modified: ofbiz/trunk/applications/order/servicedef/services_requirement.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_requirement.xml?rev=1761193&r1=1761192&r2=1761193&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services_requirement.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services_requirement.xml Sat Sep 17 11:03:20 2016
@@ -207,5 +207,20 @@ under the License.
         </description>
         <attribute name="orderId" type="String" mode="IN" optional="false"/>
     </service>
+    <!-- DesiredFeature services -->
+    <service name="createDesiredFeature" default-entity-name="DesiredFeature" engine="entity-auto" invoke="create" auth="true">
+        <description>Create a DesiredFeature record</description>
+        <auto-attributes mode="IN" include="pk"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="updateDesiredFeature" default-entity-name="DesiredFeature" engine="entity-auto" invoke="update" auth="true">
+        <description>Update a DesiredFeature record</description>
+        <auto-attributes mode="IN" include="pk"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+    <service name="deleteDesiredFeature" default-entity-name="DesiredFeature" engine="entity-auto" invoke="delete" auth="true">
+        <description>Delete a DesiredFeature record</description>
+        <auto-attributes mode="IN" include="pk"/>
+    </service>
 </services>