Class MCRExtractRelatedItemsEventHandler

java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.mods.MCRExtractRelatedItemsEventHandler
All Implemented Interfaces:
MCREventHandler

public class MCRExtractRelatedItemsEventHandler extends MCREventHandlerBase
Extracts occurences of mods:relatedItem and stores them as separate MCRObjects. For mods:relatedItem/@type='host', sets the extracted object as parent. Always, sets @xlink:href of mods:relatedItem to the extracted object's ID.
Author:
Frank Lützenkirchen
  • Constructor Details

    • MCRExtractRelatedItemsEventHandler

      public MCRExtractRelatedItemsEventHandler()
  • Method Details

    • handleObjectCreated

      protected void handleObjectCreated(MCREvent evt, MCRObject obj)
      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
      obj - the MCRObject that caused the event
    • handleObjectUpdated

      protected void handleObjectUpdated(MCREvent evt, MCRObject obj)
      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
      obj - the MCRObject that caused the event
    • handleObjectRepaired

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