Class: Hyrax::CustomQueries::Navigators::ChildFilesetsNavigator Deprecated

Inherits:
Object
  • Object
show all
Defined in:
app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb

Overview

Deprecated.

use Hyrax::CustomQueries::Navigators::ChildFileSetsNavigator instead

Navigate from a resource to the child filesets in the resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query_service:) ⇒ ChildFilesetsNavigator

Returns a new instance of ChildFilesetsNavigator.

Since:

  • 3.0.0



20
21
22
# File 'app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb', line 20

def initialize(query_service:)
  @query_service = query_service
end

Instance Attribute Details

#query_serviceObject (readonly)

Since:

  • 3.0.0



18
19
20
# File 'app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb', line 18

def query_service
  @query_service
end

Class Method Details

.queriesObject

Define the queries that can be fulfilled by this navigator.

Since:

  • 3.0.0



14
15
16
# File 'app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb', line 14

def self.queries
  [:find_child_filesets, :find_child_fileset_ids]
end

Instance Method Details

#find_child_fileset_ids(resource:) ⇒ Array<Valkyrie::ID>

Deprecated.

Find the ids of child filesets of a given resource, and map to Valkyrie Resources IDs

Parameters:

  • resource (Valkyrie::Resource)

Returns:

  • (Array<Valkyrie::ID>)

Since:

  • 3.0.0



43
44
45
46
# File 'app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb', line 43

def find_child_fileset_ids(resource:)
  Deprecation.warn("Custom query find_child_fileset_ids is deprecated; use find_child_file_set_ids instead.")
  Hyrax.custom_queries.find_child_file_set_ids(resource: resource)
end

#find_child_filesets(resource:) ⇒ Array<Valkyrie::Resource>

Deprecated.

Find child filesets of a given resource, and map to Valkyrie Resources

Parameters:

  • resource (Valkyrie::Resource)

Returns:

  • (Array<Valkyrie::Resource>)

Since:

  • 3.0.0



31
32
33
34
# File 'app/services/hyrax/custom_queries/navigators/child_filesets_navigator.rb', line 31

def find_child_filesets(resource:)
  Deprecation.warn("Custom query find_child_filesets is deprecated; use find_child_file_sets instead.")
  Hyrax.custom_queries.find_child_file_sets(resource: resource)
end