1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:doc="eml://ecoinformatics.org/documentation-2.0.1" xmlns:res="eml://ecoinformatics.org/resource-2.0.1" xmlns="eml://ecoinformatics.org/access-2.0.1" targetNamespace="eml://ecoinformatics.org/access-2.0.1">
|
3
|
<xs:import namespace="eml://ecoinformatics.org/documentation-2.0.1" schemaLocation="eml-documentation.xsd"/>
|
4
|
<xs:import namespace="eml://ecoinformatics.org/resource-2.0.1" schemaLocation="eml-resource.xsd"/>
|
5
|
<xs:annotation>
|
6
|
<xs:documentation>
|
7
|
'$RCSfile: eml-access.xsd,v $'
|
8
|
Copyright: 1997-2002 Regents of the University of California,
|
9
|
University of New Mexico, and
|
10
|
Arizona State University
|
11
|
Sponsors: National Center for Ecological Analysis and Synthesis and
|
12
|
Partnership for Interdisciplinary Studies of Coastal Oceans,
|
13
|
University of California Santa Barbara
|
14
|
Long-Term Ecological Research Network Office,
|
15
|
University of New Mexico
|
16
|
Center for Environmental Studies, Arizona State University
|
17
|
Other funding: National Science Foundation (see README for details)
|
18
|
The David and Lucile Packard Foundation
|
19
|
For Details: http://knb.ecoinformatics.org/
|
20
|
|
21
|
'$Author: jones $'
|
22
|
'$Date: 2004/08/05 22:42:32 $'
|
23
|
'$Revision: 1.72 $'
|
24
|
|
25
|
This program is free software; you can redistribute it and/or modify
|
26
|
it under the terms of the GNU General Public License as published by
|
27
|
the Free Software Foundation; either version 2 of the License, or
|
28
|
(at your option) any later version.
|
29
|
|
30
|
This program is distributed in the hope that it will be useful,
|
31
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
32
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
33
|
GNU General Public License for more details.
|
34
|
|
35
|
You should have received a copy of the GNU General Public License
|
36
|
along with this program; if not, write to the Free Software
|
37
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
38
|
</xs:documentation>
|
39
|
<xs:appinfo>
|
40
|
</xs:appinfo>
|
41
|
</xs:annotation>
|
42
|
<xs:element name="access" type="AccessType">
|
43
|
<xs:annotation>
|
44
|
<xs:appinfo>
|
45
|
<doc:tooltip>Access control rules</doc:tooltip>
|
46
|
<doc:summary>The rules defined in this element will determine the level
|
47
|
of access to a resource for the defined users and groups.</doc:summary>
|
48
|
</xs:appinfo>
|
49
|
</xs:annotation>
|
50
|
</xs:element>
|
51
|
<xs:complexType name="AccessType">
|
52
|
<xs:annotation>
|
53
|
<xs:appinfo>
|
54
|
<doc:tooltip>Access control rules</doc:tooltip>
|
55
|
<doc:summary>The rules defined in this element will determine the level
|
56
|
of access to a resource for the defined users and groups.</doc:summary>
|
57
|
</xs:appinfo>
|
58
|
</xs:annotation>
|
59
|
<xs:choice>
|
60
|
<xs:choice maxOccurs="unbounded">
|
61
|
<xs:element name="allow" type="AccessRule">
|
62
|
<xs:annotation>
|
63
|
<xs:appinfo>
|
64
|
<doc:tooltip>Allow rule</doc:tooltip>
|
65
|
<doc:summary>A rule that grants a permission
|
66
|
type.</doc:summary>
|
67
|
</xs:appinfo>
|
68
|
</xs:annotation>
|
69
|
</xs:element>
|
70
|
<xs:element name="deny" type="AccessRule">
|
71
|
<xs:annotation>
|
72
|
<xs:appinfo>
|
73
|
<doc:tooltip>Deny rule</doc:tooltip>
|
74
|
<doc:summary>A rule that revokes a permission
|
75
|
type.</doc:summary>
|
76
|
</xs:appinfo>
|
77
|
</xs:annotation>
|
78
|
</xs:element>
|
79
|
</xs:choice>
|
80
|
<xs:group ref="res:ReferencesGroup"/>
|
81
|
</xs:choice>
|
82
|
<xs:attribute name="id" type="res:IDType" use="optional"/>
|
83
|
<xs:attribute name="system" type="res:SystemType" use="optional"/>
|
84
|
<xs:attribute name="scope" type="res:ScopeType" use="optional" default="document"/>
|
85
|
<xs:attribute name="order" use="optional" default="allowFirst">
|
86
|
<xs:annotation>
|
87
|
<xs:appinfo>
|
88
|
<doc:tooltip>Rule order</doc:tooltip>
|
89
|
<doc:summary>The order in which the allow and deny rules should be
|
90
|
applied.</doc:summary>
|
91
|
</xs:appinfo>
|
92
|
</xs:annotation>
|
93
|
<xs:simpleType>
|
94
|
<xs:restriction base="xs:string">
|
95
|
<xs:enumeration value="allowFirst"/>
|
96
|
<xs:enumeration value="denyFirst"/>
|
97
|
</xs:restriction>
|
98
|
</xs:simpleType>
|
99
|
</xs:attribute>
|
100
|
<xs:attribute name="authSystem" type="xs:string" use="required">
|
101
|
<xs:annotation>
|
102
|
<xs:appinfo>
|
103
|
<doc:tooltip>Authentication system</doc:tooltip>
|
104
|
<doc:summary>The authentication system is used to verify the user or
|
105
|
group to whom access is allowed or denied.</doc:summary>
|
106
|
</xs:appinfo>
|
107
|
</xs:annotation>
|
108
|
</xs:attribute>
|
109
|
</xs:complexType>
|
110
|
<xs:complexType name="AccessRule">
|
111
|
<xs:annotation>
|
112
|
<xs:appinfo>
|
113
|
<doc:tooltip>Access Rule</doc:tooltip>
|
114
|
<doc:summary>Access Rules define a user's access to a
|
115
|
resource.</doc:summary>
|
116
|
</xs:appinfo>
|
117
|
</xs:annotation>
|
118
|
<xs:sequence>
|
119
|
<xs:element name="principal" type="xs:string" maxOccurs="unbounded">
|
120
|
<xs:annotation>
|
121
|
<xs:appinfo>
|
122
|
<doc:tooltip>User or group</doc:tooltip>
|
123
|
<doc:summary>The user or group (principal) for which the access
|
124
|
control applies.</doc:summary>
|
125
|
</xs:appinfo>
|
126
|
</xs:annotation>
|
127
|
</xs:element>
|
128
|
<xs:element name="permission" maxOccurs="unbounded">
|
129
|
<xs:annotation>
|
130
|
<xs:appinfo>
|
131
|
<doc:tooltip>Type of permission</doc:tooltip>
|
132
|
<doc:summary>The type of permission being granted or denied.
|
133
|
</doc:summary>
|
134
|
</xs:appinfo>
|
135
|
</xs:annotation>
|
136
|
<xs:simpleType>
|
137
|
<xs:union>
|
138
|
<xs:simpleType>
|
139
|
<xs:restriction base="xs:string">
|
140
|
<xs:enumeration value="read"/>
|
141
|
<xs:enumeration value="write"/>
|
142
|
<xs:enumeration value="changePermission"/>
|
143
|
<xs:enumeration value="all"/>
|
144
|
</xs:restriction>
|
145
|
</xs:simpleType>
|
146
|
<xs:simpleType>
|
147
|
<xs:restriction base="xs:string"/>
|
148
|
</xs:simpleType>
|
149
|
</xs:union>
|
150
|
</xs:simpleType>
|
151
|
</xs:element>
|
152
|
</xs:sequence>
|
153
|
</xs:complexType>
|
154
|
</xs:schema>
|