Class PageSubscriptionPageUpdatedNotifier
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
org.ametys.plugins.pagesubscription.notifier.PageSubscriptionPageUpdatedNotifier
- All Implemented Interfaces:
LogEnabled,ActivityNotifier,Serviceable
Notifier for
PageUpdatedActivityType-
Field Summary
Fields inherited from class org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
_i18nUtils, _resolver, _subscriptionDAO, _userManager -
Constructor Summary
Constructors -
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 StringId of the site parameter to enable/disable the notificationbooleansupport(ActivityType activityType) trueif the notifier support the activity typeMethods inherited from class org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
_getAbsolutePageUrl, getMailHtmlBody, getMailSubject, getMailTextBody, getUsersEmailToNotify, 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
-
PageSubscriptionPageUpdatedNotifier
public PageSubscriptionPageUpdatedNotifier()
-
-
Method Details
-
support
Description copied from interface:ActivityNotifiertrueif the notifier support the activity type- Parameters:
activityType- the activity type- Returns:
trueif the notifier support the activity type
-
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
Description copied from class:AbstractPageSubscriptionNotifierGet the mail body- Specified by:
_getMailHtmlBodyin classAbstractPageSubscriptionNotifier- Parameters:
activity- the activitypage- the page from activityauthor- the author of the activity- Returns:
- the mail body
- Throws:
IOException- if an error occurred
-