Class: Hyrax::CustomQueries::Navigators::ChildFilesetsNavigator Deprecated
- Inherits:
-
Object
- Object
- Hyrax::CustomQueries::Navigators::ChildFilesetsNavigator
- 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
- #query_service ⇒ Object readonly
Class Method Summary collapse
-
.queries ⇒ Object
Define the queries that can be fulfilled by this navigator.
Instance Method Summary collapse
- #find_child_fileset_ids(resource:) ⇒ Array<Valkyrie::ID> deprecated Deprecated.
- #find_child_filesets(resource:) ⇒ Array<Valkyrie::Resource> deprecated Deprecated.
-
#initialize(query_service:) ⇒ ChildFilesetsNavigator
constructor
A new instance of ChildFilesetsNavigator.
Constructor Details
#initialize(query_service:) ⇒ ChildFilesetsNavigator
Returns a new instance of ChildFilesetsNavigator.
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_service ⇒ Object (readonly)
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
.queries ⇒ Object
Define the queries that can be fulfilled by this navigator.
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
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
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 |