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

<archetype oid="00000000-0000-0000-0000-000000000171"
        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>Collection report</name>
    <archetypePolicy>
        <display>
            <label>
                <orig>Collection report</orig>
                <translation>
                    <key>collectionReport.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Collection reports</orig>
                <translation>
                    <key>CollectionReports.title</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-filter</cssClass>
                <color>#001F3F</color>
            </icon>
        </display>
        <itemConstraint id="1">
            <path>dashboard</path>
            <visibility>hidden</visibility>
        </itemConstraint>
        <adminGuiConfiguration>
            <objectDetails>
                <type>ReportType</type>
                <panel id="2">
                    <identifier>engine</identifier>
                    <displayOrder>11</displayOrder>
                    <display>
                        <label>
                            <orig>Engine</orig>
                            <translation>
                                <key>engine.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-microchip</cssClass>
                        <icon>
                            <cssClass>fa fa-microchip</cssClass>
                        </icon>
                    </display>
                    <container id="7">
                        <identifier>engineContainer</identifier>
                        <display>
                            <label>
                                <orig>Engine</orig>
                                <translation>
                                    <key>engine.panel.label</key>
                                </translation>
                            </label>
                        </display>
                        <item id="8">
                            <path>objectCollection/condition</path>
                        </item>
                        <item id="9">
                            <path>objectCollection/useOnlyReportView</path>
                        </item>
                    </container>
                    <panelType>formPanel</panelType>
                    <path>c:objectCollection</path>
                    <type>c:ObjectCollectionReportEngineConfigurationType</type>
                </panel>
                <panel id="3">
                    <identifier>collection</identifier>
                    <displayOrder>12</displayOrder>
                    <display>
                        <label>
                            <orig>Collection</orig>
                            <translation>
                                <key>collection.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-filter</cssClass>
                        <icon>
                            <cssClass>fa fa-filter</cssClass>
                        </icon>
                    </display>
                    <container id="10">
                        <identifier>collection</identifier>
                        <path>objectCollection/collection</path>
                    </container>
                    <panelType>formPanel</panelType>
                    <path>c:objectCollection/collection</path>
                    <type>c:CollectionRefSpecificationType</type>
                </panel>
                <panel id="4">
                    <identifier>view</identifier>
                    <display>
                        <label>
                            <orig>View</orig>
                            <translation>
                                <key>view.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-eye</cssClass>
                        <icon>
                            <cssClass>fa fa-eye</cssClass>
                        </icon>
                    </display>
                    <panelType>reportCollectionView</panelType>
                </panel>
                <panel id="5">
                    <identifier>parameters</identifier>
                    <display>
                        <label>
                            <orig>Parameter</orig>
                            <translation>
                                <key>parameter.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-th</cssClass>
                        <icon>
                            <cssClass>fa fa-th</cssClass>
                        </icon>
                    </display>
                    <panelType>reportCollectionParameter</panelType>
                </panel>
                <panel id="6">
                    <identifier>subreport</identifier>
                    <display>
                        <label>
                            <orig>Subreport</orig>
                            <translation>
                                <key>subreport.panel.label</key>
                            </translation>
                        </label>
                        <cssClass>fa fa-th</cssClass>
                        <icon>
                            <cssClass>fa fa-th</cssClass>
                        </icon>
                    </display>
                    <panelType>reportCollectionSubreport</panelType>
                </panel>
            </objectDetails>
        </adminGuiConfiguration>
    </archetypePolicy>
    <assignment id="11">
        <identifier>holderType</identifier>
        <assignmentRelation id="12">
            <holderType>ReportType</holderType>
        </assignmentRelation>
    </assignment>
    <superArchetypeRef oid="00000000-0000-0000-0000-000000000172" type="c:ArchetypeType"/>
</archetype>
