Class MCRXMLMetadataEventHandler

java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.datamodel.common.MCRXMLMetadataEventHandler
All Implemented Interfaces:
MCREventHandler

public class MCRXMLMetadataEventHandler extends MCREventHandlerBase
This class manages all operations of the XMLTables for operations of an object or derivate.
Author:
Jens Kupferschmidt
  • Constructor Details

    • MCRXMLMetadataEventHandler

      public MCRXMLMetadataEventHandler()
  • Method Details

    • handleObjectCreated

      protected final void handleObjectCreated(MCREvent evt, MCRObject obj)
      This method add the data to SQL table of XML data via MCRXMLMetadataManager.
      Overrides:
      handleObjectCreated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      obj - the MCRObject that caused the event
    • handleObjectUpdated

      protected final void handleObjectUpdated(MCREvent evt, MCRObject obj)
      This method update the data to SQL table of XML data via MCRXMLMetadataManager.
      Overrides:
      handleObjectUpdated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      obj - the MCRObject that caused the event
    • handleObjectDeleted

      protected final void handleObjectDeleted(MCREvent evt, MCRObject obj)
      This method delete the XML data from SQL table data via MCRXMLMetadataManager.
      Overrides:
      handleObjectDeleted 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
    • handleDerivateCreated

      protected final void handleDerivateCreated(MCREvent evt, MCRDerivate der)
      This method add the data to SQL table of XML data via MCRXMLMetadataManager.
      Overrides:
      handleDerivateCreated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      der - the MCRDerivate that caused the event
    • handleDerivateUpdated

      protected final void handleDerivateUpdated(MCREvent evt, MCRDerivate der)
      This method update the data to SQL table of XML data via MCRXMLMetadataManager.
      Overrides:
      handleDerivateUpdated in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      der - the MCRObject that caused the event
    • handleDerivateDeleted

      protected final void handleDerivateDeleted(MCREvent evt, MCRDerivate der)
      This method delete the XML data from SQL table data via MCRXMLMetadataManager.
      Overrides:
      handleDerivateDeleted in class MCREventHandlerBase
      Parameters:
      evt - the event that occured
      der - the MCRObject that caused the event