Package org.ametys.web.alerts
Class AlertScheduler
java.lang.Object
java.util.TimerTask
org.ametys.cms.alerts.AlertScheduler
org.ametys.web.alerts.AlertScheduler
- All Implemented Interfaces:
Runnable
,Disposable
,Initializable
,Component
,Configurable
,Contextualizable
,LogEnabled
,Serviceable
Alerts scheduler: launches a cron which sends the alerts each night.
This scheduler is the same as the CMS' AlertScheduler, except it runs the web version of AlertEngine.
-
Field Summary
Fields inherited from class org.ametys.cms.alerts.AlertScheduler
_configuration, _context, _logger, _manager, _timer, ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
void
sendInstantAlerts
(List<String> contentIds, String message) Run the scheduler to send instant alerts on contentsMethods inherited from class org.ametys.cms.alerts.AlertScheduler
_getRequestURI, configure, contextualize, dispose, enableLogging, initialize, service
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
AlertScheduler
public AlertScheduler()
-
-
Method Details
-
run
- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classAlertScheduler
-
sendInstantAlerts
Description copied from class:AlertScheduler
Run the scheduler to send instant alerts on contents- Overrides:
sendInstantAlerts
in classAlertScheduler
- Parameters:
contentIds
- The ids of concerned contentsmessage
- the message to send to authorized users
-