Class NotificationWebServices

java.lang.Object
io.vertigo.social.webservices.notification.NotificationWebServices
All Implemented Interfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.vega.webservice.WebServices

@PathPrefix("/x/notifications") public final class NotificationWebServices extends Object implements io.vertigo.vega.webservice.WebServices
Webservice for Notification extension.
Author:
npiedeloup
  • Constructor Details

    • NotificationWebServices

      public NotificationWebServices()
  • Method Details

    • getMessages

      @GET("/api/messages") public List<Notification> getMessages()
      Get messages for logged user.
      Returns:
      messages for logged user
    • removeMessage

      @DELETE("/api/messages/{uuid}") public void removeMessage(@PathParam("uuid") String messageUuid)
      Remove a message.
      Parameters:
      messageUuid - message id.
    • removeMessage

      @DELETE("/api/messages") public void removeMessage(List<String> messageUuids)
      Remove a message.
      Parameters:
      messageUuids - messages id.
    • getStatus

      @GET("/infos/status") @AnonymousAccessAllowed public String getStatus()
      Extension status (code 200 or 500)
      Returns:
      "OK" or error message
    • getStats

      @GET("/infos/stats") @AnonymousAccessAllowed public Map<String,Object> getStats()
      Extension stats.
      Returns:
      "OK" or error message
    • getConfig

      @GET("/infos/config") @AnonymousAccessAllowed public Map<String,Object> getConfig()
      Extension config.
      Returns:
      Config object
    • getHelp

      @GET("/infos/help") @AnonymousAccessAllowed public String getHelp()
      Extension help.
      Returns:
      Help object