Sha256: e40e19acf330c8b3a69fb0d7047fa1150be4dd2bbe12240056680786de188567

Contents?: true

Size: 1.5 KB

Versions: 10

Compression:

Stored size: 1.5 KB

Contents

# These events are triggered by actions within Hyrax Actors
Hyrax.config.callback.set(:after_create_concern) do |curation_concern, user|
  ContentDepositEventJob.perform_later(curation_concern, user)
end

Hyrax.config.callback.set(:after_create_fileset) do |file_set, user|
  FileSetAttachedEventJob.perform_later(file_set, user)
end

Hyrax.config.callback.set(:after_revert_content) do |file_set, user, revision|
  ContentRestoredVersionEventJob.perform_later(file_set, user, revision)
end

Hyrax.config.callback.set(:after_update_content) do |file_set, user|
  ContentNewVersionEventJob.perform_later(file_set, user)
end

Hyrax.config.callback.set(:after_update_metadata) do |curation_concern, user|
  ContentUpdateEventJob.perform_later(curation_concern, user)
end

Hyrax.config.callback.set(:after_destroy) do |id, user|
  ContentDeleteEventJob.perform_later(id, user)
end

Hyrax.config.callback.set(:after_audit_failure) do |file_set, user, log_date|
  Hyrax::AuditFailureService.new(file_set, user, log_date).call
end

Hyrax.config.callback.set(:after_batch_create_success) do |user|
  Hyrax::BatchCreateSuccessService.new(user).call
end

Hyrax.config.callback.set(:after_batch_create_failure) do |user|
  Hyrax::BatchCreateFailureService.new(user).call
end

Hyrax.config.callback.set(:after_import_url_success) do |file_set, user|
  Hyrax::ImportUrlSuccessService.new(file_set, user).call
end

Hyrax.config.callback.set(:after_import_url_failure) do |file_set, user|
  Hyrax::ImportUrlFailureService.new(file_set, user).call
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 config/initializers/hyrax_callbacks.rb
hyrax-1.1.0 config/initializers/hyrax_callbacks.rb
hyrax-1.0.5 config/initializers/hyrax_callbacks.rb
hyrax-1.0.4 config/initializers/hyrax_callbacks.rb
hyrax-1.0.3 config/initializers/hyrax_callbacks.rb
hyrax-1.0.2 config/initializers/hyrax_callbacks.rb
hyrax-1.0.1 config/initializers/hyrax_callbacks.rb
hyrax-1.0.0.rc2 config/initializers/hyrax_callbacks.rb
hyrax-1.0.0.rc1 config/initializers/hyrax_callbacks.rb
test_hyrax-0.0.1.alpha config/initializers/hyrax_callbacks.rb