Class PageSubscriptionResourcesUpdatedNotifier
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.page.notifier.AbstractPageSubscriptionNotifier
org.ametys.plugins.pagesubscription.page.notifier.PageSubscriptionResourcesUpdatedNotifier
- All Implemented Interfaces:
LogEnabled,Supporter<ActivityType>,ActivityNotifier,Serviceable
Notifier for
PageResourcesUpdatedActivityType-
Field Summary
Fields inherited from class org.ametys.plugins.pagesubscription.page.notifier.AbstractPageSubscriptionNotifier
_i18nUtils, _resolver, _subscriptionDAO, _userLanguagesManager, _userManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String_getMailHtmlBody(Activity activity, String language, Page page, User author) Get the mail bodyprotected I18nizableText_getMailSubject(Activity activity, Page page) Get the mail subjectprotected StringId of the site parameter to enable/disable the notificationbooleansupports(ActivityType activityType) Check if an element is supportedMethods inherited from class org.ametys.plugins.pagesubscription.page.notifier.AbstractPageSubscriptionNotifier
_getAbsolutePageUrl, getMailHtmlBody, getMailSubject, getMailTextBody, getUsersToNotifyByLanguage, isNotificationEnabled, serviceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.activities.notify.ActivityNotifier
isAsync
-
Constructor Details
-
PageSubscriptionResourcesUpdatedNotifier
-
-
Method Details
-
supports
Description copied from interface:SupporterCheck if an element is supported- Parameters:
activityType- The element- Returns:
trueif the element is supported,falseotherwise
-
getSiteParameterId
Description copied from class:AbstractPageSubscriptionNotifierId of the site parameter to enable/disable the notification- Specified by:
getSiteParameterIdin classAbstractPageSubscriptionNotifier- Returns:
- The id of site
-
_getMailSubject
Description copied from class:AbstractPageSubscriptionNotifierGet the mail subject- Specified by:
_getMailSubjectin classAbstractPageSubscriptionNotifier- Parameters:
activity- the activitypage- the page from activity- Returns:
- the mail subject
-
_getMailHtmlBody
protected String _getMailHtmlBody(Activity activity, String language, Page page, User author) throws IOException Description copied from class:AbstractPageSubscriptionNotifierGet the mail body- Specified by:
_getMailHtmlBodyin classAbstractPageSubscriptionNotifier- Parameters:
activity- the activitylanguage- The languagepage- the page from activityauthor- the author of the activity- Returns:
- the mail body
- Throws:
IOException- if an error occurred
-