Sha256: dacafac333928c3936a19077b047708f869d0db949be178e7e4e1ef034c47fda

Contents?: true

Size: 1.63 KB

Versions: 16

Compression:

Stored size: 1.63 KB

Contents

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

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

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

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

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

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

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

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

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

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 config/initializers/curation_concern_events.rb
sufia-7.4.0 config/initializers/curation_concern_events.rb
sufia-7.3.1 config/initializers/curation_concern_events.rb
sufia-7.3.0 config/initializers/curation_concern_events.rb
sufia-7.3.0.rc3 config/initializers/curation_concern_events.rb
sufia-7.3.0.rc2 config/initializers/curation_concern_events.rb
sufia-7.3.0.rc1 config/initializers/curation_concern_events.rb
sufia-7.2.0 config/initializers/curation_concern_events.rb
sufia-7.1.0 config/initializers/curation_concern_events.rb
sufia-7.0.0 config/initializers/curation_concern_events.rb
sufia-7.0.0.rc2 config/initializers/curation_concern_events.rb
sufia-7.0.0.rc1 config/initializers/curation_concern_events.rb
sufia-7.0.0.beta4 config/initializers/curation_concern_events.rb
sufia-7.0.0.beta3 config/initializers/curation_concern_events.rb
sufia-7.0.0.beta2 config/initializers/curation_concern_events.rb
sufia-7.0.0.beta1 config/initializers/curation_concern_events.rb