-
Notifications
You must be signed in to change notification settings - Fork 188
/
types-3.xsd
592 lines (535 loc) · 22.3 KB
/
types-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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2014 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://prism.evolveum.com/xml/ns/public/types-3"
xmlns:tns="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
elementFormDefault="qualified"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="2.0">
<xsd:annotation>
<xsd:documentation>
Basic Prism types.
Version: 3.0
Recommended namespace prefix: t
</xsd:documentation>
</xsd:annotation>
<xsd:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation>
Importing the schema of XSD schema definition explicitly. This causes that we can use "strict" matching
for the xsd:schema elements used in runtime.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<xsd:import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="http://www.w3.org/2001/04/xmlenc">
<xsd:annotation>
<xsd:documentation>
The XML Encryption schema. Used for "protected" data types (property encryption).
</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 prism annotations used in various XSD schemas.
</xsd:documentation>
</xsd:annotation>
</xsd:import>
<!-- ########################################### -->
<!-- ## PROPERTY DATA TYPES ## -->
<!-- ########################################### -->
<xsd:complexType name="PolyStringType" mixed="true">
<xsd:annotation>
<xsd:documentation>
Polymorphic string. String that may have more than one representation at
the same time. The primary representation is the original version that is
composed of the full Unicode character set. The other versions may be
normalized to trim it, normalize character case, normalize spaces,
remove national characters or even transliterate the string.
There is an alternative syntactic short-cut representation of PolyString. If no
child element is present then the text entire text content of this element is
considered as if it was present in the "orig" element. That's the reason for making
this type "mixed".
This is considered to be primitive built-in type for prism objects.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="orig" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Original value of the string. There are no constraints on the string structure
beyond the natural constraints of the platform. E.g. it may contain full set of
Unicode characters, multiple subsequent whitespaces, etc.
Although this element is marked as optional, it is mandatory. It should be either
provided in a form of this element or as an alternative representation (no elements
and the value of "orig" provided as text content)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="norm" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Normalized value of the string. The values is processed by the default normalization
algorithm defined in the system.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Any additional form of normalized value. Any element present in this section
must be of xsd:string type and it must be single-value (in the prism sense).
Note: Some implementations may not be able to use them or even store them.
</xsd:documentation>
</xsd:annotation>
</xsd:any>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ProtectedStringType" mixed="true">
<xsd:annotation>
<xsd:documentation>
Specific subtype for protected STRING data.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:ProtectedDataType">
<xsd:sequence>
<xsd:element name="clearValue" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Clear unprotected value.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ProtectedByteArrayType" mixed="true">
<xsd:annotation>
<xsd:documentation>
Specific subtype for protected binary byte array data.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:ProtectedDataType">
<xsd:sequence>
<xsd:element name="clearValue" type="xsd:base64Binary" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Clear unprotected value.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ProtectedDataType" mixed="true" abstract="true">
<xsd:annotation>
<xsd:documentation>
TODO
May be either encrypted or hashed or provided in the clear (e.g. for debugging).
This type is marked as "mixed" because it may have alternative representation where
just the plaintext value is presented as the only value.
This is considered to be primitive built-in type for prism objects.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="encryptedData" type="tns:EncryptedDataType" minOccurs="0"/>
<!-- TODO: hashing -->
<xsd:any namespace="##other" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
DEPRECATED. Only for compatibility with older versions.
Used to match legacy xenc:EncryptedData
</xsd:documentation>
</xsd:annotation>
</xsd:any>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EncryptedDataType">
<xsd:annotation>
<xsd:documentation>
TODO
Contains data protected by (reversible) encryption.
Loosely based on XML encryption standard. But we cannot use full
standard as we are not bound to XML. We need this to work also for
JSON and YAML and other languages.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="encryptionMethod" type="tns:EncryptionMethodType" minOccurs="0"/>
<xsd:element name="keyInfo" type="tns:KeyInfoType" minOccurs="0"/>
<xsd:element name="cipherData" type="tns:CipherDataType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="EncryptionMethodType">
<xsd:annotation>
<xsd:documentation>
TODO
Loosely based on XML encryption standard. But we cannot use full
standard as we are not bound to XML. We need this to work also for
JSON and YAML and other languages.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="algorithm" type="xsd:anyURI" minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="KeyInfoType">
<xsd:annotation>
<xsd:documentation>
TODO
Loosely based on XML digital signature standard. But we cannot use full
standard as we are not bound to XML. We need this to work also for
JSON and YAML and other languages.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="keyName" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CipherDataType">
<xsd:annotation>
<xsd:documentation>
TODO
Loosely based on XML encryption standard. But we cannot use full
standard as we are not bound to XML. We need this to work also for
JSON and YAML and other languages.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="cipherValue" type="xsd:base64Binary" minOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ObjectType">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:complexType>
<!-- ########################################### -->
<!-- ## DATA STRUCTURE TYPES ## -->
<!-- ########################################### -->
<xsd:complexType name="extension">
<xsd:annotation>
<xsd:appinfo>
<a:propertyContainer/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax">
</xsd:any>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ObjectReferenceType">
<xsd:annotation>
<xsd:documentation>
Reference to an object. It contains OID of the object that it refers to.
</xsd:documentation>
<xsd:appinfo>
<a:objectReference/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Free-form description of this reference. Usually used to describe the purpose of
a search filter embedded in the reference.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="filter" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Filter that can be used to dynamically lookup the reference OID e.g. during imports.
It must not be used for normal operations and references with the filter must not
be stored in the repository.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="oid" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
Target of the reference.
Optional only during imports. The objects stored in the repository must have the OID
value filled in.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="type" type="xsd:QName" use="optional">
<xsd:annotation>
<xsd:documentation>
XSD type of the reference target object.
It should be provided if the type is known (e.g. when
reading object from the repository).
The primary reason for this is to have some kind of
type safety but especially to be able to use
this in the XPaths that specify what references to resolve.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<!--<xsd:complexType name="XPathType" mixed="true">-->
<!--<xsd:annotation>-->
<!--<xsd:appinfo>-->
<!--<jaxb:dom/>-->
<!--<a:deprecated/>-->
<!--</xsd:appinfo>-->
<!--<xsd:documentation>-->
<!--Defines a type for XPath pointer. It points to a specific part-->
<!--of the XML tree. Only a path expressions should be used in-->
<!--this type, as it is used as an l-value, i.e. pointing to a-->
<!--part of XML where an value can be assigned.-->
<!---->
<!--XPath expression selecting the property container.-->
<!--It must select exactly one XML element. It must not be used to-->
<!--select XML constructs inside a property, unless such property is-->
<!--in itself an object.-->
<!--The root of the path is assumed to be the element of the-->
<!--top-most ObjectType. Path attribute may be omitted. In that-->
<!--case it is assumed to be "/". The path should be absolute,-->
<!--starting with leading slash ("/"). If the leading slash is-->
<!--not present, it should be assumed, but warning message-->
<!--should be logged in such case.-->
<!---->
<!--DEPRECATED. use ItemPathType instead-->
<!---->
<!--cf. ExpressionType-->
<!--</xsd:documentation>-->
<!--</xsd:annotation>-->
<!--</xsd:complexType>-->
<!-- Here we use complexType to create a Java class named ItemPathType -->
<xsd:complexType name="ItemPathType">
<xsd:annotation>
<xsd:documentation>
Defines a type for XPath-like item pointer. It points to a specific part
of the prism object.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string" />
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="SchemaDefinitionType">
<xsd:annotation>
<xsd:documentation>
Type for prism schema definition. It currently contains
XSD schema definition. But other languages may be supported
later.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="strict">
<xsd:annotation>
<xsd:appinfo>
<jaxb:dom/>
</xsd:appinfo>
</xsd:annotation>
</xsd:any>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RawType" mixed="true">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax"/>
</xsd:complexType>
<xsd:complexType name="XmlAsStringType" mixed="true">
<xsd:annotation>
<xsd:documentation>
Represents a string that may contain unescaped XML data.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
<!-- ########################################### -->
<!-- ## DELTAS ## -->
<!-- ########################################### -->
<xsd:complexType name="ItemDeltaType">
<xsd:annotation>
<xsd:documentation>
Describe a change to a single attribute.
In this case the path expression used in the "property"
attribute must select exactly one property.
TODO: this should be renamed to ItemDeltaType
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="modificationType" type="tns:ModificationTypeType"/>
<xsd:element name="path" type="tns:ItemPathType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Path to the CONTAINER.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!--<xsd:element name="value" type="tns:RawType">-->
<xsd:element name="value" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded">
<!-- <xsd:complexType> -->
<!-- <xsd:sequence> -->
<!-- <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax"> -->
<!-- <xsd:annotation> -->
<!-- <xsd:documentation> -->
<!-- The elements and values of changed properties. -->
<!-- Multi-valued properties are expressed as usual, -->
<!-- that means by repeating the element containing -->
<!-- the property value. -->
<!-- All the elements must have the same QName and be -->
<!-- of the same type. -->
<!-- If more than one property is changed, the entire -->
<!-- PropertyChangeType element must be repeated. -->
<!-- </xsd:documentation> -->
<!-- </xsd:annotation> -->
<!-- </xsd:any> -->
<!-- </xsd:sequence> -->
<!-- </xsd:complexType> -->
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="ModificationTypeType">
<xsd:annotation>
<xsd:documentation>
TODO
The "TypeType" in the name is correct. This is the
type for "change type" therefore the name is OK
although it looks strange.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="add">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="ADD"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="replace">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="REPLACE"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="delete">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="DELETE"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="ObjectDeltaType">
<xsd:annotation>
<xsd:documentation>
Describes a change of a specific object.
This is abstract type. It cannot be used directly.
Use the subtypes instead.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="changeType" type="tns:ChangeTypeType"/>
<xsd:element name="objectType" type="xsd:QName"/>
<xsd:element name="objectToAdd" type="tns:ObjectType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Contains a single prism object.
Object OID is inside this structure (or is not there at all).
Valid only if the changeType is "add".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="oid" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
OID of object to modify or delete.
Valid only if the changeType is "modify" or "delete".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="itemDelta" type="tns:ItemDeltaType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Valid only if the changeType is "modify".
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="objectDelta" type="tns:ObjectDeltaType"/>
<xsd:simpleType name="ChangeTypeType">
<xsd:annotation>
<xsd:documentation>
TODO
The "TypeType" in the name is correct. This is the
type for "change type" therefore the name is OK
although it looks strange.
</xsd:documentation>
<xsd:appinfo>
<jaxb:typesafeEnumClass/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="add">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="ADD"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="modify">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="MODIFY"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="delete">
<xsd:annotation>
<xsd:appinfo>
<jaxb:typesafeEnumMember name="DELETE"/>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>