Package org.ametys.web.activities.notify
Interface ActivityNotifier
- All Known Implementing Classes:
AbstractPageSubscriptionNotifier
,AbstractWorkspacesActivityNotifier
,CalendarEventActivityNotifier
,DeleteThreadActivityNotifier
,DocumentsActivityNotifier
,MemberAddedActivityNotifier
,MinisiteActivityNotifier
,PageSubscriptionPageDeletedNotifier
,PageSubscriptionPageUpdatedNotifier
,PageSubscriptionResourcesUpdatedNotifier
,ReportThreadCommentActivityNotifier
,TasksActivityNotifier
,TasksClosedActivityNotifier
,TasksDeletedActivityNotifier
,ThreadsActivityNotifier
,WebContentActivityNotifier
public interface ActivityNotifier
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 asynchronousboolean
support
(ActivityType activityType) true
if the notifier support the activity type
-
Method Details
-
support
true
if the notifier support the activity type- Parameters:
activityType
- the activity type- Returns:
true
if the notifier support the activity type
-
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.
-