Class: BatchUploadItem

Inherits:
ActiveFedora::Base
  • Object
show all
Includes:
Hyrax::BasicMetadata, Hyrax::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 Hyrax::WorkBehavior

#etag

Methods included from Hyrax::WithEvents

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

Methods included from Hyrax::Works::Featured

#check_featureability, #cleanup_featured_works, #featured?

Methods included from Hyrax::Works::Trophies

#cleanup_trophies

Methods included from Hyrax::ProxyDeposit

#create_transfer_request, #request_transfer_to

Methods included from Hyrax::Suppressible

#suppressed?, #to_sipity_entity

Methods included from Hyrax::NestedWorks

#in_works_ids

Methods included from Hyrax::InAdminSet

#active_workflow

Methods included from Hyrax::WithFileSets

#cleanup_file_sets, #copy_visibility_to_files, #file_set_ids

Methods included from Hyrax::Serializers

#to_s

Methods included from Hyrax::Permissions::Readable

#private?, #public?, #registered?

Methods included from Hyrax::Permissions::Writable

#paranoid_permissions

Methods included from Hyrax::Noid

#assign_id, #to_param

Methods included from Hyrax::HumanReadableType

#human_readable_type, #to_solr

Instance Attribute Details

#payload_concernObject

a Class name: what is this a batch of?



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

def payload_concern
  @payload_concern
end

Instance Method Details

#create_or_updateObject



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

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

#in_collection_idsObject

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



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

def in_collection_ids
  []
end