<!--
  ~ Copyright (c) 2019-2024 Evolveum and contributors
  ~
  ~ Licensed under the EUPL-1.2 or later.
  -->


<!--
  Activate view for this archetype in adminGuiConfiguration like this:

  <adminGuiConfiguration>
    <objectCollectionViews>
        <objectCollectionView>
            <identifier>business-roles</identifier>
            <type>RoleType</type>
            <collection>
                <collectionRef oid="00000000-0000-0000-0000-000000000321" type="ArchetypeType"/>
            </collection>
        </objectCollectionView>
    </objectCollectionViews>
  </adminGuiConfiguration>

-->
<archetype oid="00000000-0000-0000-0000-000000000321"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
        xmlns:org='http://midpoint.evolveum.com/xml/ns/public/common/org-3'>
    <name>Business role</name>
    <description>
        Archetype for roles that have meaning from the business perspective.
        Business roles are usually assigned directly to users, often by using
        request-and-approve processes. Business roles are usually composed from
        smaller roles.
    </description>
    <archetypePolicy>
        <display>
            <label>
                <orig>Business role</orig>
                <translation>
                    <key>businessRole.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Business roles</orig>
                <translation>
                    <key>businessRole.pluralLabel</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fe fe-role</cssClass>
                <color>green</color>
            </icon>
        </display>
    </archetypePolicy>
    <assignment id="1">
        <identifier>holderType</identifier>
        <assignmentRelation id="2">
            <holderType>RoleType</holderType>
        </assignmentRelation>
    </assignment>
</archetype>
