Class: Hyrax::Transactions::CollectionCreate

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

Overview

Creates a Collection from a ChangeSet

Since:

  • 3.2.0

Constant Summary collapse

DEFAULT_STEPS =

Since:

  • 3.2.0

['change_set.set_user_as_depositor',
'change_set.set_collection_type_gid',
'change_set.add_to_collections',
'change_set.apply',
'collection_resource.apply_collection_type_permissions',
'collection_resource.save_acl'].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) ⇒ CollectionCreate

Returns a new instance of CollectionCreate.

See Also:

Since:

  • 3.2.0



20
21
22
# File 'lib/hyrax/transactions/collection_create.rb', line 20

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