Package org.mycore.mods
Class MCRMODSEmbargoCronjob
java.lang.Object
java.util.TimerTask
org.mycore.mods.MCRMODSEmbargoCronjob
- All Implemented Interfaces:
Runnable
,MCRStartupHandler.AutoExecutable
This event handler updates the embargo dates in the Database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
returns a name to display on start-up.int
If order is important returns as 'heigher' priority.void
run()
void
startUp
(jakarta.servlet.ServletContext servletContext) This method get executed byMCRStartupHandler.startUp(ServletContext)
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
MCRMODSEmbargoCronjob
public MCRMODSEmbargoCronjob()
-
-
Method Details
-
getName
Description copied from interface:MCRStartupHandler.AutoExecutable
returns a name to display on start-up.- Specified by:
getName
in interfaceMCRStartupHandler.AutoExecutable
-
getPriority
public int getPriority()Description copied from interface:MCRStartupHandler.AutoExecutable
If order is important returns as 'heigher' priority.- Specified by:
getPriority
in interfaceMCRStartupHandler.AutoExecutable
-
startUp
public void startUp(jakarta.servlet.ServletContext servletContext) Description copied from interface:MCRStartupHandler.AutoExecutable
This method get executed byMCRStartupHandler.startUp(ServletContext)
- Specified by:
startUp
in interfaceMCRStartupHandler.AutoExecutable
-
run
public void run()
-