<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date          By      Note
25 Oct 2012   NO      New SecurityRoleMaster noun as requested in JIRA BOD-2105.
30 Oct 2012   NO      Renamed SecurityRoleReference to SecurityRole (JIRA BOD-2105). 
        *****     Update End     *****
 
-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schema.infor.com/InforOAGIS/2"
    targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:include schemaLocation="../Components/Common/Components.xsd"/>

    <xsd:element name="SecurityRoleMaster" type="SecurityRoleMasterType">
        <xsd:annotation>
            <xsd:documentation > The Role type defines the structure of a security role 
       				 A role is a container for permissions (or other roles) that can then be assigned to users
       				 Assignment of roles or permissions to a role is covered by the RoleAssignment BOD.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="SecurityRoleMasterType">
        <xsd:complexContent>
            <xsd:extension base="StatusEnabledStandardHeaderType">
                <xsd:sequence>
                    <xsd:element ref="Name" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="RoleTypeCode" minOccurs="0"/>
                    <xsd:element ref="RoleEnabledIndicator" minOccurs="0"/>
                    <xsd:element ref="RoleValidityPeriod" minOccurs="0"/>
                    <xsd:element ref="SecurityPermission" minOccurs="0" maxOccurs="unbounded"/>

                    <xsd:element ref="UserArea" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>


    
    
    <xsd:element name="RoleTypeCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Stores the code list that contains the following: 
				'Simple', 'Nested', and 'Other'. </xsd:documentation>
		</xsd:annotation>
    </xsd:element>
		
    <xsd:element name="RoleValidityPeriod" type="TimePeriodType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Need description here...</xsd:documentation>
		</xsd:annotation>
    </xsd:element>
    
    <xsd:element name="RoleEnabledIndicator" type="IndicatorType">
        <xsd:annotation>
            <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicate where the Role is enable or disable. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
 
    
</xsd:schema>
