Sha256: 6b4fc55a2dcf2a2769637773d01da4752bc064f95eab0a036a51aa8169c76ff6

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

# Responsible for copying the following attributes from the work to each file in the file_sets
#
# * visibility
# * lease
# * embargo
class VisibilityCopyJob < Hyrax::ApplicationJob
  # @api public
  # @param [Hyrax::WorkBehavior, Hyrax::Resource] work - a Work model,
  #   using ActiveFedora or Valkyrie
  def perform(work)
    Hyrax::VisibilityPropagator.for(source: work).propagate
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyrax-3.0.0.pre.rc1 app/jobs/visibility_copy_job.rb
hyrax-3.0.0.pre.beta3 app/jobs/visibility_copy_job.rb