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 booleanisAsync()trueif the notifier is asynchronousbooleansupport(ActivityType activityType) trueif the notifier support the activity type
-
Method Details
-
support
trueif the notifier support the activity type- Parameters:
activityType- the activity type- Returns:
trueif the notifier support the activity type
-
isAsync
trueif the notifier is asynchronous- Returns:
trueif 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.
-