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 Details

    • support

      boolean support(ActivityType activityType)
      true if the notifier support the activity type
      Parameters:
      activityType - the activity type
      Returns:
      true if the notifier support the activity type
    • isAsync

      default boolean 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.