source: TI07-MOLES/trunk/v1Schema/Schemae/moles_security1.01.xsd @ 2664

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI07-MOLES/trunk/v1Schema/Schemae/moles_security1.01.xsd@2664
Revision 2664, 3.0 KB checked in by ko23, 13 years ago (diff)

Typing error in schema updates corrected

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Kev O'Neill (CCLRC) -->
3<xs:schema targetNamespace="http://ndg.nerc.ac.uk/moles/security" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:molessec="http://ndg.nerc.ac.uk/moles/security" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
4        <!--version 1.0 of NDG security types/elements schema. -->
5        <xs:complexType name="dgSecurityConditionType">
6                <xs:annotation>
7                        <xs:documentation>Type to use as base for extension etc...</xs:documentation>
8                </xs:annotation>
9                <xs:sequence>
10                        <xs:element name="effect">
11                                <xs:simpleType>
12                                        <xs:restriction base="xs:string">
13                                                <xs:enumeration value="allow"/>
14                                                <xs:enumeration value="deny"/>
15                                        </xs:restriction>
16                                </xs:simpleType>
17                        </xs:element>
18                        <xs:choice>
19                                <xs:element name="simpleCondition">
20                                        <xs:complexType>
21                                                <xs:sequence>
22                                                        <xs:element name="dgAttributeAuthority" type="xs:string"/>
23                                                        <xs:element name="attrauthRole" type="xs:string"/>
24                                                </xs:sequence>
25                                        </xs:complexType>
26                                </xs:element>
27                                <xs:element name="complexCondition">
28                                        <xs:annotation>
29                                                <xs:documentation>Place holder for when complex conditions arise</xs:documentation>
30                                        </xs:annotation>
31                                </xs:element>
32                        </xs:choice>
33                        <xs:element name="conditionExplanationText" type="xs:string" minOccurs="0">
34                                <xs:annotation>
35                                        <xs:documentation>Text to state condition in free text. This should allow it to be output to the relevant elements of things like GCMD DIF</xs:documentation>
36                                </xs:annotation>
37                        </xs:element>
38                </xs:sequence>
39        </xs:complexType>
40        <xs:element name="dgSecurityCondition" type="molessec:dgSecurityConditionType">
41                <xs:annotation>
42                        <xs:documentation>Element for general use</xs:documentation>
43                </xs:annotation>
44        </xs:element>
45        <xs:complexType name="accessControlPolicyType">
46                <xs:annotation>
47                        <xs:documentation>Contains either a text file giving the access control policy to the actual data granule, or a URL that points to such a document. In the long run, this is likely to be an XACML document. Note the assumption that there will be only one definitive source for such a policy.</xs:documentation>
48                </xs:annotation>
49                <xs:choice>
50                        <xs:element name="accessControlPolicyURL" type="xs:anyURI"/>
51                        <xs:element name="accessControlPolicyText" type="xs:string"/>
52                        <xs:element ref="molessec:dgSecurityCondition" maxOccurs="unbounded"/>
53                </xs:choice>
54        </xs:complexType>
55        <xs:element name="accessControlPolicy" type="molessec:accessControlPolicyType">
56                <xs:annotation>
57                        <xs:documentation>Element for general use. Contains either a text file giving the access control policy to the actual data granule, or a URL that points to such a document. In the long run, this is likely to be an XACML document. Note the assumption that there will be only one definitive source for such a policy.</xs:documentation>
58                </xs:annotation>
59        </xs:element>
60</xs:schema>
Note: See TracBrowser for help on using the repository browser.