Package org.mycore.wfc.mail
Class MCRMailEventHandler
java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.wfc.mail.MCRMailEventHandler
- All Implemented Interfaces:
MCREventHandler
Uses "e-mail-events.xsl" to transform derivate, object and files to emails.
See
MCRMailer
for email xml format.- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleClassificationCreated
(MCREvent evt, MCRCategory obj) Handles classification created events.protected void
handleClassificationDeleted
(MCREvent evt, MCRCategory obj) Handles classification deleted events.protected void
handleClassificationUpdated
(MCREvent evt, MCRCategory obj) Handles classification updated events.protected void
handleDerivateCreated
(MCREvent evt, MCRDerivate der) Handles derivate created events.protected void
handleDerivateDeleted
(MCREvent evt, MCRDerivate der) Handles derivate deleted events.protected void
handleDerivateUpdated
(MCREvent evt, MCRDerivate der) Handles derivate updated events.protected void
handleObjectCreated
(MCREvent evt, MCRObject obj) Handles object created events.protected void
handleObjectDeleted
(MCREvent evt, MCRObject obj) Handles object deleted events.protected void
handleObjectUpdated
(MCREvent evt, MCRObject obj) Handles object updated events.protected void
handlePathCreated
(MCREvent evt, Path file, BasicFileAttributes attrs) protected void
handlePathDeleted
(MCREvent evt, Path file, BasicFileAttributes attrs) protected void
handlePathUpdated
(MCREvent evt, Path file, BasicFileAttributes attrs) Methods inherited from class org.mycore.common.events.MCREventHandlerBase
doHandleEvent, doNothing, handleClassificationRepaired, handleDerivateRepaired, handleObjectIndex, handleObjectRepaired, handlePathRepaired, undoClassificationCreated, undoClassificationDeleted, undoClassificationRepaired, undoClassificationUpdated, undoDerivateCreated, undoDerivateDeleted, undoDerivateRepaired, undoDerivateUpdated, undoHandleEvent, undoObjectCreated, undoObjectDeleted, undoObjectRepaired, undoObjectUpdated, undoPathCreated, undoPathDeleted, undoPathRepaired, undoPathUpdated, updateDerivateFileIndex, updatePathIndex
-
Constructor Details
-
MCRMailEventHandler
public MCRMailEventHandler()
-
-
Method Details
-
handleClassificationCreated
Description copied from class:MCREventHandlerBase
Handles classification created events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleClassificationCreated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRClassification that caused the event
-
handleClassificationUpdated
Description copied from class:MCREventHandlerBase
Handles classification updated events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleClassificationUpdated
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRClassification that caused the event
-
handleClassificationDeleted
Description copied from class:MCREventHandlerBase
Handles classification deleted events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleClassificationDeleted
in classMCREventHandlerBase
- Parameters:
evt
- the event that occuredobj
- the MCRClassification that caused the event
-
handleObjectCreated
Description copied from class:MCREventHandlerBase
Handles object created events. This implementation does nothing and should be overwritted by subclasses.- Overrides:
handleObjectCreated
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
-
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
-
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
-
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
-
handlePathCreated
- Overrides:
handlePathCreated
in classMCREventHandlerBase
-
handlePathUpdated
- Overrides:
handlePathUpdated
in classMCREventHandlerBase
-
handlePathDeleted
- Overrides:
handlePathDeleted
in classMCREventHandlerBase
-