Class: Hyrax::Transactions::WorkCreate

Inherits:
Transaction show all
Defined in:
lib/hyrax/transactions/work_create.rb

Overview

Creates a Work from a ChangeSet

Since:

  • 3.0.0

Constant Summary collapse

DEFAULT_STEPS =

Since:

  • 3.0.0

['change_set.set_default_admin_set',
'change_set.ensure_admin_set',
'change_set.set_user_as_depositor',
'change_set.apply',
'work_resource.apply_permission_template',
'work_resource.save_acl',
'work_resource.add_file_sets',
'work_resource.change_depositor',
'work_resource.add_to_parent'].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) ⇒ WorkCreate

Returns a new instance of WorkCreate.

See Also:

Since:

  • 3.0.0



23
24
25
# File 'lib/hyrax/transactions/work_create.rb', line 23

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