Interface ChangeNotificator
- All Known Implementing Classes:
CommentMailNotificator,JsfMessagesNotificator
public interface ChangeNotificator
- Author:
- Florian Alpers
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyCreation(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)
-
Method Details
-
notifyCreation
- Parameters:
annotation- the newly created annotation to notify aboutlocale- locale used to format the notification messageviewerRootUrl- base URL of the viewer application
-
notifyEdit
void notifyEdit(PersistentAnnotation oldAnnotation, PersistentAnnotation newAnnotation, Locale locale, String viewerRootUrl) - 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
- Parameters:
annotation- the deleted annotation to notify aboutlocale- locale used to format the notification message
-
notifyError
- Parameters:
exception- the exception that caused the errorlocale- locale used to format the notification message
-