Class: BatchUploadItem
- Inherits:
-
ActiveFedora::Base
- Object
- ActiveFedora::Base
- BatchUploadItem
- 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
-
#payload_concern ⇒ Object
a Class name: what is this a batch of?.
Instance Method Summary collapse
- #create_or_update ⇒ Object
-
#in_collection_ids ⇒ Object
This mocks out the behavior of Hydra::PCDM::PcdmBehavior.
Methods included from Hyrax::WorkBehavior
Methods included from Hyrax::WithEvents
#event_class, #events, #log_event, #stream
Methods included from Hyrax::ProxyDeposit
Methods included from Hyrax::Suppressible
Methods included from Hyrax::NestedWorks
Methods included from Hyrax::Embargoable
#enforce_future_date_for_embargo?, #enforce_future_date_for_lease?
Methods included from Hyrax::Serializers
Methods included from Hyrax::Permissions::Readable
#private?, #public?, #registered?
Methods included from Hyrax::Permissions::Writable
Methods included from Hyrax::Noid
Methods included from Hyrax::HumanReadableType
#human_readable_type, #to_solr
Methods inherited from ActiveFedora::Base
Instance Attribute Details
#payload_concern ⇒ Object
a Class name: what is this a batch of?
11 12 13 |
# File 'app/models/batch_upload_item.rb', line 11 def payload_concern @payload_concern end |
Instance Method Details
#create_or_update ⇒ Object
18 19 20 |
# File 'app/models/batch_upload_item.rb', line 18 def create_or_update raise "This is a read only record" end |
#in_collection_ids ⇒ Object
This mocks out the behavior of Hydra::PCDM::PcdmBehavior
14 15 16 |
# File 'app/models/batch_upload_item.rb', line 14 def in_collection_ids [] end |