DomainParticipant Permissions XSD

  1<?xml version="1.0" encoding="utf-8"?>
  2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3    elementFormDefault="qualified" attributeFormDefault="unqualified">
  4    <xs:element name="dds" type="PermissionsNode" />
  5    <xs:complexType name="PermissionsNode">
  6        <xs:sequence minOccurs="1" maxOccurs="1">
  7            <xs:element name="permissions" type="Permissions" />
  8        </xs:sequence>
  9    </xs:complexType>
 10    <xs:complexType name="Permissions">
 11        <xs:sequence minOccurs="1" maxOccurs="unbounded">
 12            <xs:element name="grant" type="Grant" />
 13        </xs:sequence>
 14    </xs:complexType>
 15    <xs:complexType name="Grant">
 16        <xs:sequence minOccurs="1" maxOccurs="1">
 17            <xs:element name="subject_name" type="xs:string" />
 18            <xs:element name="validity" type="Validity" />
 19            <xs:sequence minOccurs="1" maxOccurs="unbounded">
 20                <xs:choice minOccurs="1" maxOccurs="1">
 21                    <xs:element name="allow_rule" minOccurs="0" type="Rule" />
 22                    <xs:element name="deny_rule" minOccurs="0" type="Rule" />
 23                </xs:choice>
 24            </xs:sequence>
 25            <xs:element name="default" type="DefaultAction" />
 26        </xs:sequence>
 27        <xs:attribute name="name" type="xs:string" use="required" />
 28    </xs:complexType>
 29    <xs:complexType name="Validity">
 30        <xs:sequence minOccurs="1" maxOccurs="1">
 31            <xs:element name="not_before" type="xs:dateTime" />
 32            <xs:element name="not_after" type="xs:dateTime" />
 33        </xs:sequence>
 34    </xs:complexType>
 35    <xs:complexType name="Rule">
 36        <xs:sequence minOccurs="1" maxOccurs="1">
 37            <xs:element name="domains" type="DomainIdSet" />
 38            <xs:sequence minOccurs="0" maxOccurs="unbounded">
 39                <xs:element name="publish" type="Criteria" />
 40            </xs:sequence>
 41            <xs:sequence minOccurs="0" maxOccurs="unbounded">
 42                <xs:element name="subscribe" type="Criteria" />
 43            </xs:sequence>
 44            <xs:sequence minOccurs="0" maxOccurs="unbounded">
 45                <xs:element name="relay" type="Criteria" />
 46            </xs:sequence>
 47        </xs:sequence>
 48    </xs:complexType>
 49    <xs:complexType name="DomainIdSet">
 50        <xs:choice minOccurs="1" maxOccurs="unbounded">
 51            <xs:element name="id" type="DomainId" />
 52            <xs:element name="id_range" type="DomainIdRange" />
 53        </xs:choice>
 54    </xs:complexType>
 55    <xs:simpleType name="DomainId">
 56        <xs:restriction base="xs:nonNegativeInteger" />
 57    </xs:simpleType>
 58    <xs:complexType name="DomainIdRange">
 59        <xs:choice>
 60            <xs:sequence>
 61                <xs:element name="min" type="DomainId" />
 62                <xs:element name="max" type="DomainId" minOccurs="0" />
 63            </xs:sequence>
 64            <xs:element name="max" type="DomainId" />
 65        </xs:choice>
 66    </xs:complexType>
 67    <xs:complexType name="Criteria">
 68        <xs:all minOccurs="1">
 69            <xs:element name="topics" minOccurs="1"
 70                type="TopicExpressionList" />
 71            <xs:element name="partitions" minOccurs="0"
 72                type="PartitionExpressionList" />
 73            <xs:element name="data_tags" minOccurs="0" type="DataTags" />
 74        </xs:all>
 75    </xs:complexType>
 76    <xs:complexType name="TopicExpressionList">
 77        <xs:sequence minOccurs="1" maxOccurs="unbounded">
 78            <xs:element name="topic" type="TopicExpression" />
 79        </xs:sequence>
 80    </xs:complexType>
 81    <xs:complexType name="PartitionExpressionList">
 82        <xs:sequence minOccurs="1" maxOccurs="unbounded">
 83            <xs:element name="partition" type="PartitionExpression" />
 84        </xs:sequence>
 85    </xs:complexType>
 86    <xs:simpleType name="TopicExpression">
 87        <xs:restriction base="xs:string" />
 88    </xs:simpleType>
 89    <xs:simpleType name="PartitionExpression">
 90        <xs:restriction base="xs:string" />
 91    </xs:simpleType>
 92    <xs:complexType name="DataTags">
 93        <xs:sequence minOccurs="1" maxOccurs="unbounded">
 94            <xs:element name="tag" type="TagNameValuePair" />
 95        </xs:sequence>
 96    </xs:complexType>
 97    <xs:complexType name="TagNameValuePair">
 98        <xs:sequence minOccurs="1" maxOccurs="unbounded">
 99            <xs:element name="name" type="xs:string" />
100            <xs:element name="value" type="xs:string" />
101        </xs:sequence>
102    </xs:complexType>
103    <xs:simpleType name="DefaultAction">
104        <xs:restriction base="xs:string">
105            <xs:enumeration value="ALLOW" />
106            <xs:enumeration value="DENY" />
107        </xs:restriction>
108    </xs:simpleType>
109</xs:schema>

Back to the DomainParticipant Permissions Document.