Interface NotificationManager

    • Method Detail

      • handle

        void handle​(@NonNull
                    NotificationStateRepository repo,
                    @NonNull
                    NotificationStateAware notifiable,
                    @NonNull
                    String messageType)
        Notify the system in some way about the state change for the notifiable param. Processing is handled through one or more NotificationHandler instances. This will update the given notifiable using repo. Subsequent checks of the latest notification state will require a re-read.
        Parameters:
        repo - The service responsible for making the state change. Usually a Repository instance.
        notifiable - The object that experienced the state change. Usually a Spring Data entity instance.
        messageType - The type of message correlating to DefaultNotificationHandler#messageType.