Interface NotificationService

    • Method Detail

      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        NotificationTO read​(@NotNull @PathParam("key")
                            @NotNull String key)
        Returns notification with matching key.
        Parameters:
        key - key of notification to be read
        Returns:
        notification with matching key
      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<NotificationTO> list()
        Returns a list of all notifications.
        Returns:
        list of all notifications.
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull NotificationTO notificationTO)
        Creates a new notification.
        Parameters:
        notificationTO - Creates a new notification.
        Returns:
        Response object featuring Location header of created notification
      • update

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void update​(@NotNull
                    @NotNull NotificationTO notificationTO)
        Updates the notification matching the given key.
        Parameters:
        notificationTO - notification to be stored
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Deletes the notification matching the given key.
        Parameters:
        key - key for notification to be deleted
      • getJob

        @GET
        @Path("job")
        @Produces({"application/json","application/yaml","application/xml"})
        JobTO getJob()
        Returns details about notification job.
        Returns:
        details about notification job
      • actionJob

        @POST
        @Path("job")
        @Produces({"application/json","application/yaml","application/xml"})
        void actionJob​(@QueryParam("action")
                       JobAction action)
        Executes an action on the notification job.
        Parameters:
        action - action to execute