Class: CurationConcerns::WorkSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Includes:
FilterSuppressedWithRoles, SingleResult
Defined in:
app/search_builders/curation_concerns/work_search_builder.rb

Overview

Finds a single work result. It returns no result if you don’t have access to the requested work. If the work is suppressed (due to being in a workflow), then it checks to see if the current_user has any workflow role on the given work.

Method Summary

Methods included from FilterSuppressedWithRoles

#only_active_works

Methods included from FilterSuppressed

#only_active_works

Methods included from SingleResult

#find_one