/
common-certification-3.xsd
1486 lines (1450 loc) · 73.4 KB
/
common-certification-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
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-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/common-3"
xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
elementFormDefault="qualified"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="2.0">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
<!-- Don't provide schemaLocation here, as it causes xjc to really contact the URIs (!) -->
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/annotation-3"/>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/types-3"/>
<xsd:import namespace="http://prism.evolveum.com/xml/ns/public/query-3"/>
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-core-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-case-management-3" />
<xsd:include schemaLocation="http://midpoint.evolveum.com/xml/ns/public/common/common-workflows-3" />
<xsd:complexType name="AbstractAccessCertificationDefinitionType" abstract="true">
<xsd:annotation>
<xsd:documentation>
Definition of an access certification - a template for
a set of access certification campaigns.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="c:ObjectType">
<xsd:sequence>
<xsd:element name="handlerUri" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The certification handler that should take care of certification campaigns
created according to this definition.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="scopeDefinition" type="tns:AccessCertificationScopeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Specifies the standard scope of certifications of this type. (In the future it can be overridden
in specific certification campaign.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ownerRef" type="tns:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The user that owns certification campaigns based on this definition.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="remediationDefinition" type="tns:AccessCertificationRemediationDefinitionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How the identified cases have to be resolved?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reiterationDefinition" type="tns:AccessCertificationReiterationDefinitionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Configuration of the manual or automatic reiteration.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="stageDefinition" type="tns:AccessCertificationStageDefinitionType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Definition of individual stages (reviewers, duration, ...).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reviewStrategy" type="tns:AccessCertificationCaseReviewStrategyType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Strategy used to compute review outcome for a given case, based on results of individual stages,
along with instructions when a case review advances from a stage to next one.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="adHoc" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Denotes "ad hoc" certification campaign, i.e. one that is started by policy rules, not explicitly by a user.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="lastCampaignIdUsed" type="xsd:int" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
ID that was used to auto-generate campaign name last time (null if none so far).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="lastCampaignStartedTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When the last campaign of this type was started (in its first iteration)?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="lastCampaignClosedTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When the last campaign of this type was closed? Deletion is not recorded in this attribute.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!--<xsd:element name="campaignSchedulingInterval" type="xsd:duration" minOccurs="0">-->
<!--<xsd:annotation>-->
<!--<xsd:documentation>-->
<!--How often should a campaign of this type be automatically started?-->
<!--(null if automated scheduling is not required)-->
<!--Scheduling is based on last campaign started timestamp.-->
<!--</xsd:documentation>-->
<!--</xsd:annotation>-->
<!--</xsd:element>-->
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AccessCertificationDefinitionForReportType">
<xsd:annotation>
<xsd:documentation>
Access certification definition augmented with report-related information
(e.g. number of campaigns).
EXPERIMENTAL. It is to be seen if this form is OK.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="c:AbstractAccessCertificationDefinitionType">
<xsd:sequence>
<xsd:element name="campaigns" type="xsd:int" minOccurs="0"/>
<xsd:element name="openCampaigns" type="xsd:int" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="accessCertificationDefinitionForReport" type="tns:AccessCertificationDefinitionForReportType" substitutionGroup="c:object"/>
<xsd:complexType name="AccessCertificationDefinitionType">
<xsd:annotation>
<xsd:documentation>
Access certification definition.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="c:AbstractAccessCertificationDefinitionType">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="accessCertificationDefinition" type="tns:AccessCertificationDefinitionType" substitutionGroup="c:object"/>
<xsd:complexType name="AccessCertificationStageDefinitionType">
<xsd:annotation>
<xsd:documentation>
Definition of an access certification campaign stage.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="number" type="xsd:int" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Stages are numbered from 1 onwards.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Stage name.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Stage description.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="duration" type="xsd:duration" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How long should the stage last?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="deadlineRounding" type="c:DeadlineRoundingType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How to round the deadline (if at all)? The default is to 23:59:59 of the computed day.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="notifyBeforeDeadline" type="xsd:duration" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
How long before the end of stage should notifications be sent?
(Multiple values can be put here.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="notifyOnlyWhenNoDecision" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Send notifications only to people that have not decided yet.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reviewerSpecification" type="tns:AccessCertificationReviewerSpecificationType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outcomeStrategy" type="tns:AccessCertificationCaseOutcomeStrategyType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How to determine outcome of the approval process (e.g. if multiple reviewers are present)?
Default is oneAcceptAccepts.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outcomeIfNoReviewers" type="tns:AccessCertificationResponseType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
What is the outcome if no reviewers are available? (This is not the same situation as if some reviewers were computed but none of them responded!)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="stopReviewOn" type="tns:AccessCertificationResponseType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
What decisions stop the case from advancing to the next stage?
If neither stopReviewOn nor advanceToNextStageOn is used, a default (defined at the campaign level) is used.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="advanceToNextStageOn" type="tns:AccessCertificationResponseType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
What decisions make the case to advance to the next stage?
If neither stopReviewOn nor advanceToNextStageOn is used, a default (defined at the campaign level) is used.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="timedActions" type="tns:WorkItemTimedActionsType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
What actions are to be applied to work items when given timer(s) occur.
EXPERIMENTAL
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AccessCertificationReviewerSpecificationType">
<xsd:annotation>
<xsd:documentation>
Specifies how to select reviewers for a campaign stage.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
User-readable name of this reviewer specification. (In case it is necessary.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Description of this reviewer specification.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="useTargetOwner" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Indicates that target object (Org, Role, Resource) owner(s) should be used as reviewer(s).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="useTargetApprover" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Indicates that target object (Org, Role, Resource) approver(s) should be used as reviewer(s).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="useObjectOwner" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Indicates that object (Org, Role) owner(s) should be used as reviewer(s).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="useObjectApprover" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Indicates that object (Org, Role) approver(s) should be used as reviewer(s).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="useObjectManager" type="tns:ManagerSearchType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Indicates that the object's managers should be used. The interpretation depends on what kind
of object there is.
For a user, the managers of all organizations to which he/she belongs, are taken.
For an org, its managers are taken.
(For the future: For a role, if it has a parentOrgRef, managers of these are taken. If it has
none, no reviewers are contributed by this option.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reviewerExpression" type="tns:ExpressionType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The most general way of specifying the reviewer. Inputs for such expressions are:
- certificationCase (current certification case),
- campaign (certification campaign object),
- reviewerSpecification (current reviewer specification).
Output is a collection of parent-less reviewer references (of type ObjectReferenceType).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="defaultReviewerRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
If no reviewer(s) are computed by other means, this/these should be used.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:FocusType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="additionalReviewerRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
These reviewers are always used.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:FocusType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AccessCertificationCampaignType">
<xsd:annotation>
<xsd:documentation>
Definition of an access certification campaign.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="c:ObjectType">
<xsd:sequence>
<xsd:element name="definitionRef" type="tns:ObjectReferenceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Specifies the definition for this certification campaign.
(It is optional, as there are also ad-hoc certifications with no pre-existing definition.)
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:AccessCertificationDefinitionType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="ownerRef" type="tns:ObjectReferenceType" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Specifies the owner of this certification campaign.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:UserType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="handlerUri" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The certification handler that should take care of this campaign.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="scopeDefinition" type="tns:AccessCertificationScopeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Specifies the scope of this campaign.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="remediationDefinition" type="tns:AccessCertificationRemediationDefinitionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
How the identified cases have to be resolved?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reiterationDefinition" type="tns:AccessCertificationReiterationDefinitionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Configuration of the manual or automatic reiteration.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="stageDefinition" type="tns:AccessCertificationStageDefinitionType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Definition of individual stages.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reviewStrategy" type="tns:AccessCertificationCaseReviewStrategyType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Strategy used to compute review outcome for a given case, based on results of individual stages,
along with instructions when a case review advances from a stage to next one.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="startTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When this campaign has to start (or has started).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="endTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When this campaign has finished.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="iteration" type="xsd:int" minOccurs="0" default="1">
<xsd:annotation>
<xsd:documentation>
Which iteration this campaign is in. 1 means the regular (first) run;
2 means first repetition, etc.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="state" type="tns:AccessCertificationCampaignStateType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
In which state is the current campaign.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="stageNumber" type="xsd:int" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
The stage this campaign is in.
0 means it has not started yet.
X in 1..N (where N is the number of defined stages) means that stage X is being carried out.
Y greater than N means the campaign has been already finished.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="stage" type="tns:AccessCertificationStageType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Stages for this campaign (already finished, current, or planned).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="case" type="tns:AccessCertificationCaseType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Certification cases for this campaign.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="accessCertificationCampaign" type="tns:AccessCertificationCampaignType" substitutionGroup="c:object" />
<xsd:complexType name="AccessCertificationStageType">
<xsd:annotation>
<xsd:documentation>
Information about a stage of a campaign.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="iteration" type="xsd:int" minOccurs="0" default="1">
<xsd:annotation>
<xsd:documentation>
Which iteration this stage is part of. 1 means the first (i.e. regular) run.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="number" type="xsd:int">
<xsd:annotation>
<xsd:documentation>
TODO
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Stage name.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Stage description.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="startTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When this stage has started.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="deadline" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When this stage has to finish.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="endTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When this stage has actually finished.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="escalationLevel" type="tns:WorkItemEscalationLevelType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The escalation level is currently the same for open all cases and their open work items in the stage.
(This might change in the future.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:long" use="optional"/>
</xsd:complexType>
<xsd:complexType name="AccessCertificationScopeType">
<xsd:annotation>
<xsd:documentation>
Specifies the scope of an access certification campaign.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
User-readable name of this scope definition. (In case it is necessary.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Description of this scope definition.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AccessCertificationObjectBasedScopeType">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
<xsd:documentation>
The most common way of specifying scope - providing type+search filter to select "base" objects
and then some means of deriving certification cases from them.
</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AccessCertificationScopeType">
<xsd:sequence>
<xsd:element name="objectType" type="xsd:QName" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Type of objects to be selected for certification.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="searchFilter" type="q:SearchFilterType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Filter to find objects for certification.
By default, all objects of a given type will be selected.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="itemSelectionExpression" type="c:ExpressionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Expression that selects items that are to be included in the certification.
Exact use of this expression depends on the certification handler.
E.g. user assignment handler could call this expression individually with each assignment
to determine which assignments should be included and which should not.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="caseGenerationExpression" type="c:ExpressionType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Expression that produces certification cases. This can be any expression, whose input is an object
that has passed the search filter specified above, and its output is a list of certification cases.
An example: a groovy expression, creating certification cases by selecting user's
"risky" assignments (e.g. assignments to a roles of a given type/types). Another example
can be the computation of all assignments (direct and indirect ones), and selecting among these.
NOT IMPLEMENTED YET
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="accessCertificationObjectBasedScopeType" type="tns:AccessCertificationObjectBasedScopeType"/>
<xsd:complexType name="AccessCertificationAssignmentReviewScopeType">
<xsd:annotation>
<xsd:documentation>
Scope for assignment-related reviews.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AccessCertificationObjectBasedScopeType">
<xsd:sequence>
<xsd:element name="includeAssignments" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should assignments be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeInducements" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should inducements be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeRoles" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should assignments/inducements of roles be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeOrgs" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should assignments/inducements of orgs be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeResources" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should assignments/inducements of resources be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeServices" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should assignments/inducements of services be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="includeUsers" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should assignments/inducements of users (e.g. deputy relations) be included in the certification?
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="enabledItemsOnly" type="xsd:boolean" minOccurs="0" default="true">
<xsd:annotation>
<xsd:documentation>
Should we approve only assignments/inducements that are currently enabled?
(I.e. with administrativeStatus either null or ENABLED)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="relation" type="xsd:QName" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Relation(s) which are to be considered. Value of q:any means "any relation".
If no relation is present, org:default (i.e. null) is assumed.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="accessCertificationAssignmentReviewScopeType" type="tns:AccessCertificationAssignmentReviewScopeType"/>
<xsd:complexType name="AccessCertificationCaseType">
<xsd:annotation>
<xsd:documentation>
An item that has to be certified, viewed in the scope of a given certification campaign.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="objectRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Object (e.g. a user) that is being touched by this case.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:ObjectType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="targetRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Quite an abstract parameter - describing the object of the certification case (e.g. a role, a resource, ...).
Used for selecting relevant cases for approvals.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:ObjectType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="tenantRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
For parameterized certification items (e.g. assignments): a tenant parameter, if applicable.
See discussion on tenantRef in AssignmentType.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:OrgType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="orgRef" type="tns:ObjectReferenceType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
For parameterized certification items (e.g. assignments): an org parameter, if applicable.
See discussion on orgRef in AssignmentType.
</xsd:documentation>
<xsd:appinfo>
<a:objectReferenceTargetType>tns:OrgType</a:objectReferenceTargetType>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="activation" type="tns:ActivationType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
If the target is assigned with activation information (e.g. validFrom/validTo/administrativeStatus)
here is the information copied. Note that other activation information (e.g. effectiveStatus) are
_not_ updated here and probably should be ignored.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<!--
<xsd:element name="targetQualification" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
E.g. kind+intent of a resource object (if target is a resource).
TargetRef + targetQualification are used to group cases e.g. by role, by roleType,
by resource, by resource object ... We could add more similar properties,
as requirements evolve.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
-->
<xsd:element name="stageNumber" type="xsd:int">
<xsd:annotation>
<xsd:documentation>
The number of current stage in which this case is.
E.g. currentOutcome relates to the currentStage.
Case is "enabled" for a current campaign stage if and only if case.currentStage == campaign.stageNumber.
When opening a campaign stage, case's currentStage either advances (if it is transferred to stage being opened)
or stays at the existing value (if it is not). It then indicates the last stage this case
was reviewed in.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="iteration" type="xsd:int" minOccurs="0" default="1">
<xsd:annotation>
<xsd:documentation>
Iteration this case takes part of. Case is "enabled" for a current campaign stage if and only if
case.iteration == campaign.iteration (beware of null comparison).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="workItem" type="tns:AccessCertificationWorkItemType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Work items for this stage. Some might be completed. Work items are not deleted.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="currentStageCreateTimestamp" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation>
When was this certification case requested to be reviewed?
(Can be found in certification.stage.start but we need to
sort according to this value.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="currentStageDeadline" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When should this certification case be reviewed?
(Can be found in certification.stage.end but we need to
sort according to this value.)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="currentStageOutcome" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Currently valid outcome, relevant to the current stage. It is recomputed on each reviewer's
response based on defined algorithms. If the case is not transferred into the next stage,
the value of this item stays as it is.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="outcome" type="xsd:anyURI" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The outcome, taking into account all closed stages plus current stage (if any).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="reviewFinishedTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When was the review process for this case finished (for the current iteration)?
This value is cleared for cases entering the next iteration.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="remediedTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When was this certification case was remedied?
If null, this means that either remediation was not required
(either because the decision was "accept" or "abstain" or
because remediation mode was set to "none").
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="event" type="tns:CaseEventType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Events that occurred during lifetime of this case.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:long" use="optional"/>
</xsd:complexType>
<xsd:element name="accessCertificationCase" type="tns:AccessCertificationCaseType"/>
<xsd:complexType name="AccessCertificationCaseStageOutcomeType">
<xsd:annotation>
<xsd:appinfo>
<a:container/>
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="stageNumber" type="xsd:int" minOccurs="1" />
<xsd:element name="outcome" type="tns:AccessCertificationResponseType" minOccurs="1" />
</xsd:sequence>
<xsd:attribute name="id" type="xsd:long" use="optional"/>
</xsd:complexType>
<xsd:complexType name="AccessCertificationWorkItemType">
<xsd:annotation>
<xsd:documentation>
A work item for a certification case.
</xsd:documentation>
<xsd:appinfo>
<a:container/>
<a:since>3.6</a:since>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="tns:AbstractWorkItemType">
<xsd:sequence>
<xsd:element name="outputChangeTimestamp" type="xsd:dateTime" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
When the decision was made or changed.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="iteration" type="xsd:int" minOccurs="0" default="1">
<xsd:annotation>
<xsd:documentation>
Which iteration this work item is part of. 1 means the first (i.e. regular) run.
</xsd:documentation>
<xsd:appinfo>
<a:since>3.9</a:since>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>