org.mycore.datamodel.common
Class MCRLinkTableEventHandler

java.lang.Object
  extended by org.mycore.common.events.MCREventHandlerBase
      extended by org.mycore.datamodel.common.MCRLinkTableEventHandler
All Implemented Interfaces:
MCREventHandler

public class MCRLinkTableEventHandler
extends MCREventHandlerBase

This class manages all operations of the LinkTables for operations of an object.

Author:
Jens Kupferschmidt

Field Summary
(package private) static MCRLinkTableManager mcr_linktable
           
 
Constructor Summary
MCRLinkTableEventHandler()
           
 
Method Summary
protected  void handleObjectCreated(MCREvent evt, MCRObject obj)
          This method add the data to the link and classification table via MCRLinkTableManager.
protected  void handleObjectDeleted(MCREvent evt, MCRObject obj)
          This method delete the data from the link and classification table via MCRLinkTableManager.
protected  void handleObjectRepaired(MCREvent evt, MCRObject obj)
          This method repair the data from the link and classification table via MCRLinkTableManager.
protected  void handleObjectUpdated(MCREvent evt, MCRObject obj)
          This method update the data to the link and classification table via MCRLinkTableManager.
 
Methods inherited from class org.mycore.common.events.MCREventHandlerBase
doHandleEvent, doNothing, handleClassificationCreated, handleClassificationDeleted, handleClassificationRepaired, handleClassificationUpdated, handleDerivateCreated, handleDerivateDeleted, handleDerivateRepaired, handleDerivateUpdated, handleFileCreated, handleFileDeleted, handleFileRepaired, handleFileUpdated, undoClassificationCreated, undoClassificationDeleted, undoClassificationRepaired, undoClassificationUpdated, undoDerivateCreated, undoDerivateDeleted, undoDerivateRepaired, undoDerivateUpdated, undoFileCreated, undoFileDeleted, undoFileRepaired, undoFileUpdated, undoHandleEvent, undoObjectCreated, undoObjectDeleted, undoObjectRepaired, undoObjectUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mcr_linktable

static MCRLinkTableManager mcr_linktable
Constructor Detail

MCRLinkTableEventHandler

public MCRLinkTableEventHandler()
Method Detail

handleObjectCreated

protected final void handleObjectCreated(MCREvent evt,
                                         MCRObject obj)
This method add the data to the link and classification table via MCRLinkTableManager.

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 the link and classification table via MCRLinkTableManager.

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 data from the link and classification table via MCRLinkTableManager.

Overrides:
handleObjectDeleted in class MCREventHandlerBase
Parameters:
evt - the event that occured
obj - the MCRObject that caused the event

handleObjectRepaired

protected final void handleObjectRepaired(MCREvent evt,
                                          MCRObject obj)
This method repair the data from the link and classification table via MCRLinkTableManager.

Overrides:
handleObjectRepaired in class MCREventHandlerBase
Parameters:
evt - the event that occured
obj - the MCRObject that caused the event