Interface ChangeNotificator

All Known Implementing Classes:
CommentMailNotificator, JsfMessagesNotificator

public interface ChangeNotificator
Author:
Florian Alpers
  • Method Details

    • notifyCreation

      void notifyCreation(PersistentAnnotation annotation, Locale locale, String viewerRootUrl)
      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

      void notifyEdit(PersistentAnnotation oldAnnotation, PersistentAnnotation newAnnotation, Locale locale, String viewerRootUrl)
      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

      void notifyDeletion(PersistentAnnotation annotation, Locale locale)
      Parameters:
      annotation - the deleted annotation to notify about
      locale - locale used to format the notification message
    • notifyError

      void notifyError(Exception exception, Locale locale)
      Parameters:
      exception - the exception that caused the error
      locale - locale used to format the notification message