diff options
Diffstat (limited to 'sandbox/lresende/das/ldap/src/main/resources/ldap-config.xsd')
-rw-r--r-- | sandbox/lresende/das/ldap/src/main/resources/ldap-config.xsd | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sandbox/lresende/das/ldap/src/main/resources/ldap-config.xsd b/sandbox/lresende/das/ldap/src/main/resources/ldap-config.xsd new file mode 100644 index 0000000000..95a491d464 --- /dev/null +++ b/sandbox/lresende/das/ldap/src/main/resources/ldap-config.xsd @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + --> +<xsd:schema + xmlns:config="http://org.apache.tuscany.das/config.xsd" + xmlns:ldap-config="http://org.apache.tuscany.das.ldap/config.xsd" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://org.apache.tuscany.das.ldap/config.xsd" + elementFormDefault="qualified"> + + <import namespace="http://org.apache.tuscany.das/config.xsd" schemaLocation="config.xsd"/> + <xsd:include schemaLocation="http://org.apache.tuscany.das/config.xsd"/> + + <xsd:element name="LdapConfig" type="ldap-config:Config"/> + + <xsd:complexType name="LdapConfig"> + <xsd:complexContent> + <xsd:extension base="http://org.apache.tuscany.das/config.xsd:Config"> + <xsd:sequence> + <xsd:element maxOccurs="1" minOccurs="0" name="ConnectionInfo" type="config:ConnectionInfo"/> + </xsd:sequence> + <xsd:attribute name="uri" type="xsd:string"/> + <xsd:attribute name="dataObjectModel" type="xsd:string"/> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + + <xsd:complexType name="ConnectionProperties"> + <xsd:attribute name="driverClass" type="xsd:string"/> + <xsd:attribute name="databaseURL" type="xsd:string"/> + <xsd:attribute name="userName" type="xsd:string" default=""/> + <xsd:attribute name="password" type="xsd:string" default=""/> + <xsd:attribute name="loginTimeout" type="xsd:int" default="0"/> + </xsd:complexType> + + <xsd:complexType name="ConnectionInfo"> + <xsd:sequence> + <xsd:element maxOccurs="1" minOccurs="0" name="ConnectionProperties" type="config:ConnectionProperties"/> + </xsd:sequence> + <xsd:attribute name="dataSource" type="xsd:string"/> + <xsd:attribute name="managedtx" type="xsd:boolean" default="true"/> + </xsd:complexType> +</xsd:schema> |