You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This Service is an implementation of the Hydra::Derivatives::PeristOutputFileService
# It supports basic contained files, which is the behavior associated with Fedora 3 file datastreams that were migrated to Fedora 4
# and, at the time that this class was authored, corresponds to the behavior of ActiveFedora::Base.attach_file and ActiveFedora::Base.attached_files
### Rename this
class PersistBasicContainedOutputFileService < PersistOutputFileService
# This method conforms to the signature of the .call method on Hydra::Derivatives::PeristOutputFileService
# * Persists the file within the object at destination_name
#
# NOTE: Uses basic containment. If you want to use direct containment (ie. with PCDM) you must use a different service (ie. Hydra::Works::AddFileToGenericFile Service)
#
# @param [ActiveFedora::Base] object file is be persisted to
# @param [File] filestream to be added
# @param [String] destination_name path to file
# @option opts [String] mime_type mime type of derivative