Package org.mycore.access.facts
Class MCRObjectCacheFactory
java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.access.facts.MCRObjectCacheFactory
- All Implemented Interfaces:
MCREventHandler
This implementation creates an object cache
for MyCoRe objects which are retrieved during the processing of the rules.
It is registered as event handler to listen for updated and deleted objects.
- Author:
- Robert Stephan
-
Method Summary
Modifier and TypeMethodDescriptiongetObject
(MCRObjectID oid) protected void
handleObjectDeleted
(MCREvent evt, MCRObject obj) Handles object deleted events.protected void
handleObjectRepaired
(MCREvent evt, MCRObject obj) Handles object repair events.protected void
handleObjectUpdated
(MCREvent evt, MCRObject obj) Handles object updated events.static MCRObjectCacheFactory
instance()
Methods inherited from class org.mycore.common.events.MCREventHandlerBase
doHandleEvent, doNothing, handleClassificationCreated, handleClassificationDeleted, handleClassificationRepaired, handleClassificationUpdated, handleDerivateCreated, handleDerivateDeleted, handleDerivateRepaired, handleDerivateUpdated, handleObjectCreated, handleObjectIndex, handlePathCreated, handlePathDeleted, handlePathRepaired, handlePathUpdated, undoClassificationCreated, undoClassificationDeleted, undoClassificationRepaired, undoClassificationUpdated, undoDerivateCreated, undoDerivateDeleted, undoDerivateRepaired, undoDerivateUpdated, undoHandleEvent, undoObjectCreated, undoObjectDeleted, undoObjectRepaired, undoObjectUpdated, undoPathCreated, undoPathDeleted, undoPathRepaired, undoPathUpdated, updateDerivateFileIndex, updatePathIndex
-
Method Details
-
instance
-
getObject
-
handleObjectDeleted
Description copied from class:MCREventHandlerBase
Handles object deleted events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleObjectDeleted
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleObjectRepaired
Description copied from class:MCREventHandlerBase
Handles object repair events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleObjectRepaired
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-
handleObjectUpdated
Description copied from class:MCREventHandlerBase
Handles object updated events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleObjectUpdated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRObject that caused the event
-