[open-ils-commits] r8288 - branches/acq-experiment/Open-ILS/examples

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 28 13:44:42 EST 2007


Author: miker
Date: 2007-12-28 13:21:48 -0500 (Fri, 28 Dec 2007)
New Revision: 8288

Added:
   branches/acq-experiment/Open-ILS/examples/permacrud.xsd
Modified:
   branches/acq-experiment/Open-ILS/examples/fm_IDL.xsd
Log:
adding permacrud XSD

Modified: branches/acq-experiment/Open-ILS/examples/fm_IDL.xsd
===================================================================
--- branches/acq-experiment/Open-ILS/examples/fm_IDL.xsd	2007-12-28 16:34:04 UTC (rev 8287)
+++ branches/acq-experiment/Open-ILS/examples/fm_IDL.xsd	2007-12-28 18:21:48 UTC (rev 8288)
@@ -26,6 +26,7 @@
  xmlns:oils_persist="http://open-ils.org/spec/opensrf/IDL/persistence/v1"
  xmlns:oils_obj="http://open-ils.org/spec/opensrf/IDL/objects/v1"
  xmlns:reporter="http://open-ils.org/spec/opensrf/IDL/reporter/v1"
+ xmlns:crud="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
  targetNamespace="http://opensrf.org/spec/IDL/base/v1"
  elementFormDefault="qualified"
  attributeFormDefault="unqualified"
@@ -40,6 +41,9 @@
 <xs:import namespace="http://open-ils.org/spec/opensrf/IDL/reporter/v1"
  schemaLocation="reporter.xsd"/>
 
+<xs:import namespace="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
+ schemaLocation="permacrud.xsd"/>
+
 <!-- define simple elements -->
 <xs:element name="field" nillable="true">
  <xs:complexType>
@@ -89,6 +93,7 @@
    <xs:element ref="oils_persist:source_definition" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element ref="idl:fields"/>
    <xs:element ref="idl:links" minOccurs="0"/>
+   <xs:element ref="crud:permacrud" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute name="id"/>
   <xs:attribute name="controller"/>

Added: branches/acq-experiment/Open-ILS/examples/permacrud.xsd
===================================================================
--- branches/acq-experiment/Open-ILS/examples/permacrud.xsd	                        (rev 0)
+++ branches/acq-experiment/Open-ILS/examples/permacrud.xsd	2007-12-28 18:21:48 UTC (rev 8288)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+
+Copyright (C) 2007 Laurentian University
+Dan Scott <dscott at laurentian.ca>
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
+-->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
+ targetNamespace="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
+ elementFormDefault="unqualified"
+ attributeFormDefault="unqualified"
+>
+
+<xs:attribute name="permsission" type="xs:string"/>
+<xs:attribute name="context_field" type="xs:string"/>
+
+<xs:element name="context" nillable="true">
+ <xs:complexType>
+  <xs:attribute name="link"/>
+  <xs:attribute name="field"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="create" nillable="true">
+ <xs:complexType>
+  <xs:sequence>
+   <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+  </xs:sequence>
+  <xs:attribute name="permission" use="required"/>
+  <xs:attribute name="context_field"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="retrieve" nillable="true">
+ <xs:complexType>
+  <xs:sequence>
+   <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+  </xs:sequence>
+  <xs:attribute name="permission"/>
+  <xs:attribute name="context_field"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="update" nillable="true">
+ <xs:complexType>
+  <xs:sequence>
+   <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+  </xs:sequence>
+  <xs:attribute name="permission" use="required"/>
+  <xs:attribute name="context_field"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="delete" nillable="true">
+ <xs:complexType>
+  <xs:sequence>
+   <xs:element ref="context" minOccurs="0" maxOccurs="1"/>
+  </xs:sequence>
+  <xs:attribute name="permission" use="required"/>
+  <xs:attribute name="context_field"/>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="actions">
+ <xs:complexType>
+  <xs:sequence>
+   <xs:element ref="create" minOccurs="0" maxOccurs="1"/>
+   <xs:element ref="retrieve" minOccurs="0" maxOccurs="1"/>
+   <xs:element ref="update" minOccurs="0" maxOccurs="1"/>
+   <xs:element ref="delete" minOccurs="0" maxOccurs="1"/>
+  </xs:sequence>
+ </xs:complexType>
+</xs:element>
+
+<xs:element name="permacrud">
+ <xs:complexType>
+  <xs:sequence>
+   <xs:element ref="actions" minOccurs="1" maxOccurs="1"/>
+  </xs:sequence>
+ </xs:complexType>
+</xs:element>
+
+</xs:schema>



More information about the open-ils-commits mailing list