Interface NotificationService

All Superinterfaces:
JAXRSService

@Path("notifications") public interface NotificationService extends JAXRSService
REST operations for notifications.
  • Method Details

    • read

      @GET @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) org.apache.syncope.common.lib.to.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<org.apache.syncope.common.lib.to.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"}) jakarta.ws.rs.core.Response create(@NotNull @NotNull org.apache.syncope.common.lib.to.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 org.apache.syncope.common.lib.to.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"}) org.apache.syncope.common.lib.to.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") org.apache.syncope.common.lib.types.JobAction action)
      Executes an action on the notification job.
      Parameters:
      action - action to execute