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
public class AlertScheduler extends AlertScheduler
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 Constructor Description AlertScheduler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidsendInstantAlerts(List<String> contentIds, String message)Run the scheduler to send instant alerts on contents-
Methods 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 Detail
-
AlertScheduler
public AlertScheduler()
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceRunnable- Overrides:
runin classAlertScheduler
-
sendInstantAlerts
public void sendInstantAlerts(List<String> contentIds, String message)
Description copied from class:AlertSchedulerRun the scheduler to send instant alerts on contents- Overrides:
sendInstantAlertsin classAlertScheduler- Parameters:
contentIds- The ids of concerned contentsmessage- the message to send to authorized users
-
-