-
Notifications
You must be signed in to change notification settings - Fork 188
/
audit-3.xsd
491 lines (474 loc) · 20.4 KB
/
audit-3.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2015-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.
-->
<xsd:schema targetNamespace="http://midpoint.evolveum.com/xml/ns/public/common/audit-3"
xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/audit-3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
elementFormDefault="qualified"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="2.0">
<xsd:annotation>
<xsd:documentation>
Schema for audit event serialization.
Version: 3.7
Recommended namespace prefix: audit
</xsd:documentation>
</xsd:annotation>
<xsd:import namespace="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-3">
<xsd:annotation>
<xsd:documentation>
Common midPoint schema.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/annotation-3"
schemaLocation="http://prism.evolveum.com/xml/ns/public/annotation-3">
<xsd:annotation>
<xsd:documentation>
Common midPoint annotations used in various XSD schemas.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/types-3"
schemaLocation="http://prism.evolveum.com/xml/ns/public/types-3">
<xsd:annotation>
<xsd:documentation>
Prism data types.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:complexType name="AuditEventRecordListType">
<xsd:sequence>
<xsd:element name="object" type="tns:AuditEventRecordType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="count" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="AuditEventRecordType">
<xsd:annotation>
<xsd:documentation>
Audit event record describes a single event (usually data change) in a format suitable for audit.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="timestamp" type="xsd:dateTime" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Timestamp when the event occurred.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="eventIdentifier" type="xsd:string" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Unique identification of the event.
Every record should have unique event identifier.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="sessionIdentifier" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Identification of (interactive) session in which the event occurred.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="requestIdentifier" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
<p>
Identifier of a request (operation). All the records that are result of
processing of a single request should have the same identifier.
In usual case there should be be a single request-stage record
and one or more execution-stage records with the same request
identifier.
</p>
<p>
Please note that this is quite different than task identifier.
A single task can make many requests. E.g. a typical reconciliation
task will make thousands of operations. All of the audit records from
all of those operations will have the same task identifier. But each
operation will have a separate request identifier.
</p>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="taskIdentifier" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
<p>
Task identifier. Operations are executed in a context of a task.
This field is an identifier of the task. It is not (necessarily) an
OID of the task, as an operation may be executed in an non-persistent
(lightweight) task. This field should be populated for all audit records,
perhaps except very special system-level records that are executed outside
of a task.
</p>
<p>
Please note that this is quite different than request identifier.
A single task can make many requests. E.g. a typical reconciliation
task will make thousands of operations. All of the audit records from
all of those operations will have the same task identifier. But each
operation will have a separate request identifier.
</p>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="taskOID" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Task OID. This field is used for records that are executed in the context
of a persistent task.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="hostIdentifier" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="nodeIdentifier" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="remoteHostAddress" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="initiatorRef" type="c:ObjectReferenceType" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Initiator is the (legal) entity on behalf of whom is the action executed.
It is the subject of the operation. Authorizations of the initiator are
used to evaluate access to the operation. This is the entity who is formally
responsible for the operation. Although initiator is always a user in
midPoint 3.7 and earlier, the initiator may be an organization in later
midPoint versions.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>c:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="attorneyRef" type="c:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Attorney is the (physical) user who have executed the action.
This is the user that have logged-in to the user interface. This is the
user that pressed the button to execute the action. This is always identity
of a user and it will always be a user. It cannot be a company or any other
virtual entity.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>c:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="targetRef" type="c:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Object that is a primary target of an operation (if applicable).
In case that operation targets more than one object, the "primary" or
the most important is recorded (e.g. the user object)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="targetOwnerRef" type="c:ObjectReferenceType" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Owner of the object that is a target of this operation (if applicable).
E.g. a owner of a task that is being stopped, owner of an account that
is being modified, etc.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>c:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="eventType" type="tns:AuditEventTypeType" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="eventStage" type="tns:AuditEventStageType" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="delta" type="c:ObjectDeltaOperationType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="channel" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outcome" type="c:OperationResultStatusType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Operation outcome (success, failure)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="result" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
result (e.g. number of entries, returned object, business result of workflow task or process instance - approved, rejected)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="parameter" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="message" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="property" type="tns:AuditEventRecordPropertyType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="reference" type="tns:AuditEventRecordReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="resourceOid" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Resource OIDs. This field is used for resource OIDs of target, when target is FocusType or Shadowtype.
</xsd:documentation>
<xsd:appinfo>
<a:since>4.0</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="auditEventRecord" type="tns:AuditEventRecordType" />
<xsd:complexType name="AuditEventRecordItemType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AuditEventRecordPropertyType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AuditEventRecordItemType">
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AuditEventRecordReferenceType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AuditEventRecordItemType">
<xsd:sequence>
<xsd:element name="value" type="tns:AuditEventRecordReferenceValueType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AuditEventRecordReferenceValueType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="oid" type="xsd:string" minOccurs="0" />
<xsd:element name="type" type="xsd:QName" minOccurs="0" />
<xsd:element name="targetName" type="t:PolyStringType" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="AuditEventTypeType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="getObject">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="GET_OBJECT"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="addObject">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="ADD_OBJECT"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="modifyObject">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="MODIFY_OBJECT"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="deleteObject">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="DELETE_OBJECT"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="executeChangesRaw">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="EXECUTE_CHANGES_RAW"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="synchronization">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="SYNCHRONIZATION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="createSession">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="CREATE_SESSION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="terminateSession">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="TERMINATE_SESSION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="workItem">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="WORK_ITEM"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="workflowProcessInstance">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="WORKFLOW_PROCESS_INSTANCE"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="reconciliation">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="RECONCILIATION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="AuditEventStageType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="request">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="REQUEST"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="execution">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="EXECUTION"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>