Package org.mycore.datamodel.common
Class MCRLinkTableEventHandler
java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.datamodel.common.MCRLinkTableEventHandler
- All Implemented Interfaces:
MCREventHandler
This class manages all operations of the LinkTables for operations of an object.
- Author:
- Jens Kupferschmidt
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleDerivateCreated
(MCREvent evt, MCRDerivate der) Handles derivate created events.protected void
handleDerivateDeleted
(MCREvent evt, MCRDerivate der) Handles derivate deleted events.protected void
handleDerivateRepaired
(MCREvent evt, MCRDerivate der) Handles derivate repair events.protected void
handleDerivateUpdated
(MCREvent evt, MCRDerivate der) Handles derivate updated events.protected final void
handleObjectCreated
(MCREvent evt, MCRObject obj) This method add the data to the link and classification table via MCRLinkTableManager.protected final void
handleObjectDeleted
(MCREvent evt, MCRObject obj) This method delete the data from the link and classification table via MCRLinkTableManager.protected final void
handleObjectRepaired
(MCREvent evt, MCRObject obj) This method repair the data from the link and classification table via MCRLinkTableManager.protected final 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, handleObjectIndex, handlePathCreated, handlePathDeleted, handlePathRepaired, handlePathUpdated, undoClassificationCreated, undoClassificationDeleted, undoClassificationRepaired, undoClassificationUpdated, undoDerivateCreated, undoDerivateDeleted, undoDerivateRepaired, undoDerivateUpdated, undoHandleEvent, undoObjectCreated, undoObjectDeleted, undoObjectRepaired, undoObjectUpdated, undoPathCreated, undoPathDeleted, undoPathRepaired, undoPathUpdated, updateDerivateFileIndex, updatePathIndex
-
Constructor Details
-
MCRLinkTableEventHandler
public MCRLinkTableEventHandler()
-
-
Method Details
-
handleObjectCreated
This method add the data to the link and classification table via MCRLinkTableManager.- Overrides:
handleObjectCreated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleObjectUpdated
This method update the data to the link and classification table via MCRLinkTableManager.- Overrides:
handleObjectUpdated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleObjectDeleted
This method delete the data from the link and classification table via MCRLinkTableManager.- Overrides:
handleObjectDeleted
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleObjectRepaired
This method repair the data from the link and classification table via MCRLinkTableManager.- Overrides:
handleObjectRepaired
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleDerivateCreated
Description copied from class:MCREventHandlerBase
Handles derivate created events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleDerivateCreated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredder
- the MCRDerivate that caused the event
-
handleDerivateRepaired
Description copied from class:MCREventHandlerBase
Handles derivate repair events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleDerivateRepaired
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredder
- the MCRDerivate that caused the event
-
handleDerivateUpdated
Description copied from class:MCREventHandlerBase
Handles derivate updated events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleDerivateUpdated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredder
- the MCRDerivate that caused the event
-
handleDerivateDeleted
Description copied from class:MCREventHandlerBase
Handles derivate deleted events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleDerivateDeleted
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredder
- the MCRDerivate that caused the event
-