Class: Sufia::ResourceSyncController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/sufia/resource_sync_controller.rb

Instance Method Summary collapse

Instance Method Details

#capability_listObject



10
11
12
13
14
15
16
# File 'app/controllers/sufia/resource_sync_controller.rb', line 10

def capability_list
  # Caching based on host, for multitenancy support
  body = Rails.cache.fetch("source_description_#{request.host}", expires_in: 1.week) do
    build_capability_list
  end
  render body: body, content_type: 'application/xml'
end

#resource_listObject



18
19
20
21
22
23
24
# File 'app/controllers/sufia/resource_sync_controller.rb', line 18

def resource_list
  # Caching based on host, for multitenancy support
  body = Rails.cache.fetch("source_description_#{request.host}", expires_in: 1.week) do
    build_resource_list
  end
  render body: body, content_type: 'application/xml'
end

#source_descriptionObject



2
3
4
5
6
7
8
# File 'app/controllers/sufia/resource_sync_controller.rb', line 2

def source_description
  # Caching based on host, for multitenancy support
  body = Rails.cache.fetch("source_description_#{request.host}", expires_in: 1.week) do
    build_source_description
  end
  render body: body, content_type: 'application/xml'
end