Sha256: 37c40a78bd51cce6011aad61ca533c716b6f58b98191699a785dfe18735806ad

Contents?: true

Size: 579 Bytes

Versions: 66

Compression:

Stored size: 579 Bytes

Contents

# A generic job for sending events about repository objects to a user and their followers.
#
# @attr [String] repo_object the object event is specified for
#
class ContentEventJob < EventJob
  attr_reader :repo_object
  def perform(repo_object, depositor)
    @repo_object = repo_object
    super(depositor)
    log_event(repo_object)
  end

  # Log the event to the object's stream
  def log_event(repo_object)
    repo_object.log_event(event)
  end

  # log the event to the users profile stream
  def log_user_event(depositor)
    depositor.log_profile_event(event)
  end
end

Version data entries

66 entries across 66 versions & 3 rubygems

Version Path
sufia-7.3.0 app/jobs/content_event_job.rb
sufia-7.3.0.rc3 app/jobs/content_event_job.rb
sufia-7.3.0.rc2 app/jobs/content_event_job.rb
sufia-7.3.0.rc1 app/jobs/content_event_job.rb
test_hyrax-0.0.1.alpha app/jobs/content_event_job.rb
sufia-7.2.0 app/jobs/content_event_job.rb