svn commit: r1776558 - /ofbiz/trunk/framework/service/servicedef/services.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1776558 - /ofbiz/trunk/framework/service/servicedef/services.xml

jleroux@apache.org
Author: jleroux
Date: Fri Dec 30 13:16:50 2016
New Revision: 1776558

URL: http://svn.apache.org/viewvc?rev=1776558&view=rev
Log:
Implemented: Add the entity-auto CRUD services for RuntimeData
(OFBIZ-9161)

At OFBIZ-9159 I added the entity-auto CRUD services for JobSandbox but
w/o permission check.

While working on this issue I decided it's better to have them and decided to
also put them for JobSandbox CRUD services.

So here are the entity-auto CRUD services for RuntimeData and permission check
for JobSandbox CRUD services

Modified:
    ofbiz/trunk/framework/service/servicedef/services.xml

Modified: ofbiz/trunk/framework/service/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/servicedef/services.xml?rev=1776558&r1=1776557&r2=1776558&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/servicedef/services.xml (original)
+++ ofbiz/trunk/framework/service/servicedef/services.xml Fri Dec 30 13:16:50 2016
@@ -226,16 +226,39 @@ under the License.
     <!-- JobSandbox Services -->
     <service name="createJobSandbox" engine="entity-auto" invoke="create" default-entity-name="JobSandbox" auth="true">
         <description>Create JobSandbox record</description>
+        <permission-service service-name="commonGenericPermission" main-action="CREATE"/>
         <auto-attributes include="pk" mode="INOUT" optional="true"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
     <service name="updateJobSandbox" engine="entity-auto" invoke="update" default-entity-name="JobSandbox" auth="true">
         <description>Update JobSandbox record</description>
+        <permission-service service-name="commonGenericPermission" main-action="UPDATE"/>
         <auto-attributes include="pk" mode="IN"/>
         <auto-attributes include="nonpk" mode="IN" optional="true"/>
     </service>
     <service name="deleteJobSandbox" engine="entity-auto" invoke="delete" default-entity-name="JobSandbox" auth="true">
         <description>Delete JobSandbox record</description>
+        <permission-service service-name="commonGenericPermission" main-action="DELETE"/>
+        <auto-attributes include="pk" mode="IN"/>
+    </service>
+
+    <!-- RuntimeData Services -->
+    <service name="createRuntimeData" engine="entity-auto" invoke="create" default-entity-name="RuntimeData" auth="true">
+        <description>Create RuntimeData record</description>
+        <permission-service service-name="commonGenericPermission" main-action="CREATE"/>
+        <auto-attributes include="pk" mode="INOUT" optional="true"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+        <override name="runtimeInfo" allow-html="any"></override>
+    </service>
+    <service name="updateRuntimeData" engine="entity-auto" invoke="update" default-entity-name="RuntimeData" auth="true">
+        <description>Update RuntimeData record</description>
+        <permission-service service-name="commonGenericPermission" main-action="UPDATE"/>
+        <auto-attributes include="pk" mode="IN"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+    </service>
+    <service name="deleteRuntimeData" engine="entity-auto" invoke="delete" default-entity-name="RuntimeData" auth="true">
+        <description>Delete RuntimeData record</description>
+        <permission-service service-name="commonGenericPermission" main-action="DELETE"/>
         <auto-attributes include="pk" mode="IN"/>
     </service>