Interface NotificationsResource


  • public interface NotificationsResource
    Retrieve notifications.
    Since:
    10.4RC1
    Version:
    $Id: 53a19c6bdbf13b03b1c4344905c32a6baed6ee30 $
    • Method Detail

      • getNotificationsRSS

        String getNotificationsRSS​(String useUserPreferences,
                                   String userId,
                                   String untilDate,
                                   String blackList,
                                   String pages,
                                   String spaces,
                                   String wikis,
                                   String users,
                                   String count,
                                   String displayOwnEvents,
                                   String displayMinorEvents,
                                   String displaySystemEvents,
                                   String displayReadEvents,
                                   String displayReadStatus,
                                   String tags,
                                   String currentWiki)
                            throws Exception
        Get notifications RSS for the given parameters. Since the URL and the return type is different, I had no choice but duplicating the same parameters than getNotifications().
        Returns:
        the RSS feed as a string
        Throws:
        Exception - if an error occurs
        Since:
        10.6RC1
      • postNotifications

        javax.ws.rs.core.Response postNotifications()
                                             throws Exception
        Get notifications matching the given parameters. The POST method is used to allow large content in the parameters. For example, the parameter "blackList" could be very long, and the associated URL with the GET method would be too long (generating HTTP 414 error). Note: in the interface, we do not list the parameters, because Restlet does not support @FormParam... See: https://github.com/restlet/restlet-framework-java/issues/1120
        Returns:
        notifications
        Throws:
        Exception - if an error occurs
        Since:
        10.8RC1, 10.8.1, 9.11.8