Interface EntityNotificationProcessingHandler<E extends SimpleEntity>

  • Type Parameters:
    E - the entity that have notifications to be processed

    public interface EntityNotificationProcessingHandler<E extends SimpleEntity>
    Processes the notifications for a specific NotificationProcessingEntityType.
    For each new constant of type NotificationProcessingEntityType THERE MUST BE a corresponding implementation of this interface. Otherwise the server will throw an error at start up.

    Subclasses must use the NotificationHandler to notify the users. That handler will finally create the Notification entity and insert an execution of the corresponding background task to effectively send the notification.
    • Method Detail

      • loadToNotify

        List<E> loadToNotify​(List<Long> ids)
        Returns a list of entities to be notified, with the given ids
      • process

        void process​(E entity)
        Processes the notifications generated by the given entity