Class: Hyrax::Transactions::CollectionDestroy

Inherits:
Transaction
  • Object
show all
Defined in:
lib/hyrax/transactions/collection_destroy.rb

Overview

Destroys a PcdmCollection

Since:

  • 3.4.0

Constant Summary collapse

DEFAULT_STEPS =

TODO: Add step that checks if collection is empty for collections of types that require it

Since:

  • 3.4.0

['collection_resource.delete_acl',
'collection_resource.remove_from_membership',
'collection_resource.delete'].freeze

Instance Attribute Summary

Attributes inherited from Transaction

#container, #steps

Instance Method Summary collapse

Methods inherited from Transaction

#call, #with_step_args

Constructor Details

#initialize(container: Container, steps: DEFAULT_STEPS) ⇒ CollectionDestroy

Returns a new instance of CollectionDestroy.

See Also:

Since:

  • 3.4.0



18
19
20
# File 'lib/hyrax/transactions/collection_destroy.rb', line 18

def initialize(container: Container, steps: DEFAULT_STEPS)
  super
end