Class: Hyrax::Transactions::CollectionDestroy
- Inherits:
-
Transaction
- Object
- Transaction
- Hyrax::Transactions::CollectionDestroy
- Defined in:
- lib/hyrax/transactions/collection_destroy.rb
Overview
Destroys a PcdmCollection
Constant Summary collapse
- DEFAULT_STEPS =
TODO: Add step that checks if collection is empty for collections of types that require it
['collection_resource.delete_acl', 'collection_resource.remove_from_membership', 'collection_resource.delete'].freeze
Instance Attribute Summary
Attributes inherited from Transaction
Instance Method Summary collapse
-
#initialize(container: Container, steps: DEFAULT_STEPS) ⇒ CollectionDestroy
constructor
A new instance of CollectionDestroy.
Methods inherited from Transaction
Constructor Details
#initialize(container: Container, steps: DEFAULT_STEPS) ⇒ CollectionDestroy
Returns a new instance of CollectionDestroy.
18 19 20 |
# File 'lib/hyrax/transactions/collection_destroy.rb', line 18 def initialize(container: Container, steps: DEFAULT_STEPS) super end |