<!--
  ~ Copyright (c) 2010-2017 Evolveum
  ~
  ~ Licensed 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.
  -->

<role oid="12345678-d34d-b33f-f00d-988888888889"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
    <name>Pirate Lord</name>
    <description>
     A role that "extends" pirate role. Used to test role hierarchies.
    </description>
    <inducement>
        <targetRef oid="12345678-d34d-b33f-f00d-987987987988" type="RoleType"/>
    </inducement>
    <inducement>
        <construction>
            <!-- The c: prefix in type must be there due to a JAXB bug -->
            <resourceRef oid="ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2" type="c:ResourceType"/>
            <attribute>
                    <ref>ri:title</ref>
                    <outbound>
                        <expression>
                            <value>His Bloodthirstyness</value>
                        </expression>
                    </outbound>
                </attribute>
        <!-- Example of specification of several values for a multi-valued attribute -->
            <attribute>
                    <ref>ri:businessCategory</ref>
                    <outbound>
                        <expression>
                            <value>politics</value>
                        </expression>
                   </outbound>
            </attribute>
        </construction>
    </inducement>
</role>
