git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@494720 13f79535-47bb-0310-9956-ffa450edef68
132 lines
7.9 KiB
XML
132 lines
7.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2001-2006 The Apache Software Foundation
|
|
|
|
Licensed 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://www.ofbiz.org/dtds/services.xsd">
|
|
<description>Example Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- Example & Related Services -->
|
|
<service name="createExample" default-entity-name="Example" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="createExample" auth="true">
|
|
<description>Create a Example</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="exampleTypeId" optional="false"/>
|
|
<override name="statusId" optional="false"/>
|
|
<override name="exampleName" optional="false"/>
|
|
</service>
|
|
<service name="updateExample" default-entity-name="Example" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="updateExample" auth="true">
|
|
<description>Update a Example</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="oldStatusId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="deleteExample" default-entity-name="Example" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="deleteExample" auth="true">
|
|
<description>Delete a Example</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createExampleStatus" default-entity-name="ExampleStatus" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="createExampleStatus" auth="true">
|
|
<description>Create a ExampleStatus</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="CREATE"/>
|
|
<auto-attributes include="all" mode="IN" optional="false">
|
|
<exclude field-name="statusDate"/>
|
|
</auto-attributes>
|
|
</service>
|
|
|
|
<service name="createExampleItem" default-entity-name="ExampleItem" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="createExampleItem" auth="true">
|
|
<description>Create a ExampleItem</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="exampleItemSeqId" mode="OUT"/> <!-- make this OUT rather than IN, we will automatically generate the next sub-sequence ID -->
|
|
<override name="description" optional="false"/>
|
|
</service>
|
|
<service name="updateExampleItem" default-entity-name="ExampleItem" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="updateExampleItem" auth="true">
|
|
<description>Update a ExampleItem</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteExampleItem" default-entity-name="ExampleItem" engine="simple"
|
|
location="org/ofbiz/example/example/ExampleServices.xml" invoke="deleteExampleItem" auth="true">
|
|
<description>Delete a ExampleItem</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- ExampleFeature Services -->
|
|
<service name="createExampleFeature" default-entity-name="ExampleFeature" engine="simple"
|
|
location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="createExampleFeature" auth="true">
|
|
<description>Create a ExampleFeature</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="description" optional="false"/>
|
|
</service>
|
|
<service name="updateExampleFeature" default-entity-name="ExampleFeature" engine="simple"
|
|
location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="updateExampleFeature" auth="true">
|
|
<description>Update a ExampleFeature</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteExampleFeature" default-entity-name="ExampleFeature" engine="simple"
|
|
location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="deleteExampleFeature" auth="true">
|
|
<description>Delete a ExampleFeature</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<service name="createExampleFeatureAppl" default-entity-name="ExampleFeatureAppl" engine="simple"
|
|
location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="createExampleFeatureAppl" auth="true">
|
|
<description>Create a ExampleFeatureAppl</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="fromDate" optional="true"/>
|
|
</service>
|
|
<service name="updateExampleFeatureAppl" default-entity-name="ExampleFeatureAppl" engine="simple"
|
|
location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="updateExampleFeatureAppl" auth="true">
|
|
<description>Update a ExampleFeatureAppl</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteExampleFeatureAppl" default-entity-name="ExampleFeatureAppl" engine="simple"
|
|
location="org/ofbiz/example/feature/ExampleFeatureServices.xml" invoke="deleteExampleFeatureAppl" auth="true">
|
|
<description>Delete a ExampleFeatureAppl</description>
|
|
<permission-service service-name="exampleGenericPermission" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- Permission Services -->
|
|
<service name="exampleGenericPermission" engine="simple"
|
|
location="org/ofbiz/example/ExamplePermissionServices.xml" invoke="exampleGenericPermission">
|
|
<implements service="permissionInterface"/>
|
|
</service>
|
|
</services>
|