<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2010-2020 Evolveum and contributors
  ~
  ~ Licensed under the EUPL-1.2 or later.
  -->

<report xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        oid="00000000-0000-0000-0000-000000000080">
    <name>All audit records report</name>
    <description>Report made from all audit records.</description>
    <assignment id="1">
        <identifier>archetype</identifier>
        <targetRef oid="00000000-0000-0000-0000-000000000171" type="ArchetypeType"/>
    </assignment>
    <objectCollection>
        <collection>
            <baseCollectionRef>
                <collectionRef oid="00000000-0000-0000-0001-000000000284" type="ObjectCollectionType"/>
            </baseCollectionRef>
            <filter>
                <q:text>
                    targetRef = yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $targetRef
                    ``` and initiatorRef = yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $initiatorRef
                    ``` and outcome = yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $outcome
                    ``` and eventType = yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $eventType
                    ``` and eventStage = yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $eventStage
                    ``` and timestamp greater yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $from
                    ``` and timestamp less yaml```
                            queryInterpretationOfNoValue: filterAll
                            path: $to
                    ```
                </q:text>
            </filter>
        </collection>
        <parameter id="2">
            <name>outcome</name>
            <type>OperationResultStatusType</type>
            <display>
                <label>
                    <orig>outcome</orig>
                    <translation>
                        <key>AuditEventRecordType.outcome</key>
                    </translation>
                </label>
            </display>
        </parameter>
        <parameter id="3">
            <name>eventType</name>
            <type>AuditEventTypeType</type>
            <display>
                <label>
                    <orig>eventType</orig>
                    <translation>
                        <key>AuditEventRecordType.eventType</key>
                    </translation>
                </label>
            </display>
        </parameter>
        <parameter id="4">
            <name>eventStage</name>
            <type>AuditEventStageType</type>
            <display>
                <label>
                    <orig>eventStage</orig>
                    <translation>
                        <key>AuditEventRecordType.eventStage</key>
                    </translation>
                </label>
            </display>
        </parameter>
        <parameter id="5">
            <name>from</name>
            <type>dateTime</type>
            <display>
                <label>
                    <orig>from</orig>
                    <translation>
                        <key>AuditPopupPanel.dateFrom</key>
                    </translation>
                </label>
            </display>
        </parameter>
        <parameter id="6">
            <name>to</name>
            <type>dateTime</type>
            <display>
                <label>
                    <orig>to</orig>
                    <translation>
                        <key>AuditPopupPanel.dateTo</key>
                    </translation>
                </label>
            </display>
        </parameter>
        <parameter id="7">
            <name>targetRef</name>
            <type>c:ObjectReferenceType</type>
            <display>
                <label>
                    <orig>targetRef</orig>
                    <translation>
                        <key>AuditEventRecordType.targetRef</key>
                    </translation>
                </label>
            </display>
        </parameter>
        <parameter id="8">
            <name>initiatorRef</name>
            <type>c:ObjectReferenceType</type>
            <display>
                <label>
                    <orig>initiatorRef</orig>
                    <translation>
                        <key>AuditEventRecordType.initiatorRef</key>
                    </translation>
                </label>
            </display>
        </parameter>
    </objectCollection>
</report>
