Class: Hyrax::BatchCreateOperation

Inherits:
Operation
  • Object
show all
Defined in:
app/models/hyrax/batch_create_operation.rb

Constant Summary

Constants inherited from Operation

Operation::FAILURE, Operation::PENDING, Operation::PERFORMING, Operation::SUCCESS

Instance Method Summary collapse

Methods inherited from Operation

#fail!, #pending_job, #performing!, #rollup_messages, #rollup_status, #success!

Instance Method Details

#batch_failure_messageObject



12
13
14
15
# File 'app/models/hyrax/batch_create_operation.rb', line 12

def batch_failure_message
  return unless Hyrax.config.callback.set?(:after_batch_create_failure)
  Hyrax.config.callback.run(:after_batch_create_failure, user, rollup_messages, warn: false)
end

#batch_success_messageObject



7
8
9
10
# File 'app/models/hyrax/batch_create_operation.rb', line 7

def batch_success_message
  return unless Hyrax.config.callback.set?(:after_batch_create_success)
  Hyrax.config.callback.run(:after_batch_create_success, user, warn: false)
end