Module: IiifPrint::Actors::CleanupFileSetsActorDecorator
- Defined in:
- app/actors/iiif_print/actors/cleanup_file_sets_actor_decorator.rb
Overview
Responsible for removing FileSets related to the given curation concern.
Instance Method Summary collapse
-
#destroy(env) ⇒ Boolean
True if destroy was successful.
Instance Method Details
#destroy(env) ⇒ Boolean
Returns true if destroy was successful.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/actors/iiif_print/actors/cleanup_file_sets_actor_decorator.rb', line 10 def destroy(env) file_sets = env.curation_concern.file_sets file_sets.each do |file_set| # we destroy the children before the file_set, because we need the parent relationship IiifPrint::SplitPdfs::DestroyPdfChildWorksService.conditionally_destroy_spawned_children_of( file_set: file_set, work: env.curation_concern ) end # and now back to your regularly scheduled programming super end |