Sha256: 040af77b6fbdcc2df298222e0266cec408e70fc4ab0f8fab48e70af6ebddc491

Contents?: true

Size: 676 Bytes

Versions: 48

Compression:

Stored size: 676 Bytes

Contents

# 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

48 entries across 48 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/models/batch_upload_item.rb
hyrax-2.9.5 app/models/batch_upload_item.rb
hyrax-2.9.4 app/models/batch_upload_item.rb
hyrax-2.9.3 app/models/batch_upload_item.rb
hyrax-2.9.2 app/models/batch_upload_item.rb
hyrax-2.9.1 app/models/batch_upload_item.rb
hyrax-2.9.0 app/models/batch_upload_item.rb
hyrax-2.8.0 app/models/batch_upload_item.rb
hyrax-2.7.2 app/models/batch_upload_item.rb
hyrax-2.7.1 app/models/batch_upload_item.rb
hyrax-2.7.0 app/models/batch_upload_item.rb
hyrax-2.6.0 app/models/batch_upload_item.rb
hyrax-3.0.0.pre.rc1 app/models/batch_upload_item.rb
hyrax-3.0.0.pre.beta3 app/models/batch_upload_item.rb
hyrax-2.5.1 app/models/batch_upload_item.rb
hyrax-2.5.0 app/models/batch_upload_item.rb
hyrax-3.0.0.pre.beta2 app/models/batch_upload_item.rb
hyrax-2.4.1 app/models/batch_upload_item.rb
hyrax-3.0.0.pre.beta1 app/models/batch_upload_item.rb
hyrax-2.4.0 app/models/batch_upload_item.rb