class Moab::SignatureCatalogEntry
A file-level entry in a digital object’s {SignatureCatalog}. It has a child {FileSignature} element that identifies the file’s contents (the bytestream) along with data that specfies the SDR storage location that was used to preserve a single file instance.
Data Model¶ ↑
-
{SignatureCatalog} = lookup table containing a cumulative collection of all files ever ingested
-
{SignatureCatalogEntry} [1..*] = an row in the lookup table containing storage information about a single file
-
{FileSignature} [1] = file fixity information
-
-
@note Copyright © 2012 by The Board of Trustees of the Leland Stanford
Junior University.
All rights reserved. See {file:LICENSE.rdoc} for details.
Public Class Methods
new(opts = {})
click to toggle source
(see Serializable#initialize)
Calls superclass method
Serializer::Serializable::new
# File lib/moab/signature_catalog_entry.rb, line 22 def initialize(opts = {}) super(opts) end
Public Instance Methods
signature()
click to toggle source
# File lib/moab/signature_catalog_entry.rb, line 42 def signature # HappyMapper's parser tries to put an array of signatures in the signature field @signature.is_a?(Array) ? @signature[0] : @signature end
signature=(signature)
click to toggle source
# File lib/moab/signature_catalog_entry.rb, line 47 def signature=(signature) @signature = signature.is_a?(Array) ? signature[0] : signature end
storage_path()
click to toggle source
@api internal @return [String] Returns the storage path to a file, relative to the object storage home directory
# File lib/moab/signature_catalog_entry.rb, line 53 def storage_path File.join(StorageObject.version_dirname(version_id), 'data', group_id, path) end