1 <?xml version="1.0" encoding="UTF-8" ?>
5 Copyright (C) 2007 Laurentian University
6 Dan Scott <dscott@laurentian.ca>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
25 xmlns:permacrud="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
26 targetNamespace="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"
27 elementFormDefault="qualified"
28 attributeFormDefault="unqualified"
31 <xs:attribute name="permsission" type="xs:string"/>
32 <xs:attribute name="context_field" type="xs:string"/>
34 <xs:element name="context" nillable="true">
36 <xs:attribute name="link"/>
37 <xs:attribute name="jump"/>
38 <xs:attribute name="field" use="required"/>
39 <xs:attribute name="global_required"/>
43 <xs:element name="create" nillable="true">
46 <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="1"/>
48 <xs:attribute name="permission" use="required"/>
49 <xs:attribute name="context_field"/>
50 <xs:attribute name="owning_user"/>
51 <xs:attribute name="global_required"/>
55 <xs:element name="retrieve" nillable="true">
58 <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="unbounded"/>
60 <xs:attribute name="permission"/>
61 <xs:attribute name="context_field"/>
62 <xs:attribute name="owning_user"/>
63 <xs:attribute name="global_required"/>
67 <xs:element name="update" nillable="true">
70 <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="1"/>
72 <xs:attribute name="permission" use="required"/>
73 <xs:attribute name="context_field"/>
74 <xs:attribute name="owning_user"/>
75 <xs:attribute name="global_required"/>
79 <xs:element name="delete" nillable="true">
82 <xs:element ref="permacrud:context" minOccurs="0" maxOccurs="1"/>
84 <xs:attribute name="permission" use="required"/>
85 <xs:attribute name="context_field"/>
86 <xs:attribute name="owning_user"/>
87 <xs:attribute name="global_required"/>
91 <xs:element name="actions">
94 <xs:element ref="permacrud:create" minOccurs="0" maxOccurs="1"/>
95 <xs:element ref="permacrud:retrieve" minOccurs="0" maxOccurs="1"/>
96 <xs:element ref="permacrud:update" minOccurs="0" maxOccurs="1"/>
97 <xs:element ref="permacrud:delete" minOccurs="0" maxOccurs="1"/>
102 <xs:element name="permacrud">
105 <xs:element ref="permacrud:actions" minOccurs="1" maxOccurs="1"/>
107 <xs:attribute name="ignore_object_perms"/>