Class PageSubscriptionResourcesUpdatedNotifier
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
org.ametys.plugins.pagesubscription.notifier.PageSubscriptionResourcesUpdatedNotifier
- All Implemented Interfaces:
LogEnabled
,ActivityNotifier
,Serviceable
Notifier for
PageResourcesUpdatedActivityType
-
Field Summary
Fields inherited from class org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
_i18nUtils, _resolver, _subscriptionDAO, _userManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getMailHtmlBody
(Activity activity, Page page, User author) Get the mail bodyprotected I18nizableText
_getMailSubject
(Activity activity, Page page) Get the mail subjectprotected String
Id of the site parameter to enable/disable the notificationboolean
support
(ActivityType activityType) true
if the notifier support the activity typeMethods inherited from class org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
_getAbsolutePageUrl, getMailHtmlBody, getMailSubject, getMailTextBody, getUsersEmailToNotify, isNotificationEnabled, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.activities.notify.ActivityNotifier
isAsync
-
Constructor Details
-
PageSubscriptionResourcesUpdatedNotifier
-
-
Method Details
-
support
Description copied from interface:ActivityNotifier
true
if the notifier support the activity type- Parameters:
activityType
- the activity type- Returns:
true
if the notifier support the activity type
-
getSiteParameterId
Description copied from class:AbstractPageSubscriptionNotifier
Id of the site parameter to enable/disable the notification- Specified by:
getSiteParameterId
in classAbstractPageSubscriptionNotifier
- Returns:
- The id of site
-
_getMailSubject
Description copied from class:AbstractPageSubscriptionNotifier
Get the mail subject- Specified by:
_getMailSubject
in classAbstractPageSubscriptionNotifier
- Parameters:
activity
- the activitypage
- the page from activity- Returns:
- the mail subject
-
_getMailHtmlBody
Description copied from class:AbstractPageSubscriptionNotifier
Get the mail body- Specified by:
_getMailHtmlBody
in classAbstractPageSubscriptionNotifier
- Parameters:
activity
- the activitypage
- the page from activityauthor
- the author of the activity- Returns:
- the mail body
- Throws:
IOException
- if an error occurred
-