Module: Hyrax::WorkBehavior

Extended by:
ActiveSupport::Concern
Includes:
GlobalID::Identification, Hydra::AccessControls::Embargoable, Hydra::WithDepositor, Hydra::Works::WorkBehavior, CollectionNesting, CoreMetadata, HasRendering, HasRepresentative, HumanReadableType, InAdminSet, Naming, NestedWorks, Noid, Permissions, ProxyDeposit, Serializers, Suppressible, WithEvents, WithFileSets, Hyrax::Works::Metadata, Solrizer::Common
Included in:
BatchUploadItem
Defined in:
app/models/concerns/hyrax/work_behavior.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from CollectionNesting

#find_children_of, #reindex_extent, #reindex_extent=, #update_index, #use_nested_reindexing?

Methods included from WithEvents

#event_class, #events, #log_event, #stream

Methods included from ProxyDeposit

#request_transfer_to

Methods included from Suppressible

#suppressed?, #to_sipity_entity

Methods included from NestedWorks

#in_works_ids

Methods included from InAdminSet

#active_workflow

Methods included from WithFileSets

#copy_visibility_to_files

Methods included from Serializers

#to_s

Methods included from Permissions::Readable

#private?, #public?, #registered?

Methods included from Permissions::Writable

#paranoid_permissions

Methods included from Noid

#assign_id

Methods included from HumanReadableType

#human_readable_type, #to_solr

Instance Method Details

#etagObject

TODO: This can be removed when we upgrade to ActiveFedora 12.0


34
35
36
37
# File 'app/models/concerns/hyrax/work_behavior.rb', line 34

def etag
  raise "Unable to produce an etag for a unsaved object" unless persisted?
  ldp_source.head.etag
end