Class CommentMailNotificator

java.lang.Object
io.goobi.viewer.model.annotation.notification.CommentMailNotificator
All Implemented Interfaces:
ChangeNotificator

public class CommentMailNotificator extends Object implements ChangeNotificator
Author:
Florian Alpers
  • Constructor Details

    • CommentMailNotificator

      public CommentMailNotificator()
  • Method Details

    • setRecipients

      public void setRecipients(List<String> recipients)
      Parameters:
      recipients - list of email addresses to receive notifications
    • getBcc

      public List<String> getBcc()
    • setBcc

      public void setBcc(List<String> bcc)
    • notifyCreation

      public void notifyCreation(PersistentAnnotation annotation, Locale locale, String viewerRootUrl)
      Specified by:
      notifyCreation in interface ChangeNotificator
      Parameters:
      annotation - the newly created annotation to notify about
      locale - locale used to format the notification message
      viewerRootUrl - base URL of the viewer application
    • notifyEdit

      public void notifyEdit(PersistentAnnotation oldAnnotation, PersistentAnnotation newAnnotation, Locale locale, String viewerRootUrl)
      Specified by:
      notifyEdit in interface ChangeNotificator
      Parameters:
      oldAnnotation - the annotation state before the edit
      newAnnotation - the annotation state after the edit
      locale - locale used to format the notification message
      viewerRootUrl - base URL of the viewer application
    • notifyDeletion

      public void notifyDeletion(PersistentAnnotation annotation, Locale locale)
      Specified by:
      notifyDeletion in interface ChangeNotificator
      Parameters:
      annotation - the deleted annotation to notify about
      locale - locale used to format the notification message
    • notifyError

      public void notifyError(Exception exception, Locale locale)
      Specified by:
      notifyError in interface ChangeNotificator
      Parameters:
      exception - the exception that caused the error
      locale - locale used to format the notification message