Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
#%L
Bitmagasin protokol

$Id$
$HeadURL$
%%
Copyright (C) 2010 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%
-->

<bro:GetFileInfosResults version="31" minVersion="31" xmlns:bro='http://bitrepository.org/BitRepositoryData.xsd'
xmlns="http://bitrepository.org/BitRepositoryElements.xsd">
<CollectionID>MySla</CollectionID>
<PillarID>MyPillar</PillarID>
<FileInfosDataItem>
<FileID>MyFile1</FileID>
<FileSize>1</FileSize>
<LastModificationTime>2019-05-20T11:11:11.111+02:00</LastModificationTime>
<ChecksumValue>ABCDABCD</ChecksumValue>
<CalculationTimestamp>2019-05-20T11:11:11.111+02:00</CalculationTimestamp>
</FileInfosDataItem>
<FileInfosDataItem>
<FileID>MyFile2</FileID>
<FileSize>2</FileSize>
<LastModificationTime>1970-01-01T01:00:00.000+00:00</LastModificationTime>
<ChecksumValue>1234567890ABCDEF</ChecksumValue>
<CalculationTimestamp>1970-01-01T01:00:00.000+00:00</CalculationTimestamp>
</FileInfosDataItem>
</bro:GetFileInfosResults>
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
Bitmagasin protokol

$Id$
$HeadURL$
%%
Copyright (C) 2010 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%
-->

<bro:GetFileInfosFinalResponse version="29" minVersion="24"
xmlns:bro='http://bitrepository.org/BitRepositoryMessages.xsd'
xmlns="http://bitrepository.org/BitRepositoryElements.xsd">
<CorrelationID>12345</CorrelationID>
<CollectionID>MySla</CollectionID>
<Destination>topic://clientTopic</Destination>
<ReplyTo>queue://pillarQueue</ReplyTo>
<From>MyPillar</From>
<ResponseInfo>
<ResponseCode>OPERATION_COMPLETED</ResponseCode>
<ResponseText>successfull completion</ResponseText>
</ResponseInfo>
<PillarID>MyPillar</PillarID>
<FileIDs>
<FileID>MyDataID1</FileID>
</FileIDs>
<ChecksumRequestForExistingFile>
<ChecksumType>HMAC_SHA384</ChecksumType>
<ChecksumSalt>5A17</ChecksumSalt>
</ChecksumRequestForExistingFile>
<ResultingFileInfos>
<FileInfosDataItem>
<FileID>MyDataID1</FileID>
<FileSize>1</FileSize>
<LastModificationTime>2019-05-20T11:11:11.111+02:00</LastModificationTime>
<ChecksumValue>ABCDABCD</ChecksumValue>
<CalculationTimestamp>2019-05-20T11:11:11.111+02:00</CalculationTimestamp>
</FileInfosDataItem>
</ResultingFileInfos>
</bro:GetFileInfosFinalResponse>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
#%L
Bitmagasin protokol

$Id$
$HeadURL$
%%
Copyright (C) 2010 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%
-->

<bro:GetFileInfosProgressResponse version="31" minVersion="31"
xmlns:bro='http://bitrepository.org/BitRepositoryMessages.xsd'
xmlns="http://bitrepository.org/BitRepositoryElements.xsd">
<CorrelationID>12345</CorrelationID>
<CollectionID>MySla</CollectionID>
<Destination>topic://clientTopic</Destination>
<ReplyTo>queue://pillarQueue</ReplyTo>
<From>MyPillar</From>
<ResponseInfo>
<ResponseCode>OPERATION_ACCEPTED_PROGRESS</ResponseCode>
<ResponseText>Message request has been received and is expected to be met successfully</ResponseText>
</ResponseInfo>
<PillarID>MyPillar</PillarID>
<FileIDs>
<FileID>MyDataID1</FileID>
</FileIDs>
<ChecksumRequestForExistingFile>
<ChecksumType>HMAC_SHA384</ChecksumType>
<ChecksumSalt>5A17</ChecksumSalt>
</ChecksumRequestForExistingFile>
<ResultAddress>http://myServer/myPlace/Myfile</ResultAddress>
</bro:GetFileInfosProgressResponse>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
#%L
Bitmagasin protokol

$Id$
$HeadURL$
%%
Copyright (C) 2010 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%
-->

