Sha256: 74417e9d964277ae706a9d101ff546f25ec6c4e750d139582fb5b6d8902e1b08

Contents?: true

Size: 706 Bytes

Versions: 29

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true
# This stands in for an object to be created from the BatchUploadForm.
# It should never actually be persisted in the repository.
# The properties on this form should be copied to a real work type.
class BatchUploadItem < ActiveFedora::Base
  include Hyrax::WorkBehavior
  # This must come after the WorkBehavior because it finalizes the metadata
  # schema (by adding accepts_nested_attributes)
  include ::Hyrax::BasicMetadata

  attr_accessor :payload_concern # a Class name: what is this a batch of?

  # This mocks out the behavior of Hydra::PCDM::PcdmBehavior
  def in_collection_ids
    []
  end

  def create_or_update
    raise "This is a read only record"
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/models/batch_upload_item.rb
hyrax-5.0.4 app/models/batch_upload_item.rb
hyrax-5.0.3 app/models/batch_upload_item.rb
hyrax-5.0.2 app/models/batch_upload_item.rb
hyrax-5.0.1 app/models/batch_upload_item.rb
hyrax-5.0.0 app/models/batch_upload_item.rb
hyrax-5.0.0.rc3 app/models/batch_upload_item.rb
hyrax-5.0.0.rc2 app/models/batch_upload_item.rb
hyrax-5.0.0.rc1 app/models/batch_upload_item.rb
hyrax-3.6.0 app/models/batch_upload_item.rb
hyrax-4.0.0 app/models/batch_upload_item.rb
hyrax-4.0.0.rc3 app/models/batch_upload_item.rb
hyrax-4.0.0.rc2 app/models/batch_upload_item.rb
hyrax-4.0.0.rc1 app/models/batch_upload_item.rb
hyrax-3.5.0 app/models/batch_upload_item.rb
hyrax-4.0.0.beta2 app/models/batch_upload_item.rb
hyrax-3.4.2 app/models/batch_upload_item.rb
hyrax-4.0.0.beta1 app/models/batch_upload_item.rb
hyrax-3.4.1 app/models/batch_upload_item.rb
hyrax-3.4.0 app/models/batch_upload_item.rb