Package org.ametys.plugins.odfweb.alerts
Class AlertScheduler
- java.lang.Object
-
- java.util.TimerTask
-
- org.ametys.cms.alerts.AlertScheduler
-
- org.ametys.plugins.odfweb.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 void
run()
void
sendInstantAlerts(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:
run
in interfaceRunnable
- Overrides:
run
in classAlertScheduler
-
sendInstantAlerts
public void sendInstantAlerts(List<String> contentIds, String message)
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
-
-