Module: Hyrax::FileSetBehavior

Extended by:
ActiveSupport::Concern
Includes:
Hydra::AccessControls::Embargoable, Hydra::WithDepositor, Hydra::Works::FileSetBehavior, BasicMetadata, CoreMetadata, Hyrax::FileSet::BelongsToWorks, Hyrax::FileSet::Characterization, Hyrax::FileSet::Derivatives, Hyrax::FileSet::Indexing, Hyrax::FileSet::Querying, HumanReadableType, Naming, Noid, Permissions, Serializers, VirusCheck, WithEvents
Defined in:
app/models/concerns/hyrax/file_set_behavior.rb

Instance Method Summary collapse

Methods included from HumanReadableType

#human_readable_type, #to_solr

Methods included from Hyrax::FileSet::BelongsToWorks

#parent, #parents, #related_files

Methods included from Permissions::Readable

#private?, #public?, #registered?

Methods included from Permissions::Writable

#paranoid_permissions

Methods included from Noid

#assign_id

Methods included from Serializers

#to_s

Methods included from WithEvents

#event_class, #events, #log_event, #stream

Instance Method Details

#representative_idObject



28
29
30
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 28

def representative_id
  to_param
end

#thumbnail_idObject



32
33
34
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 32

def thumbnail_id
  to_param
end

#to_presenterObject

Cast to a SolrDocument by querying from Solr



37
38
39
40
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 37

def to_presenter
  Deprecation.warn "Method #to_presenter will be removed in Hyrax 5.0. Use Hyrax::FileSetsController#presenter.solr_document or `@presenter.solr_document` from a view instead."
  Blacklight::SearchService.new(config: CatalogController.blacklight_config).fetch(id).last
end