Class: Hyrax::Transactions::WorkCreate
- Inherits:
-
Transaction
- Object
- Transaction
- Hyrax::Transactions::WorkCreate
- Defined in:
- lib/hyrax/transactions/work_create.rb
Overview
Creates a Work from a ChangeSet
Constant Summary collapse
- DEFAULT_STEPS =
['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
Instance Method Summary collapse
-
#initialize(container: Container, steps: DEFAULT_STEPS) ⇒ WorkCreate
constructor
A new instance of WorkCreate.
Methods inherited from Transaction
Constructor Details
#initialize(container: Container, steps: DEFAULT_STEPS) ⇒ WorkCreate
Returns a new instance of WorkCreate.
23 24 25 |
# File 'lib/hyrax/transactions/work_create.rb', line 23 def initialize(container: Container, steps: DEFAULT_STEPS) super end |