﻿<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns="http://schema.webpdf.de/1.0/configuration/users" elementFormDefault="qualified"
           targetNamespace="http://schema.webpdf.de/1.0/configuration/users"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="users">
        <xs:annotation>
            <xs:documentation>
                <p>Lists users of the webPDF server.</p>
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="user" type="UserType" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:complexType name="UserType">
        <xs:annotation>
            <xs:documentation>
                <p>Defines the attributes of a user.</p>
            </xs:documentation>
        </xs:annotation>
        <xs:attribute name="username" default="" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    <p>The name of the user.</p>
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="password" default="" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    <p>The password of the user.</p>
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="roles" default="" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    <p>The roles of the user.</p>
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="uniqueId" default="" type="xs:string">
            <xs:annotation>
                <xs:documentation>
                    <p>The unique ID associated with the user.</p>
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:schema>