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) Get the mail body as html from the activitygetMailSubject
(Activity activity) Get the mail subject from the activitygetMailTextBody
(Activity activity) Get the mail body to text format from the activitygetUsersEmailToNotify
(Activity activity) Get the list of user email to notify 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
-
getUsersEmailToNotify
Get the list of user email to notify 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 activity- Returns:
- the mail subject
-
getMailHtmlBody
Get the mail body as html from the activity- Parameters:
activity
- the activity- Returns:
- the mail body as html. Can be null.
-
getMailTextBody
Get the mail body to text format from the activity- Parameters:
activity
- the activity- Returns:
- the mail body to text format. Can be null.
-