Sha256: d6b0f054ab88a1fa3094c0becd021503d27c1c02908e6f7ef7e0b565dc4ea9f0

Contents?: true

Size: 979 Bytes

Versions: 21

Compression:

Stored size: 979 Bytes

Contents

module Ddr::Batch

  class BatchObjectDatastream < ActiveRecord::Base

    belongs_to :batch_object, :inverse_of => :batch_object_datastreams

    DATASTREAMS = [ Ddr::Datastreams::CONTENT,
                    Ddr::Datastreams::DESC_METADATA,
                    Ddr::Datastreams::RIGHTS_METADATA,
                    Ddr::Datastreams::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

21 entries across 21 versions & 1 rubygems

Version Path
ddr-batch-1.2.0 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.2.0.rc6 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.2.0.rc5 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.2.0.rc4 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.2.0.rc3 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.2.0.rc2 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.2.0.rc1 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.1.0 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.1.0.rc2 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.1.0.rc1 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-2.0.0.alpha.3 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.2 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.2.rc1 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-2.0.0.alpha.2 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-2.0.0.alpha.1 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.1 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.0 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.0.rc4 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.0.rc3 app/models/ddr/batch/batch_object_datastream.rb
ddr-batch-1.0.0.rc2 app/models/ddr/batch/batch_object_datastream.rb