Package org.ametys.web.activities.notify
Interface ActivityNotifier
- All Superinterfaces:
Supporter<ActivityType>
- All Known Implementing Classes:
AbstractPageSubscriptionNotifier
,AbstractWorkspacesActivityNotifier
,CalendarEventActivityNotifier
,CalendarEventDeletedActivityNotifier
,DeleteThreadActivityNotifier
,DocumentsActivityNotifier
,MemberAddedActivityNotifier
,MinisiteActivityNotifier
,PageSubscriptionPageDeletedNotifier
,PageSubscriptionPageUpdatedNotifier
,PageSubscriptionResourcesUpdatedNotifier
,ReportThreadCommentActivityNotifier
,TasksActivityNotifier
,TasksClosedActivityNotifier
,TasksDeletedActivityNotifier
,ThreadsActivityNotifier
,WebContentActivityNotifier
Implementation to notify activity
-
Method Summary
Modifier and TypeMethodDescriptiongetMailHtmlBody
(Activity activity, String language) Get the mail body as html from the activitygetMailSubject
(Activity activity, String language) Get the mail subject from the activitygetMailTextBody
(Activity activity, String language) Get the mail body to text format from the activitygetUsersToNotifyByLanguage
(Activity activity) Get the list of user email to notify by their language for a given activitydefault boolean
isAsync()
true
if the notifier is asynchronous
-
Method Details
-
isAsync
true
if the notifier is asynchronous- Returns:
true
if the notifier is asynchronous
-
getUsersToNotifyByLanguage
Get the list of user email to notify by their language for a given activity- Parameters:
activity
- the activity- Returns:
- the list of user email to notify
-
getMailSubject
Get the mail subject from the activity- Parameters:
activity
- the activitylanguage
- The language to use, can be null- Returns:
- the mail subject
-
getMailHtmlBody
Get the mail body as html from the activity- Parameters:
activity
- the activitylanguage
- The language to use, can be null- Returns:
- the mail body as html. Can be null.
-
getMailTextBody
Get the mail body to text format from the activity- Parameters:
activity
- the activitylanguage
- The language to use, can be null- Returns:
- the mail body to text format. Can be null.
-