-
Notifications
You must be signed in to change notification settings - Fork 0
/
BitRepositoryElements.xsd
1107 lines (998 loc) · 43.8 KB
/
BitRepositoryElements.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"?>
<!--
#%L
Bitrepository message xml definitions
%%
Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
%%
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 2.1 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Lesser Public License for more details.
You should have received a copy of the GNU General Lesser Public
License along with this program. If not, see
<http://www.gnu.org/licenses/lgpl-2.1.html>.
#L%
-->
<!-- message-xml version: ${project.version} -->
<!-- URLs in schema targetNamespace must be updated later -->
<xs:schema
targetNamespace="http://bitrepository.org/BitRepositoryElements.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns="http://bitrepository.org/BitRepositoryElements.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<!-- ************************************************************** -->
<!-- ****** USED ELEMENTS AND GROUPS IN ALPHABETIC ORDER ****** -->
<!-- ************************************************************** -->
<xs:element name="Alarm">
<xs:annotation><xs:documentation xml:lang="en">
Data format for elements in the description of the alarm
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="OrigDateTime" type="SystemDateTime_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Original data/time for discovery of alarm
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="AlarmCode" type="AlarmCode">
<xs:annotation><xs:documentation xml:lang="en">
Global alarm code for the system which describes alarm type.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="AlarmRaiser" type="ComponentID" >
<xs:annotation><xs:documentation xml:lang="en">
Component responsible for raising an alarm
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="AlarmText" type="xs:string">
<xs:annotation><xs:documentation xml:lang="en">
AlarmText is a free text for logging of the alarm
It does not have a semantic meaning, but contributes to a more readable log
and possible notifications
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="FileID" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation xml:lang="en">
Indicates which file this alarm concerns (if any).
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="CollectionID" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation xml:lang="en">
Indicates which collection this alarm concerns (if any).
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AuditTrailEvents">
<xs:annotation><xs:documentation xml:lang="en">
Data format for items in an audit trail
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="AuditTrailEvent" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AuditTrailEvent">
<xs:annotation><xs:documentation xml:lang="en">
Data format for elements in an audit trail for a FileID
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="SequenceNumber" type="xs:positiveInteger">
<xs:annotation><xs:documentation xml:lang="en">
A sequence number uniquely identifying the audit trail entry inside of a component.
Sequence numbers indicates the entries sequence in time, eg. event 4 occurred before event 5.
Note that numbering may not be continuous, eg. there might be holes in the sequence.
The first audit trail event should be number 1.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="FileID" type="FileID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
FileID for object which the audit trail concern
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ReportingComponent" type="ComponentID">
<xs:annotation><xs:documentation xml:lang="en">
Component of the bit repository which initiated audit trail entry on FileId object.
For example client, pillar or coordination layer
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ActorOnFile" type="ActorID" >
<xs:annotation><xs:documentation xml:lang="en">
Actor who performed the specified action on FileId object.
For example specific user or specific process
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ActionOnFile" type="FileAction">
<xs:annotation><xs:documentation xml:lang="en">
Action performed on a File.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ActionDateTime" type="SystemDateTime_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Date and time for when action took place
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="Info" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation> <xs:documentation xml:lang="en">
Human readable description of the event.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="OperationID" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation> <xs:documentation xml:lang="en">
Identifies the operation triggering this event. The value of the OperationID should be
the correlationID of the causing request. Will only be relevant for events triggered by a protocol request.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="CertificateID" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation> <xs:documentation xml:lang="en">
Identifies the certificate used in the message causing this event. The value of the CertificateID should be
the certificates base64 encoded serial number. Will only be relevant for events triggered by a protocol request.
initiated events.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="AuditTrailInformation" minOccurs="0" maxOccurs="1">
<xs:annotation> <xs:documentation xml:lang="en">
Information from the actor that caused the event.
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ChecksumDataForExistingFile" type="ChecksumDataForFile_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Checksum data for a single existing file in the BitRepository.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ChecksumDataForNewFile" type="ChecksumDataForFile_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Checksum data for a single new/freshly uploaded file in the BitRepository.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ChecksumRequestForExistingFile" type="ChecksumSpec_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Checksum request for a single existing file in the BitRepository.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ChecksumRequestForNewFile" type="ChecksumSpec_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Checksum request for a single new/freshly uploaded file in the BitRepository.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Contributor" type="ComponentID" >
<xs:annotation><xs:documentation xml:lang="en">
Contributor to audit trails
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="CorrelationID" type="CorrelationID_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
CorrelationID is a unique identifier for communication usually on primitive level,
e.g the IdentifyPillarsForGet part of a get operation.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CollectionID" type="CollectionID_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
CollectionID is a unique identifier for bit repository collection which data belongs to.
This is also the identification of decryption and keys for contents of message, and it is part of unique
identification of files together with a file id.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Destination" type="QueueTopicName_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Identifies the destination which the message is sent to
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ReplyTo" type="QueueTopicName_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Identifies the destination any responds should be sent to (blank if not relevant, e.g. for alarms)
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="From" type="ComponentID">
<xs:annotation>
<xs:documentation xml:lang="en">
The ID of the component which sent the message.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="To" type="ComponentID">
<xs:annotation>
<xs:documentation xml:lang="en">
The ID of the component which should handle a message.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AuditTrailInformation" type="AuditTrailInformation_TYPE">
<xs:annotation>
<xs:documentation xml:lang="en">
Audit Trail Information known to sender to be added to receiver audit trail.
Usually used by a client who knows a system user and wants this information as part of pillar audit trail.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FileAddress" type="Address_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Address (e.g. in form of an URL) for where a file can be found
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="FileID" type="FileID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Unique identifier for a file in a collection
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="FileIDs">
<xs:annotation><xs:documentation xml:lang="en">
Identifiers that uniquely identifies the data in given bit repository collection which are requested for
These can be specified in different ways, e.g. a list, an all constant or via an address
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element name="FileID" type="FileID_TYPE" minOccurs="1" maxOccurs="1" >
<xs:annotation><xs:documentation xml:lang="en">
List of file identifiers
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="AllFileIDs" type="xs:string">
<xs:annotation><xs:documentation xml:lang="en">
Specification that all data identifiers in the collection is requested
</xs:documentation></xs:annotation>
</xs:element>
<!-- To be enhanced with other ways to address chunks of identifiers, e.g. for mass processing -->
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="FileIDsData">
<xs:annotation><xs:documentation xml:lang="en">
Includes relevant information on data IDs in a result
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FileIDsDataItems" >
<xs:annotation><xs:documentation xml:lang="en" >
List of data on data identifiers in result
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="FileIDsDataItem" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FileIDsDataItem">
<xs:annotation><xs:documentation xml:lang="en">
Includes relevant information on a data ID in a result
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FileID" type="FileID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Identifier of data
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="LastModificationTime" type="SystemDateTime_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
The earliest time which the pillar had the whole file.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="FileSize" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation xml:lang="en">
The filesize in bytes.
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FileIDsParameterData">
<xs:annotation><xs:documentation xml:lang="en">
Includes information on data IDs use in parameter
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FileIDsItems" >
<xs:annotation><xs:documentation xml:lang="en" >
List of file identifiers
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="FileID" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FilePart" >
<xs:annotation><xs:documentation xml:lang="en">
Specification of data object part by posion and length after position
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="PartOffSet" type="xs:nonNegativeInteger">
<xs:annotation><xs:documentation xml:lang="en">
Start position of the part of the data object
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="PartLength" type="xs:nonNegativeInteger">
<xs:annotation><xs:documentation xml:lang="en">
length of the part of the data object
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FileSize" type="xs:nonNegativeInteger">
<xs:annotation><xs:documentation xml:lang="en">
The size of data expressed in number of bytes
e.g. size of data to be put
The type can later be extended to include measure type and measure
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ParameterAddress" type="Address_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Address where parameter can be found
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="PillarChecksumSpec" type="ChecksumSpec_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Information about which type of checksum is used for data on checksums pillar (algorith and possible salt)
In a Get this information will only be relevant for identification of pillars
In a Put this will give input to check if the right put is performed on checksums pillar according to bit repository collection
In first version this will be text like MD5, later it will be aligned with a standard
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="PillarID" type="PillarID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
A unique identifier for a specific pillar (covered by the bit repository collection which data belongs to)
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ResponseInfo">
<xs:annotation>
<xs:documentation xml:lang="en">
Information of completion
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ResponseCode" type="ResponseCode">
<xs:annotation>
<xs:documentation xml:lang="en">
ResponseCode is machine readable code to indicate whether the status of
the request that the response is about.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ResponseText" type="xs:string" minOccurs="0" >
<xs:annotation>
<xs:documentation xml:lang="en">
The optional ReponseText can be used to include additional information in addition to the information found in the
other elements. This will typically be relevant to describe details in problem situations.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="StatusInfo">
<xs:annotation>
<xs:documentation xml:lang="en">
Information of completion
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="StatusCode" type="StatusCode">
<xs:annotation>
<xs:documentation xml:lang="en">
ResponseCode is machine readable code to indicate whether the status of
the request that the response is about
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="StatusText" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">
ReponseText is a textual description for logging, in a human readable form.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ResultAddress" type="Address_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Address (e.g. in form of an URL) for where result data can be found
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ResultingAuditTrails">
<xs:annotation><xs:documentation xml:lang="en">
result is either given via specified address or directly
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="ResultAddress" >
<xs:annotation><xs:documentation xml:lang="en">
Address (e.g. in form of an URL) for where result data has been delivered (if completed)
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="AuditTrailEvents">
<xs:annotation><xs:documentation xml:lang="en">
Audit trail data in result, if given in this message instead of via data transfer
</xs:documentation></xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="ChecksumDataItems" type="ChecksumDataForChecksumSpec_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Container for data from checksum calculations
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ResultingChecksums">
<xs:annotation><xs:documentation xml:lang="en">
result is either given via specified address or directly
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="ResultAddress" minOccurs="0" maxOccurs="1" >
<xs:annotation><xs:documentation xml:lang="en">
Address (e.g. in form of an URL) for where result data has been delivered (if completed)
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="ChecksumDataItems" minOccurs="0" maxOccurs="unbounded">
<xs:annotation><xs:documentation xml:lang="en">
List of data for checksums
</xs:documentation></xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="ResultingFileIDs">
<xs:annotation><xs:documentation xml:lang="en">
result is either given via specified address or directly
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="ResultAddress" minOccurs="0" maxOccurs="1" >
<xs:annotation><xs:documentation xml:lang="en">
Address (e.g. in form of an URL) for where result data has been delivered (if completed)
</xs:documentation></xs:annotation>
</xs:element>
<xs:element ref="FileIDsData">
<xs:annotation><xs:documentation xml:lang="en">
List of data for file ids in result, if given in this message instead of via data transfer
</xs:documentation></xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="ResultingStatus">
<xs:annotation><xs:documentation xml:lang="en">
result is either given via specified address or directly
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="StatusInfo">
<xs:annotation><xs:documentation xml:lang="en">
status from the component as result, - if given in this message instead of via data transfer
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="StatusTimestamp" type="SystemDateTime_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
The time when the status was calculated
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TimeToDeliver" type="TimeMeasure_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
The estimated time before data delivery can start. This includes file upload/download and result upload to the
file exchange server.
In a Put this will be the estimated time before a pillar will start to download the files from the file
exchange server.
</xs:documentation></xs:annotation>
</xs:element>
<xs:attributeGroup name="VersionAttributes">
<xs:annotation><xs:documentation xml:lang="en">
Attributes with information of message version for version control
</xs:documentation></xs:annotation>
<xs:attribute name="version" type="xs:positiveInteger" use="required" />
<xs:attribute name="minVersion" type="xs:nonNegativeInteger" use="required" />
</xs:attributeGroup>
<!-- ************************************************************** -->
<!-- ****** USED TYPES IN ALPHABETIC ORDER ****** -->
<!-- ************************************************************** -->
<xs:simpleType name="ActorID">
<xs:annotation><xs:documentation xml:lang="en">
Identifies a actor performing a function in the system. The actor can be identified by
a certificate ID, componentID or just free text.
</xs:documentation> </xs:annotation>
<xs:restriction base="xs:string" />
</xs:simpleType>
<xs:simpleType name="ComponentID">
<xs:annotation><xs:documentation xml:lang="en">
Identifies a actor performing a function in the system. The actor can be identified by
a certificate ID, componentID or just free text.
</xs:documentation> </xs:annotation>
<xs:restriction base="xs:string" />
</xs:simpleType>
<xs:simpleType name="FileAction">
<xs:restriction base="xs:string">
<!-- Normal protocol operations -->
<xs:enumeration value="GET_FILE" >
<xs:annotation><xs:documentation xml:lang="en">
A get file operation has been performed on the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="PUT_FILE">
<xs:annotation><xs:documentation xml:lang="en">
A put file operation has been performed on the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="DELETE_FILE">
<xs:annotation><xs:documentation xml:lang="en">
A delete file operation has been performed on the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="REPLACE_FILE">
<xs:annotation><xs:documentation xml:lang="en">
A replace file operation has been performed on the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="GET_CHECKSUMS">
<xs:annotation><xs:documentation xml:lang="en">
A getChecksums operation has been performed on the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="GET_FILEID">
<xs:annotation><xs:documentation xml:lang="en">
A getFileID file operation has been performed on the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<!-- Indirect pillar actions -->
<xs:enumeration value="CHECKSUM_CALCULATED">
<xs:annotation><xs:documentation xml:lang="en">
A checksum (re)calculation has been made for the file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="FILE_MOVED">
<xs:annotation><xs:documentation xml:lang="en">
File has been move on the physical media or has been moved between medias, eg. from a disk to dvd/tape. .
</xs:documentation></xs:annotation>
</xs:enumeration>
<!-- Integrity related actions -->
<xs:enumeration value="INTEGRITY_CHECK">
<xs:annotation><xs:documentation xml:lang="en">
An integrity check was performed on a file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="INCONSISTENCY">
<xs:annotation><xs:documentation xml:lang="en">
A inconsistency was found, f.ex. checksum - file mismatch.
Can be used by both the pillars and the integrity checker.
</xs:documentation></xs:annotation>
</xs:enumeration>
<!-- The rest -->
<xs:enumeration value="FAILURE">
<xs:annotation><xs:documentation xml:lang="en">
A general problem occured in connection with a file.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="OTHER">
<xs:annotation><xs:documentation xml:lang="en">
General action not covered by the previous fields.
</xs:documentation></xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ActorID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Unique identifiers for an actor doing actions in the Bit Repository
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="Address_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Address for where data files can be found or placed
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="AlarmCode">
<xs:annotation><xs:documentation xml:lang="en">
Error codes that are specific for Alarm messages
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="COMPONENT_FAILURE">
<xs:annotation><xs:documentation xml:lang="en">
Component failure, something fatal or irrecoverable has happened.
Code error, segmentation fault, missing backend etc.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="INCONSISTENT_REQUEST">
<xs:annotation><xs:documentation xml:lang="en">
Inconsistent request, the request is inconsistent with the file state in the pillar.
E.g.a is user trying to get a file that does not exist, or put a file with an ID already on store.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="CHECKSUM_ALARM">
<xs:annotation><xs:documentation xml:lang="en">
Checksum alarm, Problems with a checksum.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="FAILED_TRANSFER">
<xs:annotation><xs:documentation xml:lang="en">
Failed transfer, file up or download failed.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="FAILED_OPERATION">
<xs:annotation><xs:documentation xml:lang="en">
Failed operation, a non-critical operation failuire.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="INVALID_MESSAGE">
<xs:annotation><xs:documentation xml:lang="en">
Invalid message, a component has received an invalid message.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="INVALID_MESSAGE_VERSION">
<xs:annotation><xs:documentation xml:lang="en">
Invalid message version, a component has received a message of an invalid version.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="TIMEOUT">
<xs:annotation><xs:documentation xml:lang="en">
Timeout, a timeout has occured.
</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="INTEGRITY_ISSUE">
<xs:annotation><xs:documentation xml:lang="en">
If the integrity service discovers an issue with the integrity of the data across the pillars.
</xs:documentation></xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AuditTrailInformation_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Audit Trail Information known to sender to be added to receiver audit trail.
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="CollectionID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
A unique identifier for bit repository collection which data belongs to.
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="ChecksumDataForChecksumSpec_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Checksum data belonging to certain checksum specification.
</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="FileID" type="FileID_TYPE" >
<xs:annotation><xs:documentation xml:lang="en">
Identifier of data the checksum is for
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ChecksumValue" type="ChecksumValue_TYPE" >
<xs:annotation><xs:documentation xml:lang="en">
The value of the checksum
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="CalculationTimestamp" type="SystemDateTime_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
The time when the checksum was last calculated (especially for ordinary checksums on off-line medias,
there can be long intervals between calculations, - in such cases this information is crucial for alarming)
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ChecksumDataForFile_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Checksum data belonging to a certain file ID.
</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="ChecksumSpec" type="ChecksumSpec_TYPE" >
<xs:annotation><xs:documentation xml:lang="en">
The type and possible salt for calculation of the checksum
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ChecksumValue" type="ChecksumValue_TYPE" >
<xs:annotation><xs:documentation xml:lang="en">
The value of the checksum
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="CalculationTimestamp" type="SystemDateTime_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
The time when the checksum was last calculated
(especially for ordinary checksums on off-line medias, there can be long intervals between
calculations, - in such cases this information is crucial for alarming)
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ChecksumSpec_TYPE">
<xs:sequence>
<xs:element name="ChecksumType" type="ChecksumType" >
<xs:annotation><xs:documentation xml:lang="en">
The checksum type
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ChecksumSalt" type="SaltParameter_TYPE" minOccurs="0">
<xs:annotation><xs:documentation xml:lang="en">
Optionally a salt parameter included in the checksum calculation
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="OtherChecksumType" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation xml:lang="en">
If the ChecksumType is set to 'Other' this element needs to specify the checksum type used.
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ChecksumValue_TYPE" >
<xs:restriction base="xs:hexBinary">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ComponentID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Unique identifiers for a component in the Bit Repository
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CorrelationID_TYPE">
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FileID_TYPE">
<xs:annotation><xs:documentation xml:lang="en">
Unique identifiers for a file in given collection.
</xs:documentation></xs:annotation>
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PillarID_TYPE">
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="QueueTopicName_TYPE">
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="StatusCode">
<xs:annotation>
<xs:documentation xml:lang="en">
Status codes for the use with the GetStatus functionality.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="OK">
<xs:annotation>
<xs:documentation xml:lang="en">
Indication that everything is just fine.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="WARNING">
<xs:annotation>
<xs:documentation xml:lang="en">
Indication that the component is running and working, but there are some issues that may be a problem.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ERROR">
<xs:annotation>
<xs:documentation xml:lang="en">
Indication that the component is not working as it should, and action is needed.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ResponseCode">
<xs:annotation>
<xs:documentation xml:lang="en">
General error codes for response messages.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<!-- Response codes in identification response-->
<xs:enumeration value="IDENTIFICATION_POSITIVE">
<xs:annotation>
<xs:documentation xml:lang="en">
The indicated operation request can be serviced. This means that the replying component will be
able to respond successfully to any operation request (GetFile, PutFile, GetAuditTrails) for the
indicated data (usually a set of files).
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="IDENTIFICATION_NEGATIVE">
<xs:annotation>
<xs:documentation xml:lang="en">
The indicated operation request can not be serviced on the responding component.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<!-- Positive response codes in progress response-->
<xs:enumeration value="OPERATION_PROGRESS">
<xs:annotation>
<xs:documentation xml:lang="en">
The default type used in progress responses.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="OPERATION_ACCEPTED_PROGRESS">
<xs:annotation>
<xs:documentation xml:lang="en">
Request has been received and the pillar will start handling the request.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<!-- Positive response codes in final response-->
<xs:enumeration value="OPERATION_COMPLETED">
<xs:annotation>
<xs:documentation xml:lang="en">
Message request has been completed successfully.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<!-- Negative response codes. All negativ responses should be postfixed with '_FAILURE' to allow filtering
based on this. -->
<xs:enumeration value="FAILURE">
<xs:annotation>
<xs:documentation xml:lang="en">
The request could not be completed for unknown reason.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="DUPLICATE_FILE_FAILURE">
<xs:annotation>
<xs:documentation xml:lang="en">
Duplicate FileID in write request.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="FILE_NOT_FOUND_FAILURE">
<xs:annotation>
<xs:documentation xml:lang="en">
File with given FileID has NOT been found for a request.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="NEW_FILE_CHECKSUM_FAILURE">
<xs:annotation>
<xs:documentation xml:lang="en">
The supplied checksum didn't correspond to the checksum clculated for a newly received file. The is used
in putFile and replaceFile operations to indicated that the downloaded file did't match the expexted
checksum.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="EXISTING_FILE_CHECKSUM_FAILURE">
<xs:annotation>
<xs:documentation xml:lang="en">