<bro:GetFileInfosRequest version="31" minVersion="31"
xmlns:bro='http://bitrepository.org/BitRepositoryMessages.xsd'
xmlns="http://bitrepository.org/BitRepositoryElements.xsd">
<CorrelationID>12345</CorrelationID>
<CollectionID>MySla</CollectionID>
<Destination>queue://pillarQueue</Destination>
<ReplyTo>topic://clientTopic</ReplyTo>
<From>ClientPillar</From>
<AuditTrailInformation>User: Name, Institution: Place</AuditTrailInformation>
<PillarID>MyPillar</PillarID>
<FileIDs>
<FileID>MyDataID1</FileID>
</FileIDs>
<ChecksumRequestForExistingFile>
<ChecksumType>HMAC_SHA384</ChecksumType>
<ChecksumSalt>5A17</ChecksumSalt>
</ChecksumRequestForExistingFile>
<GetFileSize>true</GetFileSize>
<MinFileTimestamp>1970-01-01T01:00:00.000+00:00</MinFileTimestamp>
<MaxFileTimestamp>2019-05-20T11:37:00.000+02:00</MaxFileTimestamp>
<MinChecksumTimestamp>1970-01-01T01:00:00.000+00:00</MinChecksumTimestamp>
<MaxChecksumTimestamp>2019-05-20T11:37:00.000+02:00</MaxChecksumTimestamp>
<MaxNumberOfResults>1</MaxNumberOfResults>
<ResultAddress>http://myServer/myPlace/Myfile</ResultAddress>
</bro:GetFileInfosRequest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
#%L
Bitmagasin protokol

$Id$
$HeadURL$
%%
Copyright (C) 2010 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%
-->

<bro:IdentifyPillarsForGetFileInfosRequest version="31" minVersion="31"
xmlns:bro='http://bitrepository.org/BitRepositoryMessages.xsd'
xmlns="http://bitrepository.org/BitRepositoryElements.xsd">
<CorrelationID>12345</CorrelationID>
<CollectionID>MySla</CollectionID>
<Destination>topic://collectionTopic</Destination>
<ReplyTo>topic://clientTopic</ReplyTo>
<From>ClientPillar</From>
<AuditTrailInformation>User: Name, Institution: Place</AuditTrailInformation>
<FileIDs>
<FileID>MyDataID1</FileID>
</FileIDs>
<ChecksumRequestForExistingFile>
<ChecksumType>HMAC_SHA384</ChecksumType>
<ChecksumSalt>5A17</ChecksumSalt>
</ChecksumRequestForExistingFile>
</bro:IdentifyPillarsForGetFileInfosRequest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#%L
Bitmagasin protokol

$Id$
$HeadURL$
%%
Copyright (C) 2010 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%
-->

<bro:IdentifyPillarsForGetFileInfosResponse
version="31" minVersion="31" xmlns:bro='http://bitrepository.org/BitRepositoryMessages.xsd'
xmlns="http://bitrepository.org/BitRepositoryElements.xsd">
<CorrelationID>12345</CorrelationID>
<CollectionID>MySla</CollectionID>
<Destination>topic://collectionTopic</Destination>
<ReplyTo>topic://clientTopic</ReplyTo>
<From>MyPillar</From>
<ResponseInfo>
<ResponseCode>IDENTIFICATION_POSITIVE</ResponseCode>
<ResponseText>Ready to deliver fileIDS.</ResponseText>
</ResponseInfo>
<PillarID>MyPillar</PillarID>
<ChecksumRequestForExistingFile>
<ChecksumType>HMAC_SHA384</ChecksumType>
<ChecksumSalt>5A17</ChecksumSalt>
</ChecksumRequestForExistingFile>
<PillarChecksumSpec>
<ChecksumType>HMAC_SHA384</ChecksumType>
<ChecksumSalt>5A17</ChecksumSalt>
</PillarChecksumSpec>
<FileIDs>
<FileID>MyDataID1</FileID>
</FileIDs>
<TimeToDeliver>
<TimeMeasureUnit>MILLISECONDS</TimeMeasureUnit>
<TimeMeasureValue>1000</TimeMeasureValue>
</TimeToDeliver>
</bro:IdentifyPillarsForGetFileInfosResponse>
32 changes: 32 additions & 0 deletions message-xml-xsd/src/main/resources/xsd/BitRepositoryData.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,38 @@
</xs:complexType>
</xs:element>

<!-- ***************************** -->
<!-- * Results for GetFileInfos * -->
<!-- ***************************** -->

<xs:element name="GetFileInfosResults">
<xs:annotation><xs:documentation xml:lang="en">
Data format for delivery of checksums as result of GetFileInfos
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="bre:CollectionID" >
<xs:annotation><xs:documentation xml:lang="en">
A unique identifier for bit repository collection which data belongs to.
</xs:documentation></xs:annotation>
</xs:element>

<xs:element ref="bre:PillarID" minOccurs="0" maxOccurs="1" >
<xs:annotation><xs:documentation xml:lang="en">
Identifier of pillar, that created the result
</xs:documentation></xs:annotation>
</xs:element>

<xs:element ref="bre:FileInfosDataItem" minOccurs="0" maxOccurs="unbounded">
<xs:annotation><xs:documentation xml:lang="en">
List of data for file infos
</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="bre:VersionAttributes"/>
</xs:complexType>
</xs:element>

<!-- ***************************** -->
<!-- * Results for GetFileIDs * -->
<!-- ***************************** -->
Expand Down
Loading