Sha256: f6210d5faac5e8b99a4e22d785fc26cb4b872e37c049064de0ae9960fc3b8146

Contents?: true

Size: 967 Bytes

Versions: 28

Compression:

Stored size: 967 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  ##
  # @deprecated see Hyrax::GraphExporter::ListSourceExporter
  #
  # Retrieves the graph for an object with the internal triples removed
  # and the uris translated to external uris.
  class ListSourceExporter < GraphExporter::ListSourceExporter
    ##
    # @param [String] id
    # @param [ActionDispatch::Request] request the http request context
    # @param [String] parent_url
    # @param [String] hostname  the current http host
    def initialize(id, request, parent_url, hostname: nil)
      Deprecation.warn("#{subject.class} is deprecated and replaced with the (private) Hyrax::GraphExporter::")
      host = hostname || request.host
      super(id: id, parent_url: parent_url, hostname: host)
    end

    ##
    # @!attribute [r] request
    #   @deprecated use {#hostname} to access the host
    #   @return [ActionDispatch::Request]
    attr_reader :request
    deprecation_deprecate :request
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.4 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.3 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.2 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.1 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.0 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.0.rc3 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.0.rc2 app/services/hyrax/list_source_exporter.rb
hyrax-5.0.0.rc1 app/services/hyrax/list_source_exporter.rb
hyrax-3.6.0 app/services/hyrax/list_source_exporter.rb
hyrax-4.0.0 app/services/hyrax/list_source_exporter.rb
hyrax-4.0.0.rc3 app/services/hyrax/list_source_exporter.rb
hyrax-4.0.0.rc2 app/services/hyrax/list_source_exporter.rb
hyrax-4.0.0.rc1 app/services/hyrax/list_source_exporter.rb
hyrax-3.5.0 app/services/hyrax/list_source_exporter.rb
hyrax-4.0.0.beta2 app/services/hyrax/list_source_exporter.rb
hyrax-3.4.2 app/services/hyrax/list_source_exporter.rb
hyrax-4.0.0.beta1 app/services/hyrax/list_source_exporter.rb
hyrax-3.4.1 app/services/hyrax/list_source_exporter.rb
hyrax-3.4.0 app/services/hyrax/list_source_exporter.rb