Class MCRWorkEventHandler

java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.orcid.works.MCRWorkEventHandler
All Implemented Interfaces:
MCREventHandler

public class MCRWorkEventHandler extends MCREventHandlerBase
When a publication is created or updated locally in this application, collects all name identifiers from the MODS metadata, looks up login users that have one of these identifiers, e.g. ORCID iD, stored in their user attributes, checks if these users have an ORCID profile we know of and have authorized us to update their profile as trusted party, and then creates/updates the publication in the works section of that profile.
Author:
Frank Lützenkirchen
  • Constructor Details

    • MCRWorkEventHandler

      public MCRWorkEventHandler()
  • Method Details

    • handleObjectCreated

      protected void handleObjectCreated(MCREvent evt, MCRObject object)
      Description copied from class: MCREventHandlerBase
      Handles object created events. This implementation does nothing and should be overwritted by subclasses.
      Overrides:
      handleObjectCreated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      object - the MCRObject that caused the event
    • handleObjectUpdated

      protected void handleObjectUpdated(MCREvent evt, MCRObject object)
      Description copied from class: MCREventHandlerBase
      Handles object updated events. This implementation does nothing and should be overwritted by subclasses.
      Overrides:
      handleObjectUpdated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      object - the MCRObject that caused the event
    • publishToORCID

      protected void publishToORCID(MCRObjectID oid, MCRORCIDUser user)