Sha256: d10b929fc95195f859672e21b52b2bb7c0d76e6fdb907234121adb21a595fcc9

Contents?: true

Size: 431 Bytes

Versions: 20

Compression:

Stored size: 431 Bytes

Contents

module Hydra::ContentNegotiation
  # Decorator for Finder which replaces Fedora subjects in the graph with a 
  # configured URI
  class ReplacingGraphFinder < SimpleDelegator
    def graph
      graph_replacer.run
    end

    private

    def graph_replacer
      ::Hydra::ContentNegotiation::FedoraUriReplacer.new(base_uri, __getobj__.graph)
    end

    def base_uri
      @base_uri ||= uri.gsub(/#{id}$/,'')
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
hydra-core-10.0.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-10.0.0.beta4 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-10.0.0.beta3 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-10.0.0.beta2 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-10.0.0.beta1 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.10.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.9.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.8.1 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.8.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.7.1 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.7.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.6.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.5.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.4.1 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.4.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.3.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.2.2 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.2.1 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.2.0 app/models/hydra/content_negotiation/replacing_graph_finder.rb
hydra-core-9.2.0.rc1 app/models/hydra/content_negotiation/replacing_graph_finder.rb