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

<archetype oid="00000000-0000-0000-0000-000000000172"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:mext="http://midpoint.evolveum.com/xml/ns/public/model/extension-3">
    <name>Report</name>
    <archetypePolicy>
        <display>
            <label>
                <orig>Report</orig>
                <translation>
                    <key>report.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Report</orig>
                <translation>
                    <key>report.pluralLabel</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-chart-pie</cssClass>
                <color>#001F3F</color>
            </icon>
        </display>
        <itemConstraint id="1">
            <path>jasper</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <itemConstraint id="2">
            <path>diagnosticInformation</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <itemConstraint id="3">
            <path>defaultScriptConfiguration</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <itemConstraint id="4">
            <path>postReportScript</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <itemConstraint id="5">
            <path>lifecycleState</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <adminGuiConfiguration>
            <objectDetails>
                <type>ReportType</type>
                <panel id="6">
                    <identifier>assignments</identifier>
                    <visibility>hidden</visibility>
                    <panelType>assignments</panelType>
                </panel>
                <panel id="7">
                    <identifier>fileFormat</identifier>
                    <displayOrder>20</displayOrder>
                    <display>
                        <label>
                            <orig>File format</orig>
                            <translation>
                                <key>fileFormat.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fas fa-file-alt</cssClass>
                        <icon>
                            <cssClass>fas fa-file-alt</cssClass>
                        </icon>
                    </display>
                    <container id="8">
                        <identifier>fileFormat</identifier>
                        <path>fileFormat</path>
                    </container>
                    <panelType>formPanel</panelType>
                    <path>c:fileFormat</path>
                    <type>c:FileFormatConfigurationType</type>
                </panel>
            </objectDetails>
        </adminGuiConfiguration>
    </archetypePolicy>
    <assignment id="9">
        <identifier>holderType</identifier>
        <assignmentRelation id="10">
            <holderType>ReportType</holderType>
        </assignmentRelation>
    </assignment>
</archetype>
