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


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

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)
end

#batch_success_messageObject


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

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