Interface ParametrizedNotificationManager


  • @Role
    public interface ParametrizedNotificationManager
    A notification manager that work only with the parameters given to it (it will not look at the current user preferences, and so on) but that still search the events where they are stored.
    Since:
    10.4RC1
    Version:
    $Id: 1d39f45d3f6d34b3167171395699e29b2885b3e1 $
    • Method Detail

      • getEvents

        List<org.xwiki.notifications.CompositeEvent> getEvents​(NotificationParameters parameters)
                                                        throws org.xwiki.notifications.NotificationException
        Get the events matching the given parameters.
        Parameters:
        parameters - parameters to take care of
        Returns:
        a list of the corresponding composite events
        Throws:
        org.xwiki.notifications.NotificationException - if an error occurs
      • getRawEvents

        @Unstable
        default List<Event> getRawEvents​(NotificationParameters parameters)
                                  throws org.xwiki.notifications.NotificationException
        Get the events matching the given parameters.
        Parameters:
        parameters - parameters to take care of
        Returns:
        a list of the corresponding events
        Throws:
        org.xwiki.notifications.NotificationException - if an error occurs
        Since:
        15.5RC1