Skip to content

File API Models

Add models for tracking of Files in Chronopolis

File

filename: String
size: Long
fixities: Set<Fixity>
bag: Long // bag id

FileCreate

filename: String
size: Long
fixity: String
fixityAlgorithm: FixityAlgorithm
bag: Long // ??? is this needed? wouldn't it be a part of the path? maybe nullable

FixityAlgorithm

enum: SHA_256

Update Fixity

algorithm: FixityAlgorithm
value: String
createdAt: ZonedDateTime

Update FixityCreate

algorithm: FixityAlgorithm
value: String

Although the Fixity and FixityCreate are the same, we will want validations and mutability (for spring compatibility) for FixityCreate so for now a separate class will be made.

Edited by Ghost User