Sha256: ca6503aea7d91bee9b72e72e79a24d84bd05b4512f41f8b20fb6b5b176d5394f

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 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 ::CurationConcerns::WorkBehavior
  include ::CurationConcerns::BasicMetadata
  include Sufia::WorkBehavior

  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

7 entries across 7 versions & 1 rubygems

Version Path
sufia-7.4.1 app/models/batch_upload_item.rb
sufia-7.4.0 app/models/batch_upload_item.rb
sufia-7.3.1 app/models/batch_upload_item.rb
sufia-7.3.0 app/models/batch_upload_item.rb
sufia-7.3.0.rc3 app/models/batch_upload_item.rb
sufia-7.3.0.rc2 app/models/batch_upload_item.rb
sufia-7.3.0.rc1 app/models/batch_upload_item.rb