Class MCRClassificationMappingEventHandler

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

public class MCRClassificationMappingEventHandler extends MCREventHandlerBase
Maps classifications in Mods-Documents.

You can define a label x-mapping in a classification with space seperated categoryIds to which the classification will be mapped.

<category ID="article" counter="1">
 <label xml:lang="en" text="Article / Chapter" />
 <label xml:lang="de" text="Artikel / Aufsatz" />
 <label xml:lang="x-mapping" text="diniPublType:article" />
</category>
Author:
Sebastian Hofmann (mcrshofm)
  • Field Details

  • Constructor Details

    • MCRClassificationMappingEventHandler

      public MCRClassificationMappingEventHandler()
  • 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