Package org.mycore.orcid.works
Class MCRWorkEventHandler
java.lang.Object
org.mycore.common.events.MCREventHandlerBase
org.mycore.orcid.works.MCRWorkEventHandler
- All Implemented Interfaces:
MCREventHandler
When a publication is created or updated locally in this application,
collects all name identifiers from the MODS metadata,
looks up login users that have one of these identifiers, e.g. ORCID iD,
stored in their user attributes,
checks if these users have an ORCID profile we know of
and have authorized us to update their profile as trusted party,
and then creates/updates the publication in the works section of that profile.
- Author:
- Frank Lützenkirchen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleObjectCreated
(MCREvent evt, MCRObject object) Handles object created events.protected void
handleObjectUpdated
(MCREvent evt, MCRObject object) Handles object updated events.protected void
publishToORCID
(MCRObjectID oid, MCRORCIDUser user) Methods inherited from class org.mycore.common.events.MCREventHandlerBase
doHandleEvent, doNothing, handleClassificationCreated, handleClassificationDeleted, handleClassificationRepaired, handleClassificationUpdated, handleDerivateCreated, handleDerivateDeleted, handleDerivateRepaired, handleDerivateUpdated, handleObjectDeleted, handleObjectIndex, handleObjectRepaired, 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
-
MCRWorkEventHandler
public MCRWorkEventHandler()
-
-
Method Details
-
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 occuredobject
- 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 occuredobject
- the MCRObject that caused the event
-
publishToORCID
-