Class CommentMailNotificator
java.lang.Object
io.goobi.viewer.model.annotation.notification.CommentMailNotificator
- All Implemented Interfaces:
ChangeNotificator
- Author:
- Florian Alpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBcc()voidnotifyCreation(PersistentAnnotation annotation, Locale locale, String viewerRootUrl) voidnotifyDeletion(PersistentAnnotation annotation, Locale locale) voidnotifyEdit(PersistentAnnotation oldAnnotation, PersistentAnnotation newAnnotation, Locale locale, String viewerRootUrl) voidnotifyError(Exception exception, Locale locale) voidvoidsetRecipients(List<String> recipients)
-
Constructor Details
-
CommentMailNotificator
public CommentMailNotificator()
-
-
Method Details
-
setRecipients
- Parameters:
recipients- list of email addresses to receive notifications
-
getBcc
-
setBcc
-
notifyCreation
- Specified by:
notifyCreationin interfaceChangeNotificator- Parameters:
annotation- the newly created annotation to notify aboutlocale- locale used to format the notification messageviewerRootUrl- base URL of the viewer application
-
notifyEdit
public void notifyEdit(PersistentAnnotation oldAnnotation, PersistentAnnotation newAnnotation, Locale locale, String viewerRootUrl) - Specified by:
notifyEditin interfaceChangeNotificator- Parameters:
oldAnnotation- the annotation state before the editnewAnnotation- the annotation state after the editlocale- locale used to format the notification messageviewerRootUrl- base URL of the viewer application
-
notifyDeletion
- Specified by:
notifyDeletionin interfaceChangeNotificator- Parameters:
annotation- the deleted annotation to notify aboutlocale- locale used to format the notification message
-
notifyError
- Specified by:
notifyErrorin interfaceChangeNotificator- Parameters:
exception- the exception that caused the errorlocale- locale used to format the notification message
-