Package org.ametys.plugins.odfweb.alerts
Class AlertSchedulable
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
org.ametys.cms.alerts.AlertSchedulable
org.ametys.web.alerts.AlertSchedulable
org.ametys.plugins.odfweb.alerts.AlertSchedulable
- All Implemented Interfaces:
Schedulable
,LogEnabled
,PluginAware
,Initializable
,Component
,Configurable
,Contextualizable
,Serviceable
Alerts engine: sends alerts mail.
This is the web version of the engine: it sets the currently processed content's
site name in the request object, and sends additional site and page information
in the alerts e-mails.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.alerts.AlertSchedulable
AlertSchedulable.BinaryExpression
Nested classes/interfaces inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
AbstractStaticSchedulable.SchedulableParameterParser
-
Field Summary
Modifier and TypeFieldDescriptionprotected OdfPageResolver
The ODF page resolverprotected SiteManager
The site managerFields inherited from class org.ametys.web.alerts.AlertSchedulable
_pagePublicationEnabled, _pagePublicationEndBody, _pagePublicationEndRights, _pagePublicationEndSubject
Fields inherited from class org.ametys.cms.alerts.AlertSchedulable
__VALIDATION_ALERT_EXPR_CONTEXT, _awaitingValidationBody, _awaitingValidationRights, _awaitingValidationSubject, _baseUrl, _environmentContext, _i18nUtils, _initialized, _instantAlertBody, _instantAlertRights, _instantAlertSubject, _mailFrom, _manager, _reminderBody, _reminderRights, _reminderSubject, _resolver, _rightManager, _scheduledArchivingReminderBody, _scheduledArchivingReminderRights, _scheduledArchivingReminderSubject, _unmodifiedContentBody, _unmodifiedContentRights, _unmodifiedContentStepIds, _unmodifiedContentSubject, JOBDATAMAP_CONTENT_IDS_KEY, JOBDATAMAP_INSTANT_MODE_KEY, JOBDATAMAP_MESSAGE_KEY, SCHEDULABLE_ID
Fields inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _schedulableParameterTypeExtensionPoint, _smanager, _startTime, _userManager, PROGRESSION_TRACKER
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ametys.web.alerts.AlertSchedulable
_getAdditionalParams, _getContentUrl, _getPagePublicationEndParams, _getPageUrl, _sendPagePublicationEndAlerts, _sendPagePublicationEndEmail, _setRequestAttributes, _setRequestAttributes, configure, execute, getI18nKeyBody
Methods inherited from class org.ametys.cms.alerts.AlertSchedulable
_getAwaitingValidationParams, _getInstantAlertParams, _getReminderParams, _getRightsFromConf, _getScheduledArchivingReminderParams, _getUnmodifiedContentParams, _removeTimeParts, _sendAwaitingValidationAlerts, _sendAwaitingValidationEmail, _sendInstantAlertEmail, _sendInstantAlerts, _sendMails, _sendReminderEmail, _sendReminders, _sendScheduledArchivingReminderEmail, _sendScheduledArchivingReminders, _sendUnmodifiedAlerts, _sendUnmodifiedContentEmail, initialize, isInstantMode
Methods inherited from class org.ametys.plugins.core.impl.schedule.AbstractStaticSchedulable
acceptConcurrentExecution, contextualize, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, getProgressionTracker, isPrivate, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_odfPageResolver
The ODF page resolver -
_siteManager
The site manager
-
-
Constructor Details
-
AlertSchedulable
public AlertSchedulable()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAlertSchedulable
- Throws:
ServiceException
-
_getSite
Description copied from class:AlertSchedulable
Get the site name- Overrides:
_getSite
in classAlertSchedulable
- Parameters:
content
- The content- Returns:
- the site name
-
_getPage
Description copied from class:AlertSchedulable
Get the page referenced by this content- Overrides:
_getPage
in classAlertSchedulable
- Parameters:
content
- The contentsite
- the site- Returns:
- the page or null.
-