Sha256: a23bfa43c9777a3bdc1870a705047d5f37a84b7189db254036c5fd7bacc8ee5a

Contents?: true

Size: 811 Bytes

Versions: 11

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true
require 'hyrax/transactions/transaction'

module Hyrax
  module Transactions
    ##
    # Creates a Work from a ChangeSet
    #
    # @since 3.0.0
    class WorkCreate < Transaction
      DEFAULT_STEPS = ['change_set.set_default_admin_set',
                       'change_set.ensure_admin_set',
                       'change_set.set_user_as_depositor',
                       'change_set.apply',
                       'work_resource.save_acl',
                       'work_resource.add_file_sets',
                       'work_resource.change_depositor',
                       'work_resource.add_to_parent'].freeze

      ##
      # @see Hyrax::Transactions::Transaction
      def initialize(container: Container, steps: DEFAULT_STEPS)
        super
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-3.6.0 lib/hyrax/transactions/work_create.rb
hyrax-4.0.0 lib/hyrax/transactions/work_create.rb
hyrax-4.0.0.rc3 lib/hyrax/transactions/work_create.rb
hyrax-4.0.0.rc2 lib/hyrax/transactions/work_create.rb
hyrax-4.0.0.rc1 lib/hyrax/transactions/work_create.rb
hyrax-3.5.0 lib/hyrax/transactions/work_create.rb
hyrax-4.0.0.beta2 lib/hyrax/transactions/work_create.rb
hyrax-3.4.2 lib/hyrax/transactions/work_create.rb
hyrax-4.0.0.beta1 lib/hyrax/transactions/work_create.rb
hyrax-3.4.1 lib/hyrax/transactions/work_create.rb
hyrax-3.4.0 lib/hyrax/transactions/work_create.rb