Class: BatchUploadItem

Inherits:
ActiveFedora::Base
  • Object
show all
Includes:
CurationConcerns::BasicMetadata, CurationConcerns::WorkBehavior, Sufia::WorkBehavior
Defined in:
app/models/batch_upload_item.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Sufia::WithEvents

#event_class, #event_store, #events, #log_event, #stream

Methods included from Sufia::Works::Featured

#check_featureability, #cleanup_featured_works, #featured?

Methods included from Sufia::Works::Trophies

#cleanup_trophies

Methods included from Sufia::ProxyDeposit

#create_transfer_request, #request_transfer_to

Instance Attribute Details

#payload_concernObject

a Class name: what is this a batch of?



9
10
11
# File 'app/models/batch_upload_item.rb', line 9

def payload_concern
  @payload_concern
end

Instance Method Details

#create_or_updateObject



16
17
18
# File 'app/models/batch_upload_item.rb', line 16

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

#in_collection_idsObject

This mocks out the behavior of Hydra::PCDM::PcdmBehavior



12
13
14
# File 'app/models/batch_upload_item.rb', line 12

def in_collection_ids
  []
end