Class PageSubscriptionPageDeletedNotifier
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.notifier.AbstractPageSubscriptionNotifier
org.ametys.plugins.pagesubscription.notifier.PageSubscriptionPageDeletedNotifier
- All Implemented Interfaces:
LogEnabled,ActivityNotifier,Serviceable
Notifier for
PageDeletedActivityType-
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 notificationbooleanisAsync()trueif the notifier is asynchronousbooleansupport(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, setLogger
-
Constructor Details
-
PageSubscriptionPageDeletedNotifier
public PageSubscriptionPageDeletedNotifier()
-
-
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
-
isAsync
Description copied from interface:ActivityNotifiertrueif the notifier is asynchronous- Returns:
trueif the notifier is asynchronous
-
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
-