ws_acl_in.xsd 2.47 KB
Newer Older
Comune di Salerno's avatar
Comune di Salerno committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2011 rel. 2 (http://www.altova.com) by grove (cedaf) -->
<!--W3C Schema generated by XMLSpy v2011 rel. 2 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="ws_acl_in">
		<xs:complexType>
			<xs:sequence>
				<xs:choice>
					<xs:element ref="IdDocumento" minOccurs="0" maxOccurs="1"/>
					<xs:element ref="IdFascicolo" minOccurs="0" maxOccurs="1"/>
				</xs:choice>
				<xs:element ref="action" minOccurs="1" maxOccurs="1"/>
				<xs:element ref="acl_descriptor" minOccurs="1" maxOccurs="1"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="roles">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="role" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="role">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="permissions"/>
			</xs:sequence>
			<xs:attribute name="name" type="xs:string" use="required"/>
			<xs:attribute name="description" type="xs:string" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="permissions">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="permission" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="permission">
		<xs:complexType>
			<xs:attribute name="name" type="xs:string" use="required"/>
			<xs:attribute name="app_prefix" type="xs:string" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="orgs">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="org" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="org">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="permissions"/>
			</xs:sequence>
			<xs:attribute name="name" type="xs:string" use="required"/>
			<xs:attribute name="description" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="action">
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:enumeration value="append"/>
				<xs:enumeration value="update"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="acl_descriptor">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="roles" minOccurs="1" maxOccurs="1"/>
				<xs:element ref="orgs" minOccurs="1" maxOccurs="1"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="IdFascicolo" type="xs:long"/>
	<xs:element name="IdDocumento" type="xs:long"/>
</xs:schema>