Sha256: a2d95c29180895cb83ea7259e34d76912278b59cdf616fe8d95697c0c08f89ba
Contents?: true
Size: 931 Bytes
Versions: 6
Compression:
Stored size: 931 Bytes
Contents
module Ddr::Batch class BatchObjectDatastream < ActiveRecord::Base belongs_to :batch_object, :inverse_of => :batch_object_datastreams DATASTREAMS = [ Ddr::Models::File::CONTENT, Ddr::Models::Metadata::DESC_METADATA, Ddr::Models::File::STRUCT_METADATA ] OPERATION_ADD = "ADD" # add this datastream to the object -- considered an error if datastream already exists OPERATION_ADDUPDATE = "ADDUPDATE" # add this datastream to or update this datastream in the object OPERATION_UPDATE = "UPDATE" # update this datastream in the object -- considered an error if datastream does not already exist OPERATION_DELETE = "DELETE" # delete this datastream from the object -- considered an error if datastream does not exist PAYLOAD_TYPE_BYTES = "BYTES" PAYLOAD_TYPE_FILENAME = "FILENAME" PAYLOAD_TYPES = [ PAYLOAD_TYPE_BYTES, PAYLOAD_TYPE_FILENAME ] end end
Version data entries
6 entries across 6 versions & 1 rubygems