Class: ContentUpdateEventJob

Inherits:
ContentEventJob show all
Defined in:
app/jobs/content_update_event_job.rb

Overview

A specific job to log a file content update to a user’s activity stream

Instance Attribute Summary

Attributes inherited from ContentEventJob

#generic_file_id

Attributes inherited from EventJob

#depositor_id

Instance Method Summary collapse

Methods inherited from ContentEventJob

#generic_file, #initialize, #log_generic_file_event, #log_to_followers, #log_user_event, #run

Methods inherited from EventJob

#depositor, #event, #initialize, #log_to_followers, #log_user_event, #queue_name, #run

Methods included from Sufia::SufiaHelperBehavior

#current_search_parameters, #display_user_name, #error_messages_for, #has_collection_search_parameters?, #iconify_auto_link, #iconify_link, #is_url?, #link_back_to_dashboard, #link_to_dashboard_query, #link_to_facet, #link_to_facet_list, #link_to_field, #link_to_profile, #link_to_telephone, #linkify_chat_id, #number_of_deposits, #orcid_label, #render_visibility_label, #render_visibility_link, #search_form_action, #show_transfer_request_title, #sufia_thumbnail_tag, #user_display_name_and_key, #zotero_label, #zotero_profile_url

Methods included from Sufia::BlacklightOverride

#render_bookmarks_control?, #render_constraints_query, #url_for_document

Constructor Details

This class inherits a constructor from ContentEventJob

Instance Method Details

#actionObject



3
4
5
# File 'app/jobs/content_update_event_job.rb', line 3

def action
  @action ||= "User #{link_to_profile depositor_id} has updated #{link_to generic_file.title.first, Sufia::Engine.routes.url_helpers.generic_file_path(generic_file)}"
end