Class NotificationResource


  • @Path("/notification")
    @Produces("application/json")
    public class NotificationResource
    extends SecureResource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response addNotificationReceiver​(javax.ws.rs.core.SecurityContext securityContext, uk.co.ractf.polaris.api.notification.NotificationReceiver receiver)  
      javax.ws.rs.core.Response deleteNotificationReceiver​(javax.ws.rs.core.SecurityContext securityContext, uk.co.ractf.polaris.api.namespace.NamespacedId id)  
      javax.ws.rs.core.Response getNotificationReceiver​(javax.ws.rs.core.SecurityContext securityContext, uk.co.ractf.polaris.api.namespace.NamespacedId id)  
      javax.ws.rs.core.Response getNotificationReceivers​(javax.ws.rs.core.SecurityContext securityContext, java.lang.String namespace)  
      javax.ws.rs.core.Response updateNotificationReceiver​(javax.ws.rs.core.SecurityContext securityContext, uk.co.ractf.polaris.api.notification.NotificationReceiver receiver)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotificationResource

        @Inject
        public NotificationResource​(ClusterState clusterState)
    • Method Detail

      • addNotificationReceiver

        @POST
        @Timed
        @ExceptionMetered
        @RolesAllowed("NOTIFICATION_ADD")
        public javax.ws.rs.core.Response addNotificationReceiver​(@Context
                                                                 javax.ws.rs.core.SecurityContext securityContext,
                                                                 uk.co.ractf.polaris.api.notification.NotificationReceiver receiver)
      • getNotificationReceivers

        @GET
        @Timed
        @ExceptionMetered
        @RolesAllowed("NOTIFICATION_GET")
        public javax.ws.rs.core.Response getNotificationReceivers​(@Context
                                                                  javax.ws.rs.core.SecurityContext securityContext,
                                                                  @QueryParam("filter") @DefaultValue("")
                                                                  java.lang.String namespace)
      • getNotificationReceiver

        @GET
        @Path("/{id}")
        @Timed
        @ExceptionMetered
        @RolesAllowed("NOTIFICATION_GET")
        public javax.ws.rs.core.Response getNotificationReceiver​(@Context
                                                                 javax.ws.rs.core.SecurityContext securityContext,
                                                                 @PathParam("id")
                                                                 uk.co.ractf.polaris.api.namespace.NamespacedId id)
      • updateNotificationReceiver

        @PUT
        @Timed
        @ExceptionMetered
        @RolesAllowed("NOTIFICATION_UPDATE")
        public javax.ws.rs.core.Response updateNotificationReceiver​(@Context
                                                                    javax.ws.rs.core.SecurityContext securityContext,
                                                                    uk.co.ractf.polaris.api.notification.NotificationReceiver receiver)
      • deleteNotificationReceiver

        @DELETE
        @Path("/{id}")
        @Timed
        @ExceptionMetered
        @RolesAllowed("NOTIFICATION_DELETE")
        public javax.ws.rs.core.Response deleteNotificationReceiver​(@Context
                                                                    javax.ws.rs.core.SecurityContext securityContext,
                                                                    @PathParam("id")
                                                                    uk.co.ractf.polaris.api.namespace.NamespacedId id